Gauge Card not showing gauge when disconnected

I’ve configured a few smartplugs into HASS, and I thought it could be handy to make a tab with gauges to monitor them, since they’ve also have a powermeter function.

I only use a few of them now, but have them all configured already. When I put them into the powersocket, they will be recognised and ready to use where and whenever I would like to put them.

But unfortunatelly the gauges are not showing up when not plugged in, and this is not looking verry great… :frowning:

So I was also looking for other possibilities to show the measurments. But I actually like the gauge meters.

So does annybody know how to show them in a normall way, when the smartplug will not be plugged in? I configured the smartplugs with MQTT btw.

You could use the condition card with a template that checks whether it’s unavailable…

Thanks for your help!
But I’m not a verry experienced user of HASS. I don’t exactly know what you mean here. Could you please explain to me?
Thanks in advance! :slight_smile:

Something like:

type: conditional
conditions:
  - entity: sensor.my_sensor
    state_not: "unknown"
  - entity: sensor.my_sensor
    state_not: "unavailable"
card:
  type: gauge
  entity_id: sensor.my_sensor
1 Like

Manny thanks! I will give it a try! :smile:

Hello , can you solve this problem ??

i try “conditional” and not work , this only work with entity not with gauge.

@KTibow have you other options or a solution that the conditional work with gauge?

thanks

I see a solution in this video . creating templates of each entity , not is a really good solution but work!

1 Like

Perfect! Exactly what i was searching for my 3D printer.