There is a Scene Switch whose status is Single click, Double click, etc.
To begin with, I would like to turn the light on and off using Single click.
I don’t know how to do this, and so far I’ve only been able to make it turn on with Single click and turn off with Double click.
Is it possible to perform both actions only using Single click?
Here’s what happened so far:
[{"id":"51ecfa0f622129ab","type":"tab","label":"Поток 5","disabled":false,"info":"","env":[]},{"id":"cae40b18d8f240f7","type":"server-state-changed","z":"51ecfa0f622129ab","name":"","server":"10cea322.6322ad","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"select.vykliuchatel_switch_1","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":210,"y":60,"wires":[["692f1339a85e4dd9"]]},{"id":"692f1339a85e4dd9","type":"change","z":"51ecfa0f622129ab","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"Single click","fromt":"str","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"Double click","fromt":"str","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":180,"y":160,"wires":[["f375b2def998fb42"]]},{"id":"f375b2def998fb42","type":"switch","z":"51ecfa0f622129ab","name":"on and off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":420,"y":160,"wires":[["fb2a30eb57917a1c"],["fb2a30eb57917a1c"]]},{"id":"fb2a30eb57917a1c","type":"api-call-service","z":"51ecfa0f622129ab","name":"","server":"10cea322.6322ad","version":5,"debugenabled":false,"domain":"switch","service":"turn_{{payload}}","areaId":[],"deviceId":[],"entityId":["switch.unknown_switch_1_2"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":660,"y":220,"wires":[[]]},{"id":"10cea322.6322ad","type":"server","name":"Home Assistant","addon":true}]