I just can't get the P1 reader to get to work (VM/Docker/hassio)

Hi all,

i got a p1 reader ( FTDI FT232R USB UART accoring to vmware) and i just can’t get it to work,
is there anyone who can help me with this?

I am running on Vmware with a virtual machine (Debian) with docker on it.
On Docker i have installed HA (on hassio) *correct me if i’m wrong

i used the following guilde: https://www.home-assistant.io/integrations/dsmr
but i just cant get it to work.

when i go to: supervisor/system/hardware is can see the device

  • /dev/ttyS0
  • /dev/ttyS1
  • /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AQ4N1495-if00-port0

but even if i change the device in the configuration.yaml it wont work.

In HA i CAN see the new entity’s but the stat is unknown.

sensor.current_phase_l1 unknown friendly_name: Current Phase L1
sensor.current_phase_l2 unknown friendly_name: Current Phase L2
sensor.current_phase_l3 unknown friendly_name: Current Phase L3
sensor.energy_consumption_tarif_1 unknown friendly_name: Energy Consumption (tarif 1)
sensor.energy_consumption_tarif_2 unknown friendly_name: Energy Consumption (tarif 2)
sensor.energy_consumption_total unknown friendly_name: Energy Consumption (total)
sensor.energy_production_tarif_1 unknown friendly_name: Energy Production (tarif 1)
sensor.energy_production_tarif_2 unknown friendly_name: Energy Production (tarif 2)

Can someone please help me? i realy want this to work, but i think i miss something.
I saw a lot of Dutch people get it to work. (i’m dutch to) so perhapes someone can help me in his own language Or English.

kind regards.

1 Like

Logboekdetails ( ERROR )
Logger: homeassistant.core
Source: /usr/src/homeassistant/homeassistant/core.py:144
First occurred: 0:54:47 (238663 occurrences)
Last logged: 17:25:26

Error doing job: Exception in callback SerialTransport._read_ready()
Traceback (most recent call last):
File “/usr/local/lib/python3.7/asyncio/events.py”, line 88, in _run
self._context.run(self._callback, *self._args)
File “/usr/local/lib/python3.7/site-packages/serial_asyncio/init.py”, line 106, in _read_ready
File “/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py”, line 87, in data_received
data = data.decode(‘ascii’)
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xff in position 0: ordinal not in range(128)

1 Like