jonathonlui / esphome-ikea-uppatvind

Modify Ikea UPPÅTVIND into "smart" purifier with ESPHome
70 stars 3 forks source link

Proposal: Power OFF button #7

Open antonio1475 opened 1 year ago

antonio1475 commented 1 year ago

I realized than by long-pressing the button, it powers off. No need to cycle through the speeds...

A Power Off can be added to the button section:

button:
  - platform: output
    name: "Increase speed"
    output: output1
    duration: 100ms
    id: button_press
    icon: mdi:fan-chevron-up
  - platform: output
    name: "Power Off"
    output: output1
    duration: 2s
    id: power_off
    icon: mdi:fan-off

1s wasn't enough, so I went straight to 2s.

I also renamed the normal button to Increase Speed, which is mostly its funciton (although it also turns off after speed 3...) and added icons:

image