dylandoamaral / uptime-card

Minimalistic uptime card for Home Assistant Lovelace UI
266 stars 11 forks source link

switch domain support #116

Closed sshalyminov closed 2 years ago

sshalyminov commented 2 years ago

Can you please add switch domain support? For now it shows nothing (just gray), like unavailable.

dylandoamaral commented 2 years ago

You want me to suppport switch entities ?

sshalyminov commented 2 years ago

Yes, to show the switch history as well as for binary_sensor. The switch can be "on" or "off" and this can be used for your card. And probably input_boolean - it has the same behavior. Of course I can create template binary_sensor to reflect switch or input_boolean just for your card but why to breed extra entities?

dylandoamaral commented 2 years ago

You also can configure your card to match your need without creating any new sensor.

But I will add it to uptime-card I think it is a good idea 👍🏻

sshalyminov commented 2 years ago

Thank you!