Basic dashboard switch wiring #188
Replies: 4 comments 49 replies
-
The module does have a sample flow - but it's more to demo how the nodes work (menu -> import -> examples). On the other hand - see below a flow (and subflow) to import to gain some idea.
|
Beta Was this translation helpful? Give feedback.
-
All events / messages being sent into your flow will have the following shape. {
"payload": {
"node": 10,
"event": "SOME_EVENT",
"object": {},
"timestamp": 1637014660258,
}
} See here for all events and the full wiki. |
Beta Was this translation helpful? Give feedback.
-
First of all my compliments, this is a great project, very impressive! I am now preparing to migrate all my devices from my old Veralite after trying Homeassistant, this works way better. My quertion: just like @fabnavigator I am using the node-red dashboard and I am looking for the best way to make my dimmers and switches reflect the actual state of the devices which are also controlled manually. With Veralite / Node-Red I used an event listener (node-red-contrib-mios) that produced event messages when a device was controlled also when using the physical switch or dimmer. These messages were passed through to the dashboard buttons and sliders. I would like to do the same with zwave-js. However, when I connect a debug node to the zwave-js controller node and set the logging to verbose (or silly) I don't see any event messages when I use a physical dimmer or switch that is connected to zwave-js. So, can I only use polling to achieve this? |
Beta Was this translation helpful? Give feedback.
-
Yes wow, that was it! Thanks a lot! :-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @marcus-j-davies
I would like to do something fundemental. I have a z-wave plugin outlet and a node-red dashboard switch. If you turn the switch on/off I want the outlet to turn on/off. If I go to the outlet and manually turn it on/off, I want the dashboard switch to reflect it's state (on or off).
I think there's a way to do this without an endless loop. I can probably figure it out (eventually), but I feel I would be reinventing the wheel. Do you have a sample flow that does this?
Beta Was this translation helpful? Give feedback.
All reactions