I am trying to follow a guide to filter out rediculous energy spikes due to KWH dropping to zero at intermittent intervals before returning to the actual number, I set up a helper with an availability template to go unavailable should the value not be greater than zero, however, this template returns unavailable despite testing the template showing it returns true.
what am i doing wrong? can anyone help me set this up correctly? (only the shelly plug gen 4 is causing the spikes randomly or when it reboots and would like to filter out the spikes through the helper method i found on the forums)
One other thing… The template you pasted is using “pretty” quotes in the states function. These are often picked up from copy/pasting from improperly formatted text.