Instructions for setting up integration in Home AssistantOS to GET readings from OneMeter Cloud
- Add the below snippet to your configuration.yaml file:
rest: !include rest-integrations.yaml
- Download rest-integrations.yaml and change
<your device ID>
&<API key>
inside the file to values from cloud.onemeter.com & .
2.1 (Optional) Feel free to modify the file to your needs. Add/remove sensors modify settings etc. Currently, this integration has defined 7 sensors (all are extracted from OneMeter Cloud):
sensor.onemeterfirmware
- it will display firmware version of the OneMeter inv.0.23.0
format
sensor.onemeterlastrefresh
- this shows a DateTime of when HA sent
last request to Cloud (this is calculated locally not based on cloud data, I used this for troubleshooting)
sensor.onemeterlastread
- this shows the DateTime of last successful read from OneMeterDevice
sensor.onemeterbattery
- this shows battery percentage
sensor.onemeterenergy
- this is what you need, this is a reading of your energy meter
sensor.onemetercurrentmonth
- this shows usage in the current month rounded to 2 decimal places
sensor.onemeterpreviousmonth
- this shows usage in the previous month rounded to 2 decimal places - Upload rest-integrations.yaml to the same folder as your configuration.yaml file in HA.\
- RESTART your Home Assistant instance (reload is not enough). \
- New sensors should be available in your HASS environment. Add them to your Dashboards if you'd like. \
After you have successfully setup the REST Integration we can move forward and add our Sensor to Energy Dashboard.
- In Home Assistant: Go to Settings>Devices & services>Helpers \
- Create Helper
Utility meter
(for more info on specific settings for this helper refer to Utility Meter Documentation
Setup its name, and cycle and usesensor.onemeterenergy
as input. Save your Helper \ - Go to Setting>Dashboards>Energy and in
Grid consumption
add your newly addedUtility Meter
Helper \ - (Optional). You can set pricing per kWh If you want to track that \
- Wait, as advised per HomeAssistant OS suggestion - After setting up a new device, it can take up to 2 hours for new data to arrive in your energy dashboard.
You should start to see the vertical bars in your Energy Dashboard ;)