It is based on ESPHome + custom component and optical interface.
The device is compatible with all types of meters supporting the IEC 62056-21 optical interface, offering a seamless solution for collecting meter readings remotely.
Meter Compatibility : The device is engineered to support all kinds of meters (water, electric, and so on) that adhere to the IEC 62056-21 optical interface standard. This means you can use it with a wide range of meters.
Assembly Instructions : Instructions with clear and easy-to-follow steps for hardware and software setup.
This seems very promising. I’ve checked with my hydro company but cannot determine the IEC standard they use in their meters. Is there a way to verify this on the meter itself ?
I’m currently trying to implement the Piggymeter project with a C3-mini board and the optical interface. But I’m already failing with the Yaml file.
The yaml file looks like this:
sensor:
- platform: iec62056
obis: 1-0:15.7.0
name: Absolute active energy total
unit_of_measurement: kWh
accuracy_decimals: 3
device_class: energy
state_class: total_increasing
But I get the following error message:
mapping values are not allowed here
in “/config/esphome/piggymeter.yaml”, line 43, column 12
This is this line:
obis: 1-0:15.7.0
you must indent text below -platform. Not sure if there is indentation or not as you pasted config as text not as code.
- platform: iec62056
obis: 1-0:15.7.0
name: Absolute active energy total
unit_of_measurement: kWh
accuracy_decimals: 3
device_class: energy
state_class: total_increasing
sensor:
- platform: iec62056
obis: 1-0:15.7.0
name: Absolute active energy total
unit_of_measurement: kWh
accuracy_decimals: 3
device_class: energy
state_class: total_increasing
and that’s what I get at yammllint.com, when I check the code:
Thank you, that was the fault.
But now I have an other problem.
I’ve installed esphome on home assistant and I trie to run the yaml. But I get this message:
INFO ESPHome 2024.2.2
INFO Reading configuration /config/esphome/piggymeter.yaml… Failed config
Must be string, got <class ‘esphome.helpers.EList’>. did you forget putting quotes around the value?.
sensor:
- platform: iec62056
obis: 1-0:15.8.0
name: Absolute active energy total
unit_of_measurement: kWh
accuracy_decimals: 3
device_class: energy
state_class: total_increasing