Hiya. I’m hoping someone could please point me in the right direction.
… Sorry if its as easy as I’m hoping it is!
I user a template for a mains plug that supports power monitoring.
The ‘state_attr’ for ‘current_power_w’ gives me the power usage when above 0 W.
However, when the switch is off, instead of showing 0, it displays ‘None’.
I felt that this was a great opportunity to use a template.
I had a go, but sadly it still shows ‘None’ at times when I was really hoping for ‘0 W’.
If anyone could point me towards whatever I’m missing, I’d really appreciate it please.
Hope that’s clear - thanks in advance!