Fix several problems in the event code:
- fix a syntax error in the html files, preventing parsing
- hide the add condition button when there are no conditions
- fix the showing/hiding of the level/setpoint input box
Use the user provided label instead of the machine generated name
for creating graphs when it is available (especially useful for zwave,
since the name then contains long numbers for the value id's)