thomasloven / lovelace-slider-entity-row

🔹 Add sliders to entity cards
MIT License
799 stars 131 forks source link

Fan Icon doesn't update and Fan toggle requires 2 activations to turn off #226

Open TiddlyWiddly opened 2 years ago

TiddlyWiddly commented 2 years ago

My Home Assistant version: 2021.11.1

My lovelace configuration method (GUI or yaml): yaml

What I am doing: Turning on the fan and turning off the fan

What I expected to happen: I expected that the toggle would turn off the fan. I expected that the icon would update with status change when turned on.

What happened instead: I have to activate the toggle twice to turn off the fan. The status is not reflected in the icon when the toggle is turned on.

Minimal steps to reproduce:

# The least ammount of code possible to reproduce my error
type: entities
entities:
  - type: custom:slider-entity-row
    entity: fan.office_fan
    toggle: true
title: Switches
state_color: true

# End of code

Error messages from the browser console:


By putting an X in the boxes ([X]) below, I indicate that I:

thomasloven commented 2 years ago

Please find your fan entity in developer-tools/state and show me what it looks like when on and off.

TiddlyWiddly commented 2 years ago

It also seems to do this weird thing where I toggle it on and the toggle turns off for a second while the fan ramps up, then toggles itself back on. These behaviors happen on mobile as well as in the browser.

On:

speed_list: off, low, medium, high 
preset_modes:  
speed: high 
percentage: 100 
percentage_step: 1.0101010101010102 
preset_mode: null 
friendly_name: Office Fan 
supported_features: 1
--

Off:

speed_list: off, low, medium, high 
preset_modes:  
speed: off 
percentage: 0 
percentage_step: 1.0101010101010102 
preset_mode: null 
friendly_name: Office Fan 
supported_features: 1
--
TiddlyWiddly commented 2 years ago

This appears to be related to this issue that I found in the community as the behavior is very similar and I'm using the same switch: https://community.home-assistant.io/t/ge-enbrighten-fan-controller-incorrectly-reporting-on-off-state/334036