-
Couldn't load subscription status.
- Fork 0
Description
Hi,
I recently started creating an esphome component for reading data from dlms encryped smartmeters. (used a lot in Austria)
Great thanks to DomiStyle(https://github.com/DomiStyle/esphome-dlms-meter) and firegore for the basic implementation.
But - as custom-components are deprecated now - I implemented it in a proper esphome-component, added support for evn smartmeters and did some more smaller fixes / changes.
Requirements esp(32 or 8266) and some mbus to uart converter. More details see for example: https://github.com/DomiStyle/esphome-dlms-meter?tab=readme-ov-file#requirements
Here is a basic yaml config you can try out for now:
If you have Netz NÖ / EVN:
# Enable logging
logger:
# level: VERBOSE
# tx_buffer_size: 1024
external_components:
- source: github://SimonFischer04/esphome@dlms-meter
components: [ dlms_meter ]
uart:
rx_pin: GPIO33 # change this to the pin where you connected the mbus adapter board
baud_rate: 2400
rx_buffer_size: 1024 # Needed to receive the large packets send by the smart meter
dlms_meter:
decryption_key: "36C66639E48A8CA4D6BC8B282A793BBB" # change this to your decryption key!
provider: netznoe # (optional) key - only set if using evn
sensor:
- platform: dlms_meter
voltage_l1:
name: "Voltage L1"
voltage_l2:
name: "Voltage L2"
voltage_l3:
name: "Voltage L3"
current_l1:
name: "Current L1"
current_l2:
name: "Current L2"
current_l3:
name: "Current L3"
active_power_plus:
name: "Active power taken from grid"
active_power_minus:
name: "Active power put into grid"
active_energy_plus:
name: "Active energy taken from grid"
active_energy_minus:
name: "Active energy put into grid"
# EVN
power_factor:
name: "Power Factor"
text_sensor:
- platform: dlms_meter
timestamp:
name: "timestamp"
# EVN
meternumber:
name: "meterNumber"any other grid operator:
# Enable logging
logger:
# level: VERBOSE
# tx_buffer_size: 1024
external_components:
- source: github://SimonFischer04/esphome@dlms-meter
components: [ dlms_meter ]
uart:
rx_pin: GPIO33 # change this to the pin where you connected the mbus adapter board
baud_rate: 2400
rx_buffer_size: 1024 # Needed to receive the large packets send by the smart meter
dlms_meter:
decryption_key: "36C66639E48A8CA4D6BC8B282A793BBB" # change this to your decryption key!
sensor:
- platform: dlms_meter
voltage_l1:
name: "Voltage L1"
voltage_l2:
name: "Voltage L2"
voltage_l3:
name: "Voltage L3"
current_l1:
name: "Current L1"
current_l2:
name: "Current L2"
current_l3:
name: "Current L3"
active_power_plus:
name: "Active power taken from grid"
active_power_minus:
name: "Active power put into grid"
active_energy_plus:
name: "Active energy taken from grid"
active_energy_minus:
name: "Active energy put into grid"
reactive_energy_plus:
name: "Reactive energy taken from grid"
reactive_energy_minus:
name: "Reactive energy put into grid"
text_sensor:
- platform: dlms_meter
timestamp:
name: "timestamp"Would love to get some feedback if it works for you also / you encounter some problems.
If you test please report back your findings here:
- time when you compiled / installed it (as code in github branch can change if I need to fix something, ...)
- works: yes/no
- if its does not work: any error in log? (use log-level: VERBOSE)
- which provider (and smartmeter) you have
- if you are willing to: a few sample packet-data and your decryption key . i'm planning to add automated tests for this component in the future. But for this I would need some data to test / verify. (or if - like evn - your provider has an example with data and key => please also let me know)
- which esp board you are using (8266 or 32)
- mbus to uart adapter used (shouldn't matter, but maybe its nice so we can collect a list of some)
- ... (anything else that might be interesting)
At least for now, this issue should be seen also as a (general) discussion thread around esp(home) / reading dlms encrypted data from smartmeters. So any input / feedback is welcome!
To help with debugging, please provide logs after enabling logger: level: VERBOSE (and tx_buffer_size: 1024 - required to log full packets)
PS: be careful with VERY_VERBOSE, as this also logs the decryption key (like the logs also warn at the very beginning)!
Upstreaming in progress. Feel free to review the pr and upvote the first post if it works for you.: esphome#8009.
Links to other issues I found around this topic: