On Off trigger event vs *changed* trigger events

I have made a rule so during the day a physical switch only turns off a part of the living room and at night turn off all the downstairs lights.

At first I tried the changed trigger to activate the rule but that did not work. Now I changed it to on/off and it does. Is there a difference ? It's not really problem for me but I was wondering why this could be. Any ideas ? Is it a bug or a feature ?

I have used the changed trigger before without issues. Unless it is not working with the "Physical Switch" option maybe? When I used it was just with "Switch".

You would have to turn on all the logging options, set it back to changed and then post some logs to see whats going on.

1 Like

Set the trigger back to changed and started with the lights in the on position. When I turn the physical switch off it just turns off the light directly to it and does not trigger the Rule. However it does run when I switch it on. BUT. When I switched back to physical on/off as a separate trigger I did not work either anymore. removed the "physical switch " and changed it for a switch. No issues.

The switch is a Z-Wave Qubino mini dimmer btw

Qubino switch

Now that I am thinking this through more, this might be a problem with the driver for the device. I think we need to see the event log from that device, to see if it is logging the action as physical or not. The only way the hub knows the difference between physical and digital events is if the driver tells it.

Go top the devices page and click the "Events" button at the top to see the events. The important part is the "type" column.

Here is an example of one of mine which supports this properly.

Check ! That's probably it.


Physical off is type is digital, and that's not right.

So how important is it that rule only fires on a physical switch? Are you using a built in driver or a community driver? Might be able to get someone to fix it.

Yes I am using the HE built in qubino mini dimmer driver.

Well, important. Using important and home automation in one sentence is a dangerous thing to do with my lovely wife in the vicinity lol

In practice it can be inconvenient in some scenario's as I am using the qubino mini dimmers through the whole house. Those flush mounted boxes in our Dutch 70s style home are tiny and all poured in concrete so no easy way of expanding them. Nothing else would fit.

After some coding tips I got on the forums I read up on some HE stuff and was optimising my code. This part I could not get to work. I was actually just wondering why it did not work with the physical option enabled. Now I know. It would be nice if it can be fixed but not important.

@mike.maxwell not sure who would be responsible for this driver but looks like OP has discovered a possible bug in it. Or maybe it is not possible to determine physical/digital reliably on this device?

@bulk Can you post a screenshot of the "Data" section of the device page? Its at the very bottom. It has the mfg and pairing info so the devs can see the exact device you have,

Physical / digital is not guaranteed for all devices. Its best to test if the device supports it before using in automations...