mmakaay
(Maurice Makaay)
January 2, 2022, 9:58pm
21
That last bit about the component taking too long is a mere warning. That wouldn’t stop the device from sending data.
Looking at the config you posted earlier, I don’t see any sensors that makes use of dsmr.
There’s also no need to use the external component. There are no features in dev that aren’t in the stable release. Better drop that part therefore.
cserhalmi
(Cserhalmi György)
January 3, 2022, 4:17am
22
Hi,
yes, I did forget to add sensors.
Now some sensor values are found, some are not supported.
I’m a lot happier than two days ago
I also closed related #2891 with a comment about the fix.
Do you think a feature is possible to refer to OBIS codes alternatively like
sensor:
- platform: dsmr
obis_01:
code: '1-0:32.7.0'
name: 'Voltage Phase 1'
Sensor could be obis_01 … obis_50 to support region specific data and next DSMR standards.
Br, György
mmakaay
(Maurice Makaay)
January 3, 2022, 8:17am
23
I am currently working on a refactor of the DSMR component, and the main target is to implement a DSMR parser for ESPHome, to get rid of the dependency on the Arduino parser. With that parser in place, it will be a lot easier to implement missing OBIS codes, since it will then be a one step implementation that can directly be tested.
Implementing a custom OBIS code would require more configuration than you proposed here. Not all lines are formatted in the same way for example, and units need to be specified. But it’s a nice idea to be able to specify missing OBIS codes like this. Ideally though, I’d like to see these codes implemented so all users can benefit from them.
cserhalmi
(Cserhalmi György)
January 3, 2022, 5:42pm
24
I’m looking forward to the update. Until then I’ll build your D1 mini based P1 logger just for fun, because parts are on the way already
Thanks again Jos and Maurice for your help, I’ll close this topic now and start to make beautiful power graphs.
If somebody finds this: partial solution for Hungarian DSMR with long text message can be found in issue #2891 .
substitutions:
device_name: slimmelezer
device_description: "smart meter P1 port wi-fi transmitter"
esphome:
name: slimmelezer
esp8266:
board: esp01_1m
# Enable logging
logger:
level: VERY_VERBOSE
baud_rate: 0
# Enable Home Assistant API
api:
ota:
password: "672c8b4ba6abc4b015f0349216f2d94f"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Slimmelezer Fallback Hotspot"
password: "4C8x8eXmH1YZ"
uart:
rx_pin: GPIO13
baud_rate: 115200
rx_buffer_size: 3000
# debug:
# direction: RX
# after:
# delimiter: "\r\n"
# sequence:
# - lambda: UARTDebug::log_string(direction, bytes);
dsmr:
max_telegram_length: 3000
crc_check: true
receive_timeout: 200ms
captive_portal:
sensor:
- platform: dsmr
energy_delivered_lux:
name: "Hatásos import energia (+A)"
energy_delivered_tariff1:
name: "Hatásos import energia (+A) – tarifa 1"
energy_delivered_tariff2:
name: "Hatásos import energia (+A) – tarifa 2"
energy_returned_lux:
name: "Hatásos export energia (-A)"
energy_returned_tariff1:
name: "Hatásos export energia (-A) – tarifa 1"
energy_returned_tariff2:
name: "Hatásos export energia (-A) – tarifa 2"
power_delivered:
name: "Pillanatnyi import teljesítmény (+A)"
accuracy_decimals: 3
power_returned:
name: "Pillanatnyi export teljesítmény (-A)"
accuracy_decimals: 3
electricity_failures:
name: "Electricity Failures"
icon: mdi:alert
electricity_long_failures:
name: "Long Electricity Failures"
icon: mdi:alert
voltage_l1:
name: "Pillanatnyi fázis feszültség L1"
voltage_l2:
name: "Pillanatnyi fázis feszültség L2"
voltage_l3:
name: "Pillanatnyi fázis feszültség L3"
current_l1:
name: "Pillanatnyi áram L1"
current_l2:
name: "Pillanatnyi áram L2"
current_l3:
name: "Pillanatnyi áram L3"
- platform: uptime
name: "SlimmeLezer Üzemidő"
- platform: wifi_signal
name: "SlimmeLezer Wi-Fi jel"
update_interval: 60s
text_sensor:
- platform: dsmr
identification:
name: "COSEM logikai készüléknév"
- platform: wifi_info
ip_address:
name: "SlimmeLezer IP"
ssid:
name: "SlimmeLezer Wi-Fi SSID"
bssid:
name: "SlimmeLezer Wi-Fi BSSID"
- platform: version
name: "ESPHome verzió"
hide_timestamp: true
1 Like
jasperb
(Jasper van den Berg)
July 21, 2022, 5:40am
25
Hi,
I have a similar issue when trying to read the smart meter. I have created a topic here: DSMR topic
Do you have any tips to solve this?