drc38 / DiUS_Powersensor

Home Assistant Custom Integration for DiUS Powersensors
MIT License
9 stars 0 forks source link
hacs-custom homeassistant powersensor

DiUS Powersensor

coverage badge GitHub Release License

hacs Project Maintenance hacs_downloads

Discord Community Forum

Powersensor Home Assistant full integration prototype

This is an attempt at a standalone Powersensor integration with Home Assistant. Kudos to @izevaka for figuring out the sensor interface.

TO DO

  1. Make the connection more robust (reconnect/close etc)
  2. Add extra sensors
  3. Improve testing

Installation

HACS

HACS is recommended as it provides automated install and will notify you when updates are available.

This assumes you have HACS installed and know how to use it. If you need help with this, go to the HACS project documentation.

Add custom repository in HACS

  1. Click on HACS in your menu to open the HACS panel, then click on integrations (https://your.domain/hacs/integrations).
  2. Click on the 3 dots in the top right corner.
  3. Select "Custom repositories"
  4. Add the URL to the repository: https://github.com/drc38/DiUS_Powersensor
  5. Select the integration category.
  6. Click the "ADD" button.

Once done, you should see the new repository, appearing in a list like this. Click the Download button

Manual Installation

  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called dius.
  4. Download all the files from the custom_components/dius/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Restart Home Assistant
  7. In the HA UI go to "Integrations" click "+" and search for "DiUS_Powersensor"

Configuration

Configuration of the integration is done within the Integrations Panel in Home Assistant.

  1. Navigate to Integrations
  2. Click Add Integration
  3. Search for DiUS Powersensor
  4. Find your plug/gateway's IP address in the Powersensor mobile app

image

  1. Enter the IP address in the configuration, NB set your router to prevent the IP changing. Click Submit
  2. Click Configure on the newly created integration. By default the Main Power sensor and Plug sensor are selected, they can be unselected by clicking Configure. A power offset can also be applied to sensor readings eg -100W.

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines

Credits

This project was generated from @oncleben31's Home Assistant Custom Component Cookiecutter template.

Code template was mainly taken from @Ludeeus's integration_blueprint template