Closed broekieman closed 1 month ago
Manual's example has a correct Json format, but his automation sample for Home Assistant gives fault.
If i put his sample in: https://jsonformatter.org No problems but when i put this in it i get this fault:
Parse error on line 3: ... "power": {{ (states('sensor.YO -----------------------^ Expecting 'STRING', '}', got '{'
{ "pv": { "power": {{ (states('sensor.YOUR_PV_POWER_ENTITY') | float(0)) }}, "L1": { "power": {{ (states('sensor.YOUR_PV_L1_POWER_ENTITY') | float(0)) }}, }, "L2": { "power": {{ (states('sensor.YOUR_PV_L2_POWER_ENTITY') | float(0)) }}, }, "L3": { "power": {{ (states('sensor.YOUR_PV_L3_POWER_ENTITY') | float(0)) }}, } } }
This is solved!
Manual's example has a correct Json format, but his automation sample for Home Assistant gives fault.
If i put his sample in: https://jsonformatter.org No problems but when i put this in it i get this fault:
Parse error on line 3: ... "power": {{ (states('sensor.YO -----------------------^ Expecting 'STRING', '}', got '{'
{ "pv": { "power": {{ (states('sensor.YOUR_PV_POWER_ENTITY') | float(0)) }}, "L1": { "power": {{ (states('sensor.YOUR_PV_L1_POWER_ENTITY') | float(0)) }}, }, "L2": { "power": {{ (states('sensor.YOUR_PV_L2_POWER_ENTITY') | float(0)) }}, }, "L3": { "power": {{ (states('sensor.YOUR_PV_L3_POWER_ENTITY') | float(0)) }}, } } }