You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Node-RED
Hi,
Can you set the switch position for dashboard from a flow or global variable?
I have a control system and I want to have control from both a local touch screen and the web. The system is working and I can move update my
controls on the display ok when Web input changes (switch clicked) BUT I cannot seem to do it the other way - ie. I change setting on display and then try to use new value to
set the dashboard switch ON or OFF to reflect new state.
I tried using the serial display data to send "1" and "0" to switch input but this did not work. I also tried to set up a global variable and have a timer update the node inputs with the variable but
did not seem to be able to get this working either.
Colin Law
unread,
Jun 26, 2017, 3:14:42 AM6/26/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to node...@googlegroups.com
To do this you have to pass in a payload with *exactly* the same
values that you specify in the switch node. So if, for example, you
have configured the switch to output String "0" and "1" then that is
what you must feed in. If however you have configured the switch to
output Number 0 and 1 then you must feed in numbers not strings.