Hi,
I’m replacing my old rf-switches (using tellstick) with zigbee and want to keep my old RF-remotes and for the remotes to function as before.
The obvious thing to do is then, of course, to do some simple automations to set the ZigBee lights/switches according to the old RD-switches states, should be simple… Or not:-)
The problem is that the automation triggers on the state CHANGE, not the actual RF-remote button being pressed. This means that the state of the RF switch entity might end up un-synced with the Zigbee light if you, for example, change the ZigBee light in the wb-UI and not with the RF-remote.
Is it possible to trigger an automation on an event without the internal state being changed…
I would like the automation to trigger on an event like this (ie when the new state is the same as the old one):
"event_type": "state_changed",
"data": {
"entity_id": "switch.kitchen_charge_box",
"old_state": {
"entity_id": "switch.kitchen_charge_box",
"state": "on",
"attributes": {
"friendly_name": "Kitchen_charge_box",
"assumed_state": true
},
"last_changed": "2019-03-03T08:43:48.673585+00:00",
"last_updated": "2019-03-03T08:43:48.673585+00:00",
"context": {
"id": "fd5a24063e3d4908a0267e173ef5dfb7",
"user_id": null
}
},
"new_state": {
"entity_id": "switch.kitchen_charge_box",
"state": "on",
"attributes": {
"friendly_name": "Kitchen_charge_box",
"assumed_state": true
},
"last_changed": "2019-03-03T08:43:49.969086+00:00",
"last_updated": "2019-03-03T08:43:49.969086+00:00",
"context": {
"id": "a515b75bcf7e46e98f2fdd4ce9ea4475",
"user_id": null
}
}
},
Thanks for any help:-)