#scene_button #home_assistant #esphome
In this how to make video learn how to make a scene button with ESP32 development boards and Home Assistant and enjoy benefits of it such as convenience.
Invitation Link to join my Exclusive membership:
/ @kian.smarthome
text_sensor:
platform: template
name: Scene Button
id: scene_button
lambda: |-
return {"Released"};
binary_sensor:
platform: gpio
pin:
number: 16
mode: INPUT_PULLUP
inverted: true
name: "Scene Button 1"
internal: true
filters:
delayed_on_off: 50 ms
on_multi_click:
timing:
ON for at least 1s
OFF for at least 1s
then:
text_sensor.template.publish:
id: scene_button
state: "Hold"
delay: 2 s
text_sensor.template.publish:
id: scene_button
state: "Released"
timing:
ON for at most 0.5s
OFF for at least 1s
then:
text_sensor.template.publish:
id: scene_button
state: "Clicked"
delay: 2 s
text_sensor.template.publish:
id: scene_button
state: "Released"
timing:
ON for at most 0.5s
OFF for at most 0.5s
ON for at most 0.5s
OFF for at least 1s
then:
text_sensor.template.publish:
id: scene_button
state: "Double Clicked"
delay: 2 s
text_sensor.template.publish:
id: scene_button
state: "Released"
timing:
ON for at most 0.5s
OFF for at most 0.5s
ON for at most 0.5s
OFF for at most 0.5s
ON for at most 0.5s
OFF for at least 1s
then:
text_sensor.template.publish:
id: scene_button
state: "Tripple Clicked"
delay: 2 s
text_sensor.template.publish:
id: scene_button
state: "Released"
timing:
ON for at most 0.5s
OFF for at most 0.5s
ON for at most 0.5s
OFF for at most 0.5s
ON for at most 0.5s
OFF for at most 0.5s
ON for at most 0.5s
OFF for at least 1s
then:
text_sensor.template.publish:
id: scene_button
state: "Fourth Clicked"
delay: 2 s
text_sensor.template.publish:
id: scene_button
state: "Released"
Buy me a Coffee:
https://www.buymeacoffee.com/kian.sma...
#tuya #automation #home_automation #integration #smart_home #sonoff #zigbee #smarthome #iot #bms #wifi #zigbee #zwave #esp32 #esp8266 #esphome #scenebutton #scene_burron #scene #smart_lighting #smart_lighting #smart_thermostat #smartgadgets #smart_gadget #hassio #hacs #ha #smart_devices #smar_ home_gadget