Hi,
I’m trying to add a sensor in HA to show my electricity unit cost, which alternates depending on the time of day - just twice.
I’m not a confident programmer, yet so far I have got everything in HA working, by copying and modifying other people’s code or following guides and youtube!
However I cannot work out how to add a sensor to my config.yaml without it giving me a whole load of errors. All it needs to do is appear as a sensor with a price in £p/kWh that alternates between off and on peak - 2am to 6am being off peak.
Can anyone help me with what to add to the yaml and where?
thank you in advance.