estbeetoo / node-red-contrib-knx

Other
12 stars 10 forks source link

Update switch status #19

Closed bolfox closed 6 years ago

bolfox commented 6 years ago

How to update status of a switch trigged by a phisical button?

bolfox commented 6 years ago

Found, made a function connected on bus and the out to the switch (uncheck pass through to output)

if (msg.payload.dstgad == "1/1/11") { if (msg.payload.value == "1") { return {payload : true}; } else { return {payload : false}; } }

aborovsky commented 6 years ago

You may use node-red’s Switch node instead of Function node with such “select” code. вс, 8 апр. 2018 г. в 11:56, bolfox notifications@github.com:

Found, made a function connected on bus and the out to the switch (uncheck pass through to output)

if (msg.payload.dstgad == "1/1/11") { if (msg.payload.value == "1") { return {payload : true}; } else { return {payload : false}; } }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/estbeetoo/node-red-contrib-knx/issues/19#issuecomment-379533164, or mute the thread https://github.com/notifications/unsubscribe-auth/ABl5LLvmARDgmeV-UiGr0ojoeEXQc-Bqks5tmdChgaJpZM4TLFRD .

-- [image: BeeToo] http://beetoo.me/ Когда умный дом по-настоящему умный Александр Боровский, Технический директор Alexander Borovsky, CTO, Co-Founder +7-926-094-50-00 <+7926094500> +7-499-391-33-62 <+74993913362>aborovsky@beetoo.me http://beetoo.ru http://beetoo.me/

bolfox commented 6 years ago

Tnx, i have tried but i need only one output and two IF, one after the first