IoTaWatt to Charge HQ integration
A PowerShell script which reads current values from your IoTaWatt energy monitoring system and passes it to Charge HQ. Charge HQ uses these values to charge your EV battery maximising solar energy use.
Developed against IoTaWatt with 13 CT sensors which track solar production and house usage, although the script can be used with as few as 2 CT sensors. At minimum we require 3 outputs from IoTaWatt:
- Solar production
- House consumption
- Net grid import/export (negative values being export)
Modify $IOTAWATT_IP_ADDRESS, $IOTAWATT_GRIDNET_KEY, $IOTAWATT_PRODUCTION_KEY, $IOTAWATT_CONSUMPTION_KEY and $CHARGE_HQ_APIKEY at the top of the script. You can get your Charge HQ API key using following the instructions here.
Schedule the script to run every minute using the following trigger in Windows Task Scheduler:
The action should be to run PowerShell with the arguments -File [script location]
: