Hello!
I have a (binary_sensor) Pushbutton with on_click and double-click that toggle my Relais.
How can I use it in the frontend?
Hello!
I have a (binary_sensor) Pushbutton with on_click and double-click that toggle my Relais.
How can I use it in the frontend?
Same as any other binary sensor.
@nickrout I dont understand.
Sensor can only show state and History but can not Funktion “on_click”…
It is a light button with a 5 min delay that toggled a relay (switch). I would like to control this light in the Lovelace…
My Config: ESP8266 with ESPHome for Button and Relais and Home Assistant Frontend.
Sorry for my bad english. I am from germany…
I think you are confusing a device and it’s representation in the ui.
I think too. What is the best for momentary switch with Timer?
I will:
on_click = light on for 5 min
double_click = light on for 1h
long_press = light off
All of this should work with a momentary-button, in the Lovelace-UI and later via the 433MHz MQTT bridge.
The most important thing: the momentary-button should work with ESPHome even without a home assistant!