I want to achieve something, but my brains are failing me
I have an Itho ventilation box with 3 speeds (low-mid-high). The plug is a perilex plug which I connected to a Fibaro ZWAVE 2-way switch.
The low speed is ALWAY on and switching to mid or high, one (or both) of the switches needs to be turned on/off.
I have created 3 virtual switches (low / mid / high) in HA and add them to the Lovelace dashboard.
In Node red I have created a flow
- when switch low is pressed, both Fibaro entities needs to be switched OFF and virtual switch mid and high needs to be switched OFF
- when switch mid is pressed, 1 Fibaro entitie needs to be switched ON and the other needs to be switched OFF and virtual switch low and high needs to be switched OFF
- when switch high is pressed, both fibaro entities needs to be switched ON and virtual switch mid and high needs to be switched OFF.
This is working as needed (which will not implicate it is the best optionā¦ there are more ways to Rome)
Butā¦ the thing I canāt resolve is the following:
When I push (by accident) a button twice the button turns off and I canāt tell which speed the fan is set to.
Who has a smart solution for me to prevent a button to be pushed twiceā¦
[{"id":"95453356.055cb","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"b6ff11d5.363dc","type":"server-state-changed","z":"95453356.055cb","name":"LOW","server":"3c5076fb.e901ba","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.fan_low","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":190,"y":160,"wires":[["d604dd32.f2343"],[]]},{"id":"d604dd32.f2343","type":"switch","z":"95453356.055cb","name":"MID-CA OFF and HIGH-CA OFF","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":670,"y":160,"wires":[["5c064e7a.9f5f5","c457269c.e78a58","bfc4308e.88dd1"]]},{"id":"5c064e7a.9f5f5","type":"api-call-service","z":"95453356.055cb","name":"MID-CA OFF","server":"3c5076fb.e901ba","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.binary_power_switch_instance_1_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1010,"y":120,"wires":[[]]},{"id":"c457269c.e78a58","type":"api-call-service","z":"95453356.055cb","name":"HIGH-CA OFF","server":"3c5076fb.e901ba","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.binary_power_switch_instance_2_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1020,"y":200,"wires":[[]]},{"id":"1e3ffd0d.bf73e3","type":"server-state-changed","z":"95453356.055cb","name":"MID","server":"3c5076fb.e901ba","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.fan_mid","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":190,"y":240,"wires":[["b7d7c8db.c72528"],[]]},{"id":"b7d7c8db.c72528","type":"switch","z":"95453356.055cb","name":"MID-CA ON and HIGH-CA OFF","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":670,"y":240,"wires":[["abc0bc04.a5f95","c457269c.e78a58","d7348c8c.ac5c4"]]},{"id":"abc0bc04.a5f95","type":"api-call-service","z":"95453356.055cb","name":"MID-CA ON","server":"3c5076fb.e901ba","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.binary_power_switch_instance_1_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1010,"y":280,"wires":[[]]},{"id":"d6547194.afc26","type":"api-call-service","z":"95453356.055cb","name":"HIGH-CA ON","server":"3c5076fb.e901ba","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.binary_power_switch_instance_2_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1010,"y":360,"wires":[[]]},{"id":"44830f4.b53eff","type":"server-state-changed","z":"95453356.055cb","name":"HIGH","server":"3c5076fb.e901ba","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.fan_high","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":190,"y":320,"wires":[["953d3c8e.acec8"],[]]},{"id":"953d3c8e.acec8","type":"switch","z":"95453356.055cb","name":"MID-CA ON and HIGH-CA ON","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":670,"y":320,"wires":[["abc0bc04.a5f95","d6547194.afc26","2fd490dc.8a2f4"]]},{"id":"d7348c8c.ac5c4","type":"api-call-service","z":"95453356.055cb","name":"Toggle status low + high off","server":"3c5076fb.e901ba","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_off","entityId":"input_boolean.fan_low, input_boolean.fan_high","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1260,"y":240,"wires":[[]]},{"id":"2fd490dc.8a2f4","type":"api-call-service","z":"95453356.055cb","name":"Toggle status low + mid off","server":"3c5076fb.e901ba","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_off","entityId":"input_boolean.fan_low, input_boolean.fan_mid","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1260,"y":320,"wires":[[]]},{"id":"bfc4308e.88dd1","type":"api-call-service","z":"95453356.055cb","name":"Toggle status mid + high off","server":"3c5076fb.e901ba","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_off","entityId":"input_boolean.fan_mid, input_boolean.fan_high","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1260,"y":160,"wires":[[]]},{"id":"3c5076fb.e901ba","type":"server","name":"HomeAssistant@vanHeems","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]