Update iotawatt.markdown for using the new high accuracy sensors (#19570)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Jean-Yves Avenard 2021-10-06 19:51:52 +11:00 committed by GitHub
parent c7f23c2faf
commit 3a2b44e180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`