RomRider / apexcharts-card

📈 A Lovelace card to display advanced graphs and charts based on ApexChartsJS for Home Assistant
MIT License
1.08k stars 75 forks source link

Expand entity type range. #706

Closed Spamfast closed 5 days ago

Spamfast commented 1 month ago

Checklist

Is your feature request related to a problem? Please describe. Yes, I believe. I could have sworn that I used to be able to use a switch entity with a suitable transform: "return x === 'on' ? 1 : 0;" to show a switch on the graph but now it always displays as N/A in the states legend and doesn't show up on the plot.

Describe the solution you'd like Can we please use arbitrary entity types provided they have a 'state' property so we don't have to create template sensor/binary_sensor entities for the sole purpose of graphing?

Describe alternatives you've considered I'm using a template binary sensor now which works but is not very elegant as it loads the HA server unnecessarily even when I'm not viewing the graph.

Additional context Nothing to declare.

RomRider commented 1 week ago

Did you disable history for this entity or the whole switch domain? That would be the only reason that I can think of.

Spamfast commented 5 days ago

At one point I think I did. I'll close this.