Closed saemmy closed 2 months ago
Hi @hxmelab , I tested this locally, works fine, but there is one point: when setting a UserDefinedState, I get two responses: the first one is the longpolling-event containing the old value and the second one is the msg.payload with the correct new value. Is there any possibility to suppress the first message with the old value?
Hi Saemmy, thanks for you contribution. To answer your question, I need some more context. What's the goal of the new nodes you provide? Why does the current nodes does not fulfill your needs, etc.
OpenDoorsWindows node is fine. Wth the UserDefinedState node, you can reproduce it the following way:
May be I got it. It´s because when I´d like to set a state I do a PUT and a GET afterwards. If I just do a PUT, there is only one message. I will commit a fix...
Add 2 new nodes