pdmangel / node-red-contrib-openhab2

Other
21 stars 15 forks source link

Repeating message output (7 times) of openhab-in node #42

Open lsafelix75 opened 4 years ago

lsafelix75 commented 4 years ago

Hi,

I am wondering whether you have encountered this strange behavior. Assume that i tag "openhab-in" to "myswitch" item with Switch type, whenever i press "Deploy" to update the flow or trigger ON or OFF via Basic interface, i am getting repeating output from "openhab-in". I even use "rbe" or write a function to filter repeated messages, that don't see to work and the repeated messages seemed to bypass all the filtering nodes.

Some output from Debug view (debug node) and you can see that _msgid is all the same. Also, i checked on openhab cosole log and confirmed that only 1 message was sent out.

11/14/2019, 11:48:14 PMnode: 83860b60.54ab18msg : Object { _msgid: "13b33db8.abfb52", payload: "OFF", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:15 PMnode: 83860b60.54ab18msg : Object { _msgid: "13b33db8.abfb52", payload: "OFF", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:15 PMnode: 83860b60.54ab18msg : Object { _msgid: "13b33db8.abfb52", payload: "OFF", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:15 PMnode: 83860b60.54ab18msg : Object { _msgid: "13b33db8.abfb52", payload: "OFF", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:15 PMnode: 83860b60.54ab18msg : Object { _msgid: "13b33db8.abfb52", payload: "OFF", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:15 PMnode: 83860b60.54ab18msg : Object { _msgid: "13b33db8.abfb52", payload: "OFF", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:15 PMnode: 83860b60.54ab18msg : Object { _msgid: "13b33db8.abfb52", payload: "OFF", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:19 PMnode: 83860b60.54ab18msg : Object { _msgid: "b17bdda2.dc565", payload: "ON", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:20 PMnode: 83860b60.54ab18msg : Object { _msgid: "b17bdda2.dc565", payload: "ON", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:20 PMnode: 83860b60.54ab18msg : Object { _msgid: "b17bdda2.dc565", payload: "ON", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:20 PMnode: 83860b60.54ab18msg : Object { _msgid: "b17bdda2.dc565", payload: "ON", item: "scene_holiday_mode", event: "StateEvent" } 11/14/2019, 11:48:20 PMnode: 83860b60.54ab18 msg : Object { _msgid: "b17bdda2.dc565", payload: "ON", item: "scene_holiday_mode", event: "StateEvent" }

pdmangel commented 4 years ago

This indeed looks weird. I tried to reproduce it with a 'virtual' switch, but I only see single StateEvents in the debug view. Can you reproduce that with a very simple flow ? Than please export it and reply it in this thread. Please also mention the node-red, node-red-contrib-openhab2 and openhab versions.