any idea why I get negative solar production displayed? It's like I'd defined the sensor as hourly_increasing, but I haven't -
- data:
topic: homeassistant/sensor/teslpowerwall_wattshourlygenerated/config
retain: true
payload: |
{
"name": "watts hourly generated",
"unit_of_measurement" : "Wh","unique_id": "teslapowerwall_wattshourlygenerated",
"state_topic": "tesla/powerwall/stat",
"device_class": "energy",
"state_class": "total",
"value_template": {% raw %}"{{ value_json.HourlyGenerated }}"{% endraw %},
"device": {
"identifiers": ["teslapowerwall"],
"name": "Tesla Powerwall",
"model": "v2",
"manufacturer": "Tesla"
}
}
action: mqtt.publish