Closed tprelog closed 3 years ago
ozw documentation ozw source (message by IssueLinks)
We should at least add the device id to the event data.
It seems that it will not be possible to make a user friendly blueprint for OZW scene events until this is resolved.
Is there a suggestion for a workaround?
Is there anything I can do to help resolve this?
A PR to add device id to event data is welcome.
Ok Cool, I just need to learn Python first, but I'll give it a go.
I'm just closing this. According to https://github.com/home-assistant/architecture/issues/483, it seems Home Assistant is moving away from ozwdaemon, and will instead use zwave-js moving forward.
Hopefully there will be more potential to see this addressed (if not already) in the next integration
The problem
There is currently a limitation creating blueprints using the device selector, specifically when trying to use the
ozw.scene_activated
event from OpenZWave (beta).Basically the problem is, there is no way to get the node_id of a device. The node_id is needed to determine which device has trigger the
ozw.scene_activated
event. Without the node_id, the scene is triggered from any device the fires the event.The node_id is currently stored as an entity attribute however using the entity selector does not work.
Here are at least two reasons using the device selector is preferred.
Environment
2020.12.1
Problem-relevant
configuration.yaml
Here is my generic blueprint for the Aeotec NanoMote - The does blueprint works, however the devices selector is only being used a a reference, to list valid devices. The node_id must still be looked up and entered manually.
Traceback/Error logs
Additional information
I'm not sure how difficult this is to solve. After several brief discussion on discord, I was asked to file an issue with the integration.
It's my understanding that a device does not have attributes so I'm not sure if it's possible to obtain the node_id in this manner.
I think the solution being implied, was to have the device_id added to the
ozw.scene_activated
-event_data
. This would allow for the scene to be controlled based on the firing device, effectively providing an alternative control, instead of using the node_id.Links to some the blueprints in the Home Assistant Forum that are effected by this.