I’ve got five smoke detectors, two heat alarms and a co2 detector.
I want to create a rule that turns on all the lights in the house, switches off the boiler and activates two sirens.
To avoid redundancy I have put all the alarm items into a ‘Alarm Group’. I have the alarm group on a sitemap with the alarm icon.
I notice that the icon shows itself as active even though the items aren’t. I presume this is because all the devices are in a null state rather than a ‘OK’ state.
Is there anyway I can get the sitemap icon to reflect the correct situation i.e. no alarm is active?
I don’t think so. The OR(ON,OFF) means the Group should be OFF unless there is one or more members that are ON. Even if all the members are NULL, I think the Group should be OFF, unless there is something non-intuitive about how OR is implemented.
Verify what all the states of your alarm Switches are.
I changed up the sitemap using the siren icon the a switch to activate/deactivate the sirens. The icon was grey but now shows as active even though the switch is off.
I also included all the detectors using the fire icon for the heat alarms. These too show as active.
I’m not sure what the default icon is for these icon types.
smoke is not a dynamic icon so it doesn’t change when the Switch is ON or OFF.
fire and siren are dynamic icons but because your Items do not have a value the default version of the icon is chosen. It appears that the “active” version of the icon was chosen as the default. You will need to create your own icons that has the non-active version as the default. See https://www.openhab.org/docs/configuration/items.html#icons
I hade already copied the -off icons to be the default. The link you provided sugests that using the same name should be ok but I’ll try a unique name.
Ok - problem solved. I had a “idiot” moment. When downloading the icons from github I used wget directly in the icon folder. unfortunately I was copying the wrong link and so was downloading a png file that was actually a webpage.