From 3a2b44e180fe41b2635b25316ee177afc01a6565 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Wed, 6 Oct 2021 19:51:52 +1100 Subject: [PATCH] Update iotawatt.markdown for using the new high accuracy sensors (#19570) Co-authored-by: Franck Nijhof --- source/_integrations/iotawatt.markdown | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/source/_integrations/iotawatt.markdown b/source/_integrations/iotawatt.markdown index ab665f08ab1..f47f1436428 100644 --- a/source/_integrations/iotawatt.markdown +++ b/source/_integrations/iotawatt.markdown @@ -9,6 +9,7 @@ ha_config_flow: true ha_domain: iotawatt ha_codeowners: - '@gtdiehl' + - '@jyavenard' ha_platforms: - sensor --- @@ -20,9 +21,9 @@ and create them as sensors in Home Assistant. ## Energy management -IoTaWatt does not provide the exact data that is needed for energy management. We're working with the IotaWatt team on resolving this. +You can use the accumulated energy sensors directly with the Home Assistant energy dashboard. -Until then, you can use these instructions to create the correct entities that work with energy management: +If you have an energy production system such as solar panels, following these instructions: ### Configure IoTaWatt @@ -35,18 +36,17 @@ You will need to configure two new IoTaWatt output sensors: Replace `(Main_In_Red + Main_In_White + Main_In_Blue)` with the correct formula for your main feed. -### Configure Home Assistant +#### Using a solar net system -Add the following to your configuration.yaml file to convert the Watt measurements into kWh: +The IoTaWatt team recommends that the inputs for solar reads positive which can be achieved by either changing the orientation of the CT sensor or in the IoTaWatt's input settings, check `Reverse`. -```yaml -sensor iotawatt: - - platform: integration - source: sensor.mainsexport - name: Total Grid Export - unit_prefix: k - - platform: integration - source: sensor.mainsconsumption - name: Total Grid Consumption - unit_prefix: k -``` +Replace `(Main_In_Red + Main_In_White + Main_In_Blue)` with `(Main_In_Red + Main_In_White + Main_In_Blue - Solar)` + +If you have two solar sensors named `Solar1` and `Solar2` you would use: +`(Main_In_Red + Main_In_White + Main_In_Blue - Solar1 - Solar2)` + +### Configure Energy Management + +In the `Grid Consumption` settings, click `Add Consumption` and select `MainsConsumption.wh Accumulated` +In the `Return to grid` settings, click `Add Return` and select `MainsExport.wh Accumulated` +In the `Solar production` settings, click `Add Solar Production` and select `Solar.wh Accumulated`