I am using Node Red for Smarthome automation and have decided that I want to have logical or virtual devices for everyplace I expect to automate with those devices tied to nodes for the physical device serving that role. For Example:
- Virtual Device: Desk Lamp
- Physical Device: Ikea Zigbee bulb
I am doing this so that if I replace the Ikea bulb with a Philips Hue bulb, then all I have to do is update the linkage between the Virtual and Physical. All of my normal automation only ever interacts with the Virtual Device.
One thing that I am trying to accomplish is to allow most interactions to be with the Virtual device, but to allow changes that happen via the Physical devices app or other control to both change the physical device and then update the state of the Virtual device to reflect that change.
I have used MQTT for a variety of situations and can imagine building the linkages that way, but because time counts in Smarthome responsiveness, I am hoping to not have to do MQTT roundtrips.
Does anyone have an existing flow that keeps two devices in synch?