AnthonMS / my-cards

Bundle of my custom Lovelace cards for Home Assistant. Includes: my-slider, my-slider-v2, my-button
Other
104 stars 27 forks source link

[Feature]: Add support for attributes #48

Open zvir opened 1 year ago

zvir commented 1 year ago

Is your feature request related to a problem?

I wanted to add a slider to control humidity, but I can't connect a parameter that is an attribute of the humidifier entity.

Describe the solution you'd like

...
entity: humidifier.zhimi_ca4_6998_humidifier
attribute: humidity
...

Describe alternatives you've considered

No response

Additional context

No response

AnthonMS commented 1 year ago

Is it just setting the attribute by calling a set_state service or is there a service you call for this? It could be relatively easy to implement if it's the former.

zvir commented 1 year ago

the humidity is the state attribute, so I guess that the attribute can be set via set_state