DaveMDS / node-red-contrib-tasmota

Tasmota devices for NodeRed
MIT License
24 stars 9 forks source link

Multiple executions when triggered by hass entity #44

Open JampireX opened 1 year ago

JampireX commented 1 year ago

image

It's my flow. When first time I enable this flow - it's work fine. But after any edit and deploy - any triggered entity start calling tasmota node multiple times. It's happening only with this setup (hass entity > tasmota node). Any another node that I connected for testing purposes still calling only once. That's why I think it's on tasmota plugin side.

It's not happening when triggered by Inject node, for example. It's not happening when hass node triggering debug node directly. It's resetting to normal work only when I disable flow/deploy/enable flow again/deploy

Examples:

Reset > Edited name of one tasmota node. Result: One trigger > two executions: image

Edited name of same tasmota node. Result: It's multiplied one more time image

Interestring moment: edited one node but multiplied for two connected nodes

It's hapenning every time so it's easy to reproduce. Will be nice if anyone will try to reproduce it.

I'm using latest versions of HASS, Node-Red integration and tasmota plugin.

JampireX commented 1 year ago

Export string of my flow:

[{"id":"f9eb90b8.8007a","type":"tab","label":"IR","disabled":false,"info":""},{"id":"ec0634cf020a2fb0","type":"Tasmota Generic","z":"f9eb90b8.8007a","broker":"5a96119d31d9fba7","device":"tasmota_64BB1A","name":"1","outputs":1,"uidisabler":false,"fullTopic":"","cmndPrefix":"","statPrefix":"","telePrefix":"","qos":1,"retain":false,"subscribeToStat":false,"subscribeToTele":true,"x":750,"y":60,"wires":[["0f3b537387cb716b"]]},{"id":"0f3b537387cb716b","type":"debug","z":"f9eb90b8.8007a","name":"debug 17","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":220,"wires":[]},{"id":"7a4f517926d46e95","type":"Tasmota Generic","z":"f9eb90b8.8007a","broker":"5a96119d31d9fba7","device":"tasmota_64B97B","name":"22","outputs":1,"uidisabler":false,"fullTopic":"","cmndPrefix":"","statPrefix":"","telePrefix":"","qos":1,"retain":false,"subscribeToStat":false,"subscribeToTele":true,"x":750,"y":380,"wires":[["0f3b537387cb716b"]]},{"id":"a32a1565e8ed11ba","type":"ha-button","z":"f9eb90b8.8007a","name":"Power","version":0,"debugenabled":false,"outputs":1,"entityConfig":"12be35c9bc589012","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2215-720B-750+715c+745-725EbE-1455DcEbEbEg+740-730HfDcDcHfEbEi+735-1460HfHfHkEgE","valueType":"str"}],"x":110,"y":60,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"9d0b0bf5af2c74cb","type":"ha-button","z":"f9eb90b8.8007a","name":"Info","version":0,"debugenabled":false,"outputs":1,"entityConfig":"161ca8707454cd4d","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2250-685+780-690CbCbCbC-1420CbCbCb+745-1440+735-1465Dc+740-1455+695-1505Cd+800-1410+715-1485CeCeCeCbCdC","valueType":"str"}],"x":110,"y":120,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"e7a74082d06b9440","type":"ha-button","z":"f9eb90b8.8007a","name":"Fan+","version":0,"debugenabled":false,"outputs":1,"entityConfig":"e0bafe1b01c54ac7","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2250-685+775-695+780bE-690EbE-1420EbEb+785bE-1425+745-720C-1430F-760+740-1395+800-730+830o+715-1465NqB-1480+805gE-710J-1440+770","valueType":"str"}],"x":110,"y":180,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"a3158c244bb39b68","type":"ha-button","z":"f9eb90b8.8007a","name":"Fan-","version":0,"debugenabled":false,"outputs":1,"entityConfig":"03e1bdb373ddccb4","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2250-690+780-685+775bCdCdC-1405+735-750Cb+670c+740-1455H-720+745kCdC-1420C-1425B-760+785-695EbCn+770d+755-1440+800dC-51200+2220rD-1505Q","valueType":"str"}],"x":110,"y":260,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"0c7e4d9bff843f19","type":"ha-button","z":"f9eb90b8.8007a","name":"Temp+","version":0,"debugenabled":false,"outputs":1,"entityConfig":"cc11aed0f483644d","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2230-705+690-775+740-730+760-710G-725+750-1430+745i+800-670GfE-1440EiC-1510+780-1420QrQ-1410G-720JkHg+755f+770-700Dr+785rX-16950+110-33645+2240cQrV","valueType":"str"}],"x":110,"y":320,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"db30feea7f989d62","type":"ha-button","z":"f9eb90b8.8007a","name":"Temp-","version":0,"debugenabled":false,"outputs":1,"entityConfig":"f2801c3837c7bd94","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2250-685+760-710+755d+785bFb+780-1420Fb+745-720F-680F-1415Fk+790lG-1405+735-1440C-1480Gn+740-1460GlFlFlFlFkF","valueType":"str"}],"x":110,"y":380,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"a0a865c9aceb6594","type":"ha-button","z":"f9eb90b8.8007a","name":"Auto","version":0,"debugenabled":false,"outputs":1,"entityConfig":"c3b4996137e8e44b","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2255-680+685-780+715-755+735gF-725D-1405Ef+800-670Fh+745-1440E-1480DcD-1420DcDi+760h+740-710Pr+705-1490+770-1425Do+720pP","valueType":"str"}],"x":310,"y":60,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"8e0c652da4f0078d","type":"ha-button","z":"f9eb90b8.8007a","name":"Cool","version":0,"debugenabled":false,"outputs":1,"entityConfig":"90d19225a9146719","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2250-685+780b+810-660CbCbC-1420Cb+695-770+785-680Cf+775gC-1405+760-1440+735oO-750+745-1460CbCfCbCbCbC-700H","valueType":"str"}],"x":310,"y":120,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"ad0053f9c69b9183","type":"ha-button","z":"f9eb90b8.8007a","name":"Rotation","version":0,"debugenabled":false,"outputs":1,"entityConfig":"3fde8547ed61a37b","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2250-685+785b+780bCbD-690+745-1450De+695-770DbD-1420DbDbDjD-1405+760-725I-700DjDeDjDj+775hDjD","valueType":"str"}],"x":320,"y":180,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"f4bf7babb8e63d08","type":"ha-button","z":"f9eb90b8.8007a","name":"Reverse","version":0,"debugenabled":false,"outputs":1,"entityConfig":"3ca4ef625ae9c3da","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2250-685+780bCbC-650+820bC-1420C-690+715-750CbCfCf+740-725+775gCbCbCfCgCbCgCg+770-1430Cg+805","valueType":"str"}],"x":320,"y":260,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"7bbf7ff8f9aabcd1","type":"ha-button","z":"f9eb90b8.8007a","name":"Timer","version":0,"debugenabled":false,"outputs":1,"entityConfig":"6d863bd33dd98049","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2160-775+745-720+780-690FbCd+770-1430EfG-695E-685E-1420Ej+795-670EkE-1405+760-1440+740dEfEkEjEkG-1410+715-1480E","valueType":"str"}],"x":310,"y":320,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"9cfe434b05bb5505","type":"ha-button","z":"f9eb90b8.8007a","name":"Nightmode 2","version":0,"debugenabled":false,"outputs":1,"entityConfig":"7be35e3eff10646d","outputProperties":[{"property":"payload","propertyType":"msg","value":"IRSend 0,+2185-730+765-705+685-780B-750+745-725F-1400BgF-670Ef+740-1455+775-1420FeFeFoFeF-695+710g+770-700R-1425F-690NuRs+800","valueType":"str"}],"x":330,"y":380,"wires":[["ec0634cf020a2fb0","7a4f517926d46e95"]]},{"id":"5a96119d31d9fba7","type":"tasmota-mqtt-broker","name":"","broker":"hass.local","port":"1883","clientid":"","usetls":false,"keepalive":"60","cleansession":true},{"id":"12be35c9bc589012","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.power","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.power"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"161ca8707454cd4d","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.info","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.info"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"e0bafe1b01c54ac7","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.fan.plus","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.fan.plus"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"03e1bdb373ddccb4","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.fan.minus","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.fan.minus"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"cc11aed0f483644d","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.temp.plus","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.temp.plus"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"f2801c3837c7bd94","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.temp.minus","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.temp.minus"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"c3b4996137e8e44b","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.auto","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.auto"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"90d19225a9146719","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.cool","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.cool"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"3fde8547ed61a37b","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.rotation","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.rotation"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"3ca4ef625ae9c3da","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.reverse","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.reverse"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"6d863bd33dd98049","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.timer","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.timer"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"7be35e3eff10646d","type":"ha-entity-config","server":"7db817ba.764668","deviceConfig":"667733b00bf99a58","name":"dyson.nightmode","version":"6","entityType":"button","haConfig":[{"property":"name","value":"dyson.nightmode"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"restart"}],"resend":false,"debugEnabled":false},{"id":"7db817ba.764668","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true},{"id":"667733b00bf99a58","type":"ha-device-config","name":"Dyson IR","hwVersion":"","manufacturer":"Dyson","model":"1.0","swVersion":""}]
DaveMDS commented 1 year ago

Sorry, I really cannot help on this one as I do not use HASS.

What I can suggest is to simplify your flow down to the bare minimum: only one HASS node and one Tasmota node, add another debug node attached to the HASS output. That should help to identify the root cause of the problem