Hello Kermit,
Thank you for sharing.
I followed the instruction, and created a button. and I did triggered a flow in Node red from home assistant lovelace UI. However, the problem is:
a. when never I push the bottone for one time, the button node in node red will fire multiple events. do you know why?
b. even though I installed node red companion (from HACS), but did didn’t find the nodered.trigger service.
Could you please help to take a check?
[{"id":"ac7f510db8bb03d7","type":"subflow","name":"log","info":"","category":"","in":[{"x":140,"y":180,"wires":[{"id":"c45cdb23da2a1761"}]}],"out":[{"x":760,"y":180,"wires":[{"id":"c45cdb23da2a1761","port":0}]}],"env":[],"meta":{},"color":"#DDAA99","status":{"x":760,"y":320,"wires":[{"id":"a005a35b4ea9adf8","port":0}]}},{"id":"c45cdb23da2a1761","type":"function","z":"ac7f510db8bb03d7","name":"","func":"\n\nvar timestamp = (new Date()).toLocaleDateString() + \" \" + (new Date()).toLocaleTimeString('en-GB');\n\nmsg.log_display = timestamp \n\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":180,"wires":[["a005a35b4ea9adf8"]]},{"id":"a005a35b4ea9adf8","type":"change","z":"ac7f510db8bb03d7","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"log_display","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":300,"wires":[[]]},{"id":"6d18db3950f0affc","type":"subflow:ac7f510db8bb03d7","z":"39db5f1eba3113f9","name":"","x":530,"y":2800,"wires":[["d5444067a512c856"]]},{"id":"d5444067a512c856","type":"debug","z":"39db5f1eba3113f9","name":"debug 101","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"data","targetType":"msg","statusVal":"","statusType":"auto","x":710,"y":2800,"wires":[]},{"id":"79db1c6c41dc9a88","type":"ha-button","z":"39db5f1eba3113f9","name":"prev_time_slot","version":0,"debugenabled":false,"outputs":1,"entityConfig":"a3ac758e091b0886","outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":320,"y":2820,"wires":[["6d18db3950f0affc"]]},{"id":"a3ac758e091b0886","type":"ha-entity-config","server":"538475ac.a2270c","deviceConfig":"","name":"prev_time_slot","version":"6","entityType":"button","haConfig":[{"property":"name","value":"prev_time_slot"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"538475ac.a2270c","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"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}]