finity69x2 / fan-percent-button-row

Frontend plugin to control fans in Home Assistant using percent values for speeds
32 stars 19 forks source link

UI is not updating and OFF button doesn't working #32

Closed pterhu closed 1 year ago

pterhu commented 1 year ago

Hello!

I'm using a Sonoff iFan02 with the latest tasmota firmware. This fan is included into HA as mqtt fan entity. The default lovelace fan card (with speed slider and on/off) is working as expected: it controls the fan and also updated if the fan state is changing. I'm trying to use this fan-percent-button-row, but it doesn't work properly:

Here are my configs:

HA mqtt fan config:

custom card: entity: fan.bedroom_1_fan type: custom:fan-percent-button-row name: Ventilátor customTheme: false reverseButtons: true

entity state with attributes: image

Does anyone have any ideas? Thank you in advance!

pterhu commented 1 year ago

Aaah! The following was missing from mqtt fan config:

payload_on: "4" payload_off: "0"

Now HA knows the state of the fan entity and also fixed the other issues.