This implements a collection of sensors, and a switch implementation for the Franklin WH home energy system.
Copy this folder to <config_dir>/custom_components/franklin_wh/
.
Add the following to your configuration.yaml
file:
switch:
- platform: franklin_wh
access_token: !secret franklin_wh_token
id: 1005xxxxxxxxxxx
switches: [3]
name: "test switch"
- platform: franklin_wh
access_token: !secret franklin_wh_token
id: 1005xxxxxxxxxxx
switches: [1, 2]
name: "EV Charger"
sensor:
- platform: franklin_wh
access_token: !secret franklin_wh_token
id: 1005xxxxxxxxxxx
You can get the access token with the script bundled in the franklinwh python module, the ID is available from the app and will also be spat out from that python script when I figure out an easy way to get it.
The switches list in the switch config is the smart circuits that should be bound to that virtual switch.