Need help NodeRed and Shelly Button 1 issue

so i got mqtt to work but not in the mqtt intergration…
so the mqtt intergration sees nothing

but if i do a Listen # to listen to everything i was able to listen to a Single click which is a S and a double click SS i set the QoS to 2 in the Shelly i dunno what that does

so not much you can do then Nodred reads the Raw device not the HA device name then too… so just something i just gotta deal with … probably cuz it shuts itself off and when you press the button it wakes up sends and sends the device name first the hard coded first i guess… or however it all works

as for the mqtt here is the listening… it doesnt go into the mqtt intergration to make entities like the Video i watched… so not sure how they did it as they didnt show how you have entities for single double tripple and Long press Entity in HA under MQTT

Message 215 received on shellies/shellybutton1-483FDAC34078/input_event/0 at 11:29 AM:
{"event":"SS","event_cnt":18}
QoS: 2 - Retain: false
Message 214 received on shellies/shellybutton1-483FDAC34078/sensor/act_reasons at 11:29 AM:
[]
QoS: 2 - Retain: false
Message 213 received on shellies/shellybutton1-483FDAC34078/sensor/error at 11:29 AM:
0
QoS: 2 - Retain: false
Message 212 received on shellies/shellybutton1-483FDAC34078/sensor/charger at 11:29 AM:
true
QoS: 2 - Retain: false
Message 211 received on shellies/shellybutton1-483FDAC34078/sensor/battery at 11:29 AM:
100
QoS: 2 - Retain: false
Message 210 received on shellies/shellybutton1-483FDAC34078/input_event/0 at 11:27 AM:
{"event":"S","event_cnt":17}
QoS: 2 - Retain: false
Message 209 received on shellies/shellybutton1-483FDAC34078/sensor/act_reasons at 11:27 AM:
[]
QoS: 2 - Retain: false
Message 208 received on shellies/shellybutton1-483FDAC34078/sensor/error at 11:27 AM:
0
QoS: 2 - Retain: false
Message 207 received on shellies/shellybutton1-483FDAC34078/sensor/charger at 11:27 AM:
true
QoS: 2 - Retain: false
Message 206 received on shellies/shellybutton1-483FDAC34078/sensor/battery at 11:27 AM:
100
QoS: 2 - Retain: false

In the shelly setting is there a way to change the button type? It seems dependent on the button type whether or not it creates entities.

i dont se one this is what i followed this video i was trying to do his mqtt so it would show up in HA as a entity

unless u gotta create them in node red which i have done created entities

but i figured it should shown up as a mqtt intergration?

It is pretty easy to just create the sensor yourself rather than try to figure why it isn’t doing it automatically in configuration.yaml add

mqtt:
  - binary_sensor:
      name: "Shelly single press"
      state_topic: shellies/shellybutton1-483FDAC34078/input_event/0
      value_template: {{ 'On' if value_json.event == 'S'}}
      unique_id: micomorpmivajscoce2 #make up a unique 16+ didgit id

the template would change for each type of click S = single

image

ok thanks ill try that too

studio code server complaining about a comma i dunno where to put it?

i added a comma after the ‘on’ and that seems to taken the red away going to test that now

couldnt reboot check configuration gave error so me puttin that comma there didnt work

mqtt:
  - binary_sensor:
      name: "Shelly single press"
      state_topic: shellies/shellybutton1-483FDAC34078/input_event/0
      value_template: { { "On", if value_json.event == 'S' } }
      unique_id: shellybutton2

Try it without on if

that didnt work either the error now is

I think it’s that I didn’t define off, try

value_template: "{{ 'ON' if value_json.event == 'S' else 'OFF' }}"

ok that works… but it doesnt toggle off u know how like a on off button or touch sensor how do i make it a mometary press

so mqtt single press reads on even though its off… anyway i can tell it to go off

like a gpio pin when you touch the 2 wires together it goes on u let go it goes off
is that possible?

least the the entity is working

add off_delay: 1 to the config where 1 is seconds to reset, integers only.

so things were working… when i i added a 2nd button duplicated everything and changed things to be unqiue and changed for the second buttons name
even added qos: 0

but for whatever reason the binary sensor doesnt detect anymore but the listen mqtt sees the buttons pressed… but it never goes to the binary sensor… its pretty weird

i guess i just have to do it through it through node red as i did 2 out of the 4 buttons the 3 buttons i testing sending mqtt and show up in the listen but no longer show up as a binary sensor 4th one i think might be a dud button might re flash it…

so i tried to make a node red binary sensor but it didnt work here is my export see where i went wrong
since the mqtt seems flaky the listen works but the mqtt isnt getting to the binary sensor

[{"id":"343e4a9ec8ea544f","type":"server-events","z":"e8bbe01d7860c5ec","name":"All shelly clicks","server":"824eb086f81f9a6e","version":3,"exposeAsEntityConfig":"","eventType":"shelly.click","eventData":"","waitForRunning":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"}],"x":140,"y":1880,"wires":[["4082cf7cd453bd1f","ba234849b607e545"]]},{"id":"4082cf7cd453bd1f","type":"switch","z":"e8bbe01d7860c5ec","name":"which device","property":"payload.event.device","propertyType":"msg","rules":[{"t":"eq","v":"device 1 #","vt":"str"},{"t":"eq","v":"device 2 #","vt":"str"},{"t":"eq","v":"shellybutton1-485519F2EB03","vt":"str"},{"t":"eq","v":"shellybutton1-483FDAC34078","vt":"str"},{"t":"eq","v":"shellybutton1-485519F35E8F","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":310,"y":1880,"wires":[[],[],["5cdbe967ace5a379"],["a64a8978634e773c"],["1fd1eb53a93b173c"]]},{"id":"5cdbe967ace5a379","type":"switch","z":"e8bbe01d7860c5ec","name":"","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"long","vt":"str"},{"t":"eq","v":"run","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":570,"y":1860,"wires":[["ed20232d600b4072"],["b07f101d3d46b2ef"],["e942b66b83d36413"],["da4c0f535c8721a4"],[]]},{"id":"1fd1eb53a93b173c","type":"switch","z":"e8bbe01d7860c5ec","name":"","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"long","vt":"str"},{"t":"eq","v":"run","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":570,"y":2220,"wires":[["6df5d3df68887c48","c3e7c5f666bccdae"],["d580a42379405437"],["9040ba53ad4339d6"],["e6c3a1b38a4bae66"],[]]},{"id":"6df5d3df68887c48","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 3 Single Press","entityConfig":"f2147396d8d97a47","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":2160,"wires":[["c3e7c5f666bccdae"]]},{"id":"d580a42379405437","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 3 Double Press","entityConfig":"fbcd93b1849654fd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":2200,"wires":[["c3e7c5f666bccdae"]]},{"id":"9040ba53ad4339d6","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 3 Triple Press","entityConfig":"2a2d4d8f1398655a","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":2240,"wires":[["c3e7c5f666bccdae"]]},{"id":"e6c3a1b38a4bae66","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 3 Long Press","entityConfig":"719475aa929c84ea","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":2280,"wires":[["c3e7c5f666bccdae"]]},{"id":"a64a8978634e773c","type":"switch","z":"e8bbe01d7860c5ec","name":"","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"long","vt":"str"},{"t":"eq","v":"run","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":570,"y":2040,"wires":[["7823e25ce8ae40d9","77cc801d9908b2d7"],["98a36afe0c0397fd"],["0560ee372da8940c"],["c171918aecf5d4d0"],[]]},{"id":"7823e25ce8ae40d9","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 2 Single Press","entityConfig":"1c54cd935e7b178a","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":1980,"wires":[["77cc801d9908b2d7"]]},{"id":"98a36afe0c0397fd","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 2 Double Press","entityConfig":"dd950297b449c90d","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":2020,"wires":[["77cc801d9908b2d7"]]},{"id":"0560ee372da8940c","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 2 Triple Press","entityConfig":"5fcf0213790a24d1","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":2060,"wires":[["77cc801d9908b2d7"]]},{"id":"c171918aecf5d4d0","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 2 Long Press","entityConfig":"0857a292dc4544a8","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":2100,"wires":[["77cc801d9908b2d7"]]},{"id":"ed20232d600b4072","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 1 Single Press","entityConfig":"4476879d0ed595a2","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":1780,"wires":[["3a2b59d90ebfc3ee"]]},{"id":"b07f101d3d46b2ef","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 1 Double Press","entityConfig":"ef0b39dad948dbbf","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":1840,"wires":[["3a2b59d90ebfc3ee"]]},{"id":"e942b66b83d36413","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 1 Triple Press","entityConfig":"0c2ade578d3c9308","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":1880,"wires":[["3a2b59d90ebfc3ee"]]},{"id":"da4c0f535c8721a4","type":"ha-binary-sensor","z":"e8bbe01d7860c5ec","name":"Shelly Button 1 Long Press","entityConfig":"0f13e3bee85a3748","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":840,"y":1920,"wires":[["3a2b59d90ebfc3ee"]]},{"id":"3a2b59d90ebfc3ee","type":"debug","z":"e8bbe01d7860c5ec","name":"debug 16","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1100,"y":1840,"wires":[]},{"id":"77cc801d9908b2d7","type":"debug","z":"e8bbe01d7860c5ec","name":"debug 17","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1080,"y":2040,"wires":[]},{"id":"c3e7c5f666bccdae","type":"debug","z":"e8bbe01d7860c5ec","name":"debug 18","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1080,"y":2220,"wires":[]},{"id":"ba234849b607e545","type":"debug","z":"e8bbe01d7860c5ec","name":"debug 19","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":280,"y":2140,"wires":[]},{"id":"824eb086f81f9a6e","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"id","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true},{"id":"f2147396d8d97a47","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 3 Single Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 3 Single Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"fbcd93b1849654fd","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 3 Double Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 3 Double Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"2a2d4d8f1398655a","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 3 Triple Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 3 Triple Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"719475aa929c84ea","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 3 Long Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 3 Long Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"1c54cd935e7b178a","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 2 Single Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 2 Single Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"dd950297b449c90d","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 2 Double Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 2 Double Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"5fcf0213790a24d1","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 2 Triple Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 2 Triple Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"0857a292dc4544a8","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 2 Long Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 2 Long Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"4476879d0ed595a2","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 1 Single Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 1 Single Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"ef0b39dad948dbbf","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 1 Double Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 1 Double Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"0c2ade578d3c9308","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 1 Triple Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 1 Triple Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"0f13e3bee85a3748","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 1 Long Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 1 Long Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"915baa48.9b1898","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}]

debug error is

"HomeAssistantError: expected bool for dictionary value @ data['state']. Got {'event_type': 'shelly.click', 'event': {'device_id': '7394769e9552e038a1218aa25b351b18', 'device': 'shellybutton1-483FDAC34078', 'channel': 1, 'click_type': 'single', 'generation': 1}, 'origin': 'LOCAL', 'time_fired': '2024-05-15T23:38:37.888781+00:00', 'context': {'id': '01HXZ9YGY0VXGX1F6594S0XS0Q', 'parent_id': None, 'user_id': None}}"

thats for the last debugs

You have to send a boolean payload on/off true/false etc to turn the sensor on and off

I added a trigger node it will send on and then 1 second later it will send off. I also added another node to delete the existing message. You will need to put them in between each binary sensor node.

[{"id":"343e4a9ec8ea544f","type":"server-events","z":"0f8b525850b0c871","name":"All shelly clicks","server":"","version":3,"exposeAsEntityConfig":"","eventType":"shelly.click","eventData":"","waitForRunning":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"}],"x":280,"y":1080,"wires":[["4082cf7cd453bd1f","ba234849b607e545"]]},{"id":"4082cf7cd453bd1f","type":"switch","z":"0f8b525850b0c871","name":"which device","property":"payload.event.device","propertyType":"msg","rules":[{"t":"eq","v":"device 1 #","vt":"str"},{"t":"eq","v":"device 2 #","vt":"str"},{"t":"eq","v":"shellybutton1-485519F2EB03","vt":"str"},{"t":"eq","v":"shellybutton1-483FDAC34078","vt":"str"},{"t":"eq","v":"shellybutton1-485519F35E8F","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":470,"y":1080,"wires":[[],[],["5cdbe967ace5a379"],["a64a8978634e773c"],["1fd1eb53a93b173c"]]},{"id":"5cdbe967ace5a379","type":"switch","z":"0f8b525850b0c871","name":"","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"long","vt":"str"},{"t":"eq","v":"run","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":670,"y":1040,"wires":[["ab0e781af5c5a2c2"],["b07f101d3d46b2ef"],["e942b66b83d36413"],["da4c0f535c8721a4"],[]]},{"id":"1fd1eb53a93b173c","type":"switch","z":"0f8b525850b0c871","name":"","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"long","vt":"str"},{"t":"eq","v":"run","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":670,"y":1380,"wires":[["6df5d3df68887c48"],["d580a42379405437"],["9040ba53ad4339d6"],["e6c3a1b38a4bae66"],[]]},{"id":"6df5d3df68887c48","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 3 Single Press","entityConfig":"f2147396d8d97a47","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1200,"y":1360,"wires":[["c3e7c5f666bccdae"]]},{"id":"d580a42379405437","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 3 Double Press","entityConfig":"fbcd93b1849654fd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1200,"y":1400,"wires":[["c3e7c5f666bccdae"]]},{"id":"9040ba53ad4339d6","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 3 Triple Press","entityConfig":"2a2d4d8f1398655a","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1200,"y":1440,"wires":[["c3e7c5f666bccdae"]]},{"id":"e6c3a1b38a4bae66","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 3 Long Press","entityConfig":"719475aa929c84ea","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1200,"y":1480,"wires":[["c3e7c5f666bccdae"]]},{"id":"a64a8978634e773c","type":"switch","z":"0f8b525850b0c871","name":"","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"long","vt":"str"},{"t":"eq","v":"run","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":670,"y":1240,"wires":[["7823e25ce8ae40d9"],["98a36afe0c0397fd"],["0560ee372da8940c"],["c171918aecf5d4d0"],[]]},{"id":"7823e25ce8ae40d9","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 2 Single Press","entityConfig":"1c54cd935e7b178a","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1200,"y":1180,"wires":[["77cc801d9908b2d7"]]},{"id":"98a36afe0c0397fd","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 2 Double Press","entityConfig":"dd950297b449c90d","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1200,"y":1220,"wires":[["77cc801d9908b2d7"]]},{"id":"0560ee372da8940c","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 2 Triple Press","entityConfig":"5fcf0213790a24d1","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1200,"y":1260,"wires":[["77cc801d9908b2d7"]]},{"id":"c171918aecf5d4d0","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 2 Long Press","entityConfig":"0857a292dc4544a8","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1200,"y":1300,"wires":[["77cc801d9908b2d7"]]},{"id":"ed20232d600b4072","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 1 Single Press","entityConfig":"4476879d0ed595a2","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1220,"y":980,"wires":[["3a2b59d90ebfc3ee"]]},{"id":"b07f101d3d46b2ef","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 1 Double Press","entityConfig":"ef0b39dad948dbbf","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1220,"y":1040,"wires":[["3a2b59d90ebfc3ee"]]},{"id":"e942b66b83d36413","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 1 Triple Press","entityConfig":"0c2ade578d3c9308","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1220,"y":1080,"wires":[["3a2b59d90ebfc3ee"]]},{"id":"da4c0f535c8721a4","type":"ha-binary-sensor","z":"0f8b525850b0c871","name":"Shelly Button 1 Long Press","entityConfig":"0f13e3bee85a3748","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1220,"y":1120,"wires":[["3a2b59d90ebfc3ee"]]},{"id":"3a2b59d90ebfc3ee","type":"debug","z":"0f8b525850b0c871","name":"debug 16","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1460,"y":1040,"wires":[]},{"id":"77cc801d9908b2d7","type":"debug","z":"0f8b525850b0c871","name":"debug 17","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1440,"y":1240,"wires":[]},{"id":"c3e7c5f666bccdae","type":"debug","z":"0f8b525850b0c871","name":"debug 18","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1440,"y":1420,"wires":[]},{"id":"ba234849b607e545","type":"debug","z":"0f8b525850b0c871","name":"debug 19","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":480,"y":1340,"wires":[]},{"id":"948b6b0a1d8d5dc1","type":"trigger","z":"0f8b525850b0c871","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1000,"y":980,"wires":[["ed20232d600b4072"]]},{"id":"ab0e781af5c5a2c2","type":"function","z":"0f8b525850b0c871","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":850,"y":980,"wires":[["948b6b0a1d8d5dc1"]]}]

ok i got it to work flipping on and off couple things whats the reason for the
msg = {}
what does that do?

and i ran into issue… so i have 2 flow pages
so i have the
Shelly page that creates all the clicks

[{"id":"612a38668b9dc057","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 3 Long Press Binary Sensor","entityConfig":"719475aa929c84ea","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":540,"wires":[["3eacdec64fa2ac7d"]]},{"id":"20162c451eb2380a","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 1 Double Press Binary Sensor","entityConfig":"ef0b39dad948dbbf","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1090,"y":100,"wires":[["18abaa7edd540850"]]},{"id":"ecb7b1f2c019b40e","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":100,"wires":[["20162c451eb2380a"]]},{"id":"c63b73930f10d7a1","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":100,"wires":[["ecb7b1f2c019b40e"]]},{"id":"6098d0a913be72b7","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":540,"wires":[["612a38668b9dc057"]]},{"id":"d68f811ae5ecace4","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":540,"wires":[["6098d0a913be72b7"]]},{"id":"d8923434632e423c","type":"switch","z":"cd54e1decb70e46f","name":"which device","property":"payload.event.device","propertyType":"msg","rules":[{"t":"eq","v":"shellybutton1-485519F2EB03","vt":"str"},{"t":"eq","v":"shellybutton1-483FDAC34078","vt":"str"},{"t":"eq","v":"shellybutton1-485519F35E8F","vt":"str"},{"t":"eq","v":"Button 4","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":270,"y":160,"wires":[["a7ccc66eec1831c7"],["76ee9602df27f321"],["1a38ea3d4d06d0d4"],[]]},{"id":"a7ccc66eec1831c7","type":"switch","z":"cd54e1decb70e46f","name":"Button 1 Switchs","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"long","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":490,"y":120,"wires":[["bb056d135ba8a387"],["c63b73930f10d7a1"],["c33436922f1604fa"],["747e730d26d7625b"]]},{"id":"1a38ea3d4d06d0d4","type":"switch","z":"cd54e1decb70e46f","name":"Button 3 Switchs","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"long","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":490,"y":480,"wires":[["1eca40c6253e0ffc"],["624011bd3879d803"],["2ecbdffab278f055"],["d68f811ae5ecace4"]]},{"id":"b132876ae73487e4","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 3 Single Press Binary Sensor","entityConfig":"f2147396d8d97a47","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1090,"y":420,"wires":[["3eacdec64fa2ac7d"]]},{"id":"cd63cbe03979dd24","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 3 Double Press Binary Sensor","entityConfig":"fbcd93b1849654fd","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1090,"y":460,"wires":[["3eacdec64fa2ac7d"]]},{"id":"4a1ee73c3050402d","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 3 Triple Press Binary Sensor","entityConfig":"2a2d4d8f1398655a","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1090,"y":500,"wires":[["3eacdec64fa2ac7d"]]},{"id":"76ee9602df27f321","type":"switch","z":"cd54e1decb70e46f","name":"Button 2 Switchs","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"long","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":490,"y":300,"wires":[["42db78203f6be1d9"],["d2378b36638d0d62"],["120b0176ad6777e9"],["e1ff74d9e09f7551"]]},{"id":"148207df3639d409","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 2 Single Press Binary Sensor","entityConfig":"1c54cd935e7b178a","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1090,"y":240,"wires":[["2cca28fb68600be1"]]},{"id":"0180c5c2c8bdecaa","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 2 Double Press Binary Sensor ","entityConfig":"dd950297b449c90d","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1090,"y":280,"wires":[["2cca28fb68600be1"]]},{"id":"7ffd633bfeafe175","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 2 Triple Press Binary Sensor","entityConfig":"5fcf0213790a24d1","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1090,"y":320,"wires":[["2cca28fb68600be1"]]},{"id":"a67287843c8d4964","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 2 Long Press Binary Sensor","entityConfig":"0857a292dc4544a8","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":360,"wires":[["2cca28fb68600be1"]]},{"id":"6ff376f24f1fca7e","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 1 Triple Press Binary Sensor","entityConfig":"0c2ade578d3c9308","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1090,"y":140,"wires":[["18abaa7edd540850"]]},{"id":"02e75aaa869e2628","type":"ha-binary-sensor","z":"cd54e1decb70e46f","name":"Shelly Button 1 Long Press Binary Sensor","entityConfig":"0f13e3bee85a3748","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1080,"y":180,"wires":[["18abaa7edd540850"]]},{"id":"18abaa7edd540850","type":"debug","z":"cd54e1decb70e46f","name":"debug 16","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1380,"y":120,"wires":[]},{"id":"2cca28fb68600be1","type":"debug","z":"cd54e1decb70e46f","name":"debug 17","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1380,"y":300,"wires":[]},{"id":"3eacdec64fa2ac7d","type":"debug","z":"cd54e1decb70e46f","name":"debug 18","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1380,"y":480,"wires":[]},{"id":"f3b850b82a15ede7","type":"debug","z":"cd54e1decb70e46f","name":"debug 19","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":260,"y":240,"wires":[]},{"id":"d7ce468442999297","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":140,"wires":[["6ff376f24f1fca7e"]]},{"id":"c33436922f1604fa","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":140,"wires":[["d7ce468442999297"]]},{"id":"adfdd471e0e85330","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":180,"wires":[["02e75aaa869e2628"]]},{"id":"747e730d26d7625b","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":180,"wires":[["adfdd471e0e85330"]]},{"id":"01a0cf3fd5bad566","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":240,"wires":[["148207df3639d409"]]},{"id":"42db78203f6be1d9","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":240,"wires":[["01a0cf3fd5bad566"]]},{"id":"7215af3de731d773","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":280,"wires":[["0180c5c2c8bdecaa"]]},{"id":"d2378b36638d0d62","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":280,"wires":[["7215af3de731d773"]]},{"id":"8c16fa21a5ab3094","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":320,"wires":[["7ffd633bfeafe175"]]},{"id":"120b0176ad6777e9","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":320,"wires":[["8c16fa21a5ab3094"]]},{"id":"33702e86549c391f","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":360,"wires":[["a67287843c8d4964"]]},{"id":"e1ff74d9e09f7551","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":360,"wires":[["33702e86549c391f"]]},{"id":"816cee41e38dfefb","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":420,"wires":[["b132876ae73487e4"]]},{"id":"1eca40c6253e0ffc","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":420,"wires":[["816cee41e38dfefb"]]},{"id":"e20c42b1c71ff454","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":460,"wires":[["cd63cbe03979dd24"]]},{"id":"624011bd3879d803","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":460,"wires":[["e20c42b1c71ff454"]]},{"id":"577d876d5f348fcf","type":"trigger","z":"cd54e1decb70e46f","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":500,"wires":[["4a1ee73c3050402d"]]},{"id":"2ecbdffab278f055","type":"function","z":"cd54e1decb70e46f","name":"payload on","func":"msg = {};\nmsg.payload = \"on\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":500,"wires":[["577d876d5f348fcf"]]},{"id":"f6a6a1fed48a3ff2","type":"server-events","z":"cd54e1decb70e46f","name":"All shelly clicks","server":"824eb086f81f9a6e","version":3,"exposeAsEntityConfig":"","eventType":"shelly.click","eventData":"","waitForRunning":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"}],"x":80,"y":160,"wires":[["d8923434632e423c"]]},{"id":"719475aa929c84ea","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 3 Long Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 3 Long Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"ef0b39dad948dbbf","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 1 Double Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 1 Double Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"f2147396d8d97a47","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 3 Single Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 3 Single Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"fbcd93b1849654fd","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 3 Double Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 3 Double Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"2a2d4d8f1398655a","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 3 Triple Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 3 Triple Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"1c54cd935e7b178a","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 2 Single Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 2 Single Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"dd950297b449c90d","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 2 Double Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 2 Double Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"5fcf0213790a24d1","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 2 Triple Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 2 Triple Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"0857a292dc4544a8","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 2 Long Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 2 Long Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"0c2ade578d3c9308","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 1 Triple Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 1 Triple Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"0f13e3bee85a3748","type":"ha-entity-config","server":"915baa48.9b1898","deviceConfig":"","name":"Shelly Button 1 Long Press","version":"6","entityType":"binary_sensor","haConfig":[{"property":"name","value":"Shelly Button 1 Long Press"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":false,"debugEnabled":false},{"id":"824eb086f81f9a6e","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"id","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true},{"id":"915baa48.9b1898","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}]

and then on other pages i wanna be able to do like turn on a gate light from the binary sensor but
when i ran into issue
so its set to toggle

but when the Binary sensory turns off it toggles the gate light off…
how do you if its possible

toggle the Gate Light but still turn off the Binary Sensor. or you cant

and here is that code

[{"id":"3ada22bada5729ac","type":"api-call-service","z":"cd54e1decb70e46f","name":"Gate Light","server":"915baa48.9b1898","version":5,"debugenabled":false,"domain":"switch","service":"toggle","areaId":[],"deviceId":["1fe8b6cd1506d31f97f4a57bb8a04cd8"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":650,"y":620,"wires":[[]]},{"id":"e8a41520d4e4d469","type":"server-state-changed","z":"cd54e1decb70e46f","name":"Shelly Button 1 Single Press","server":"915baa48.9b1898","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"binary_sensor.shelly_button_1_single_press","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":220,"y":620,"wires":[["3ada22bada5729ac"]]},{"id":"915baa48.9b1898","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}]

and sorry ahead of time if my sentences dont make sense… i have disylexia so it makes sense to me but not always to other people

unless i need to make a toggle binary sensor where its on and off and on can be off or on
i just wanted it to be off as the button is off

so like button release would toggle the switch then

If you set the event state with on as the state, it will only send on.

image

is that not what is happening at the gate? If you define the if State it will only respond to the action defined. If you leave it blank it will send both the on and off.

It creates an empty message object. All the incoming message parts are deleted.