This repository contains a very basic PHP script which allows to integrate the Energy Manager module with Home-Assistant. This energy manager module is installed by the electrical company of Zürich (EWZ) but offers no API and no home-assistant integration.
As far as I know, the company that developped this product is not maintaining it anymore. There used to be a cloud solution, but it was turned down at the begining of 2022.
This script allows Home-Assistant to pull out two important values for your house:
- Electrical energy going from the grid to your house
- Electrical energy going from your house to the grid
This information can then be used in the energy view of home assistant.
This is by far not a real Home-Assistant integration, but it works.
The script is intended to run on any web-server that runs in the same LAN as the both the energy-manager and home assistant.
Just replace the value of EM_PASSWORD with the password of the energy manager.
The script assumes that the energy lives at the address energiemanager.home,
if this is not the case, you also will need to update that as well.
On the home assistant side, add the content of config.yaml to your config.yaml.
This configuration assumes that the PHP script mentioned above is served at address
http://192.168.1.4/energy.php, update as needed.
This code is distributed under the Apache 2.0 License.
