Giter VIP home page Giter VIP logo

ha-rainforest-emu2's Introduction

Rainforest Energy Monitoring Component

hacs_badge

Overview

To use your Rainforest Automation EMU-2™ Energy Monitoring Unit in Home Assistant follow the Installation and Configuration instructions.

Installation

Place the following files in config\custom_components\rainforest\:

Configuraion

Add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: rainforest
    port: '/dev/ttyACM0'

port:

  • description: The comm port which the meter is connected to.
  • required: true
  • type: string

name:

  • description: The name to use when displaying this sensor.
  • required: false
  • type: string

Known Fixes

  • 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)

Reference Material

ha-rainforest-emu2's People

Contributors

brianhanifin avatar h0tw1r3 avatar jrhorrisberger avatar damienheiser avatar ebubna avatar

Watchers

 avatar

ha-rainforest-emu2's Issues

Issues with installing your integration

Hi,

I'm keen to get this working myself - I've found various versions of the Rainforest EMU-2 integration - but none work :(

I see yours is probably a little more up to date? But installing it on HA 2023.11.3 fails with some errors. I think I fixed the first error - which was because async_setup_platforms has been removed.

But now I have this error:

2023-12-05 22:29:28.548 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up rainforest_emu_2 platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/rainforest_emu_2/sensor.py", line 44, in async_setup_entry
    sensor = EMU2Sensor(hass, config_entry)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/rainforest_emu_2/sensor.py", line 57, in __init__
    self._name = config_entry.data[CONF_NAME]
                 ~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'name'

Any update to your integration? Or tips to fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.