slider-button-card
slider-button-card copied to clipboard
Using the attribute option, wrong attribute is affected
Checklist:
- [x ] I updated to the latest version available
- [x ] I cleared the cache of my browser
Release with the issue: v1.13.0
Last working release (if known):
Browser and Operating System: Crome/Edge + App on Android
Description of problem: I'm using the card with a climate entity to change the value of the numeric attributes. This is card yaml:
- type: custom:slider-button-card entity: climate.office slider: direction: left-right background: gradient use_state_color: false use_percentage_bg_opacity: false show_track: true toggle_on_click: false force_square: false show_attribute: false show_name: true show_state: true compact: true icon: show: false use_state_color: true tap_action: action: more-info icon: '' action_button: mode: custom icon: mdi:power show: false show_spinner: true tap_action: action: none attribute: max_temp show_attribute: true
The example is with the attribute max_temp. However, it doesn't matter which attribute i pick, activating the slider always change the value of the temperature attribute.
Activating the slider with any attribute should change the value of the actual attribute being used.
Javascript errors shown in the web inspector (if applicable):
Additional information: