To use your Rainforest Automation EMU-2™ Energy Monitoring Unit in Home Assistant follow the Installation and Configuration instructions.
Place the following files in config\custom_components\rainforest\:
Add the following to your configuration.yaml file:
# Example configuration.yaml entry
sensor:
- platform: rainforest
port: '/dev/ttyACM0'- description: The comm port which the meter is connected to.
- required: true
- type: string
- description: The name to use when displaying this sensor.
- required: false
- type: string
- If the emu2 fails to initialize serial (e.g. pi not recognizing it, try different USB cables)
- If not running HASSIO (e.g. Ubuntu), make sure to have pyserial (via pip3 install pyserial)
- https://github.com/smakonin/RAEdataset/blob/master/EMU2_reader.py
- https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/sensor/serial.py
- https://home-assistant.io/components/sensor.date_countdown/
- https://github.com/rainforestautomation/Emu-Serial-API