Can you listen for an event, say turning on a switch or a group and then “handle” it so that the default handler isn’t called?
I was thinking about this while chatting to a user about some insteon devices being skipped (using the UDI/ISY platform). He has about 10 insteon items in group and when turning the group on or off, some devices get skipped.
This got me thinking. If he created an insteon scene, added all the devices to it, that significantly cuts down on the insteon traffic in the house.
What would be nice is, if, in a component or automation or whatever, listen for the group event, then call your insteon scene and then stop the propagation of the event. Mark it as handled, that way, the default group code of turning on/off each device isn’t called.
This functionality might be too limited to use, but if currently possible, please point me to an example, or if it isn’t, maybe a feature request?
Thanks
Edit: I read more about the current events. We have state_changed
but that is too late. We would need a state_changing
type event that would let us interecept, cancel, do our thing and fire state_changed
. Probably too big of a change to support. It could however, provide for some interesting features in the future.