turbokongen / hass-ams Goto Github PK
View Code? Open in Web Editor NEWCustom component reading AMS through MBus adapter into HomeAssistant
Custom component reading AMS through MBus adapter into HomeAssistant
is I possible to use decryption keys
with this integration?
hardware im871A-USB
I'm getting readings on all attributes except ams_active_power_import. This one doesn't show up in the version 1.04 on HA 0.107.7
I have Kaifa one phase meter.
The cpu usage is very high (I have a solution for this pr is coming)
I have added a async method and threaded method, I don't know what is best yet.
Hi
I am having trouble trying to complete the installation of hass-AMS. I am in Norway with Raspberry pi 4 connected with USB cable to OSS-brikke which is connected to Aidon 6525
I do not get any errors during installation, and I am not sure if I am looking in the right logs for troubleshooting this.
In Home assistant I see zero devices and zero entities related to AMS Reader if I set meter_manufacturer: 'aidon' in /root/config/configuration.yaml
If I change this to meter_manufacturer: 'aidon_se' then in Home assistant I see 1 device and 5 entities related to AMS Reader.
HA > Settings > Devices & services > Integrations > AMS reader > now it says 1 device and 5 entities:
ams_active_energy_export_00
ams_active_energy_import_00
ams_active_power_import_00 4,788 W
ams_reactive_energy_export_00
ams_reactive_energy_import_00
Nothing appears in HA > Energy after installation.
So I have received 5, and it should be totally 14 entities according to #80
Should I see anything inside Home assistant Energy after installation of AMS Reader?
Should I look in any other logs than HA > Settings > System > Logs > Home assistant core > Load full logs ?
I am a newbie trying to do my best in reading documentations, searching forums and watching youtube videos.
I have tested on Raspberry pi 4 with Home assistant operating system
I have tested on Raspberry pi 3b+ with RPI OS Lite 64-bit and Home assistant container installed in Docker
I experience this in both environments
I have tried restarting HA and restarting RPI
I have tried deleting cache inside Edge on my Windows 10 computer
I have installed via HACS followed by setup of AMS reader in HA > Settings > Devices & services > Integrations > Add integration > AMS reader. This gave no devices and no entities.
I have tried adding ams into configuration.yaml for HA, and this seems to have taken it a step further, because now I receive data almost every 2 seconds inside this log in HA > Settings > System > Logs > Home assistant core > Load full logs. See example from logs further down.
Here comes more details of the steps that have been done so far on RPI4:
The OSS mobile app is receiving data from OSS-brikke
Downloaded RPI4 64bit Home assistant operating system
HA > Settings > About:
Home Assistant 2022.12.8
Supervisor 2022.12.1
Operating system 9.4
Frontend 20221213.1 - latest
HA > Settings > Add-ons > Add-on store > Official add-ons > Terminal & SSH > Install
HA > Settings > Add-ons > Terminal & SSH > Start button > Open web ui > ha info
arch: aarch64
channel: stable
docker: 20.10.19
features:
Installed HACS according to https://hacs.xyz/docs/setup/download
HA > HACS > Integrations > Explore & download repositories > hass-ams > Download > version = v1.9.8 > Download
HA > Settings > System > Restart > Restart
HA > Settings > Devices & services > Integrations > Add integrations > AMS reader:
cat ./homeassistant/config/custom_components/ams/manifest.json: "version": "1.9.8"
HA > Settings > Devices & services > Entities > there are no new entities appearing here. Should I see something here?
HA > Settings > Devices & services > Devices > there are no new devices appearing here. Should I see something here?
HA > Energy > here I see Step 1 of 6 and Next button for setup. Maybe I should click through these 6 steps for setup?
HA > Settings > System > Restart > Restart
HA > Settings > Devices & services > Entities > there are no new entities appearing here. Should I see something here?
HA > Settings > Devices & services > Devices > there are no new devices appearing here. Should I see something here?
HA > Energy > here I see Step 1 of 6 and Next button for setup. Maybe I should click through these 6 steps for setup?
HA > Settings > Devices & services > Integrations > AMS reader > Reload
HA > Settings > Devices & services > Integrations > AMS reader > Enable debug logging
HA > Settings > Devices & services > Integrations > AMS reader > Disable
HA > Settings > Devices & services > Integrations > Add integrations > AMS reader:
default_config:
frontend:
themes: !include_dir_merge_named themes
ams:
protocol: serial
serial_port: '/dev/ttyUSB0'
baudrate: 115200
parity: 'N'
meter_manufacturer: 'aidon'
logger:
default: warning
logs:
custom_components.ams: debug
tts:
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
HA > Settings > System > Restart
HA > Settings > System > Logs > Home assistant core > Load full logs > now I receive data almost every 2 seconds. Example in attached
Log01.txt
HA > Settings > Devices & services > Integrations > AMS reader > Delete
HA > Settings > Devices & services > Integrations > Add integration > AMS reader
default_config:
frontend:
themes: !include_dir_merge_named themes
ams:
protocol: serial
serial_port: '/dev/ttyUSB0'
baudrate: 115200
parity: 'N'
meter_manufacturer: 'aidon_se'
logger:
default: warning
logs:
custom_components.ams: debug
tts:
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
HA > Settings > System > Restart
HA > Settings > Devices & services > Integrations > AMS reader > now it says 1 device and 5 entities:
ams_active_energy_export_00
ams_active_energy_import_00
ams_active_power_import_00 4,788 W
ams_reactive_energy_export_00
ams_reactive_energy_import_00
HA > Settings > Devices & services > Devices > AMS energy meter
So I have received 5, and it should be totally 14 entities according to #80
HA > Settings > System > Logs > Home assistant core > Load full logs > CTRL + F to search for
list_type is
There is no other than list_type is 1
I tested with different manufacturer, and repeated the following steps to collect the following information:
HA > Settings > Devices & services > Integrations > AMS reader > Delete
HA > Settings > Add-ons > Terminal & SSH > Open web ui > nano /root/config/configuration.yaml
HA > Settings > Devices & services > Integrations > add integration > AMS reader > select same manufacturer as in yaml
HA > Settings > System > Restart
HA > Settings > Devices & services > Integrations > AMS reader > now it says X device and X entities
HA > Settings > System > Logs > Home assistant core > Load full logs > CTRL + F to search for list_type is
Manufacturer Entities list_type is numbers received
auto 0 none no entity to show anything
aidon 0 1 no entity to show anything
aidon_se 5 1 ams_active_power_import_00 4,788 W
kaifa 0 none no entity to show anything
kaifa_se 0 1 no entity to show anything
kamstrup 0 none no entity to show anything
Attached log from each of these tests
aidon_se.txt
auto.txt
kaifa.txt
kaifa_se.txt
kamstrup.txt
aidon.txt
The readouts form my AMS meter has stopped worknig, and i have an error in Home Asssitant logs.
`Logger: homeassistant.config_entries
Source: custom_components/ams/init.py:166
Integration: AMS Reader (documentation, issues)
First occurred: 18:55:40 (5 occurrences)
Last logged: 19:22:27
Error calling entry remove callback AMS Reader for ams
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 536, in async_remove
await component.async_remove_entry(hass, self)
File "/config/custom_components/ams/init.py", line 114, in async_remove_entry
await hass.async_add_executor_job(hass.data[DOMAIN].stop_serial_read)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ams/init.py", line 166, in stop_serial_read
self._ser.close()
AttributeError: 'AmsHub' object has no attribute '_ser'`
How do I fix this?
Hi
I'm testing you component.
When I'm install and config it in configuration.yaml home assistant report problem:
ERROR (MainThread) [homeassistant.components.sensor] The ams platform for the sensor integration does not support platform setup. Please remove it from your config.
How fix it?
Core: core-2021.2.3
Supervisor: supervisor-2021.02.9
Operating System Raspbian GNU/Linux 10 (buster) (rpi 4)
Docker version 19.03.13
After upgrading hass-AMS to 1.04 all 10-sec-package sensors becomes unavailable when (and everytime) HA restarts. The hour-package sensors seems to be OK and updates every hour.
I have to delete the integration, restart HA and add the integration again to get it up and running.
This is the debug log after a restart with both 10-sec- and hour-package included. As far as I can see, everything looks normal (but I don't know what to look for).
ha-debug-log.txt
Sensors are not being created
Iam running with ser2net on another raspberry pi and and on home assistant server its with socat mounted the serialport
it would be nice to add SERIAL TCP support in the future so i dont need to use socat.
I tried to remove and reinstall same issue.
Running version: v1.4.2
Same issue with Home Assistant 2021.5.4 and homeassistant 2021.6.4
core_config_entries
"domain": "ams",
"title": "Norwegian AMS",
"data": {
"serial_port": "/tmp/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0",
"meter_manufacturer": "kamstrup",
"parity": "N"
2021-06-14 17:37:30 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.hacs
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams] data read from port=[126, 160, 226, 43, 33, 19, 35, 154, 230, 231, 0, 15, 0, 0, 0, 0, 12, 7, 229, 6, 14, 1, 17, 37, 30, 255, 128, 0, 128, 2, 25, 10, 14, 75, 97, 109, 115, 116, 114, 117, 112, 95, 86, 48, 48, 48, 49, 9, 6, 1, 1, 0, 0, 5, 255, 10, 16, 53, 55, 48, 54, 53, 54, 55, 50, 55, 53, 57, 52, 48, 56, 52, 49, 9, 6, 1, 1, 96, 1, 1, 255, 10, 18, 54, 56, 52, 49, 49, 51, 56, 65, 78, 50, 52, 51, 49, 48, 49, 48, 57, 48, 9, 6, 1, 1, 1, 7, 0, 255, 6, 0, 0, 4, 178, 9, 6, 1, 1, 2, 7, 0, 255, 6, 0, 0, 0, 0, 9, 6, 1, 1, 3, 7, 0, 255, 6, 0, 0, 0, 32, 9, 6, 1, 1, 4, 7, 0, 255, 6, 0, 0, 0, 223, 9, 6, 1, 1, 31, 7, 0, 255, 6, 0, 0, 0, 142, 9, 6, 1, 1, 51, 7, 0, 255, 6, 0, 0, 1, 159, 9, 6, 1, 1, 71, 7, 0, 255, 6, 0, 0, 0, 73, 9, 6, 1, 1, 32, 7, 0, 255, 18, 0, 236, 9, 6, 1, 1, 52, 7, 0, 255, 18, 0, 237, 9, 6, 1, 1, 72, 7, 0, 255, 18, 0, 240, 81, 53, 126]
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] list_type is 25
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] meter_serial, OBIS:[1, 1, 0, 0, 5, 255], Index:(49, 55), Type:10 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 10: SECRETID, Index:(57, 73)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] meter_type, OBIS:[1, 1, 96, 1, 1, 255], Index:(75, 81), Type:10 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 10: None, Index:(83, 101)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] ams_active_power_import, OBIS:[1, 1, 1, 7, 0, 255], Index:(103, 109), Type:6 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 6: 1202, Index:(110, 114)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] ams_active_power_export, OBIS:[1, 1, 2, 7, 0, 255], Index:(116, 122), Type:6 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 6: 0, Index:(123, 127)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] ams_reactive_power_import, OBIS:[1, 1, 3, 7, 0, 255], Index:(129, 135), Type:6 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 6: 32, Index:(136, 140)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] ams_reactive_power_export, OBIS:[1, 1, 4, 7, 0, 255], Index:(142, 148), Type:6 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 6: 223, Index:(149, 153)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] ams_current_l1, OBIS:[1, 1, 31, 7, 0, 255], Index:(155, 161), Type:6 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 6: 1.42, Index:(162, 166)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] ams_current_l2, OBIS:[1, 1, 51, 7, 0, 255], Index:(168, 174), Type:6 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 6: 4.15, Index:(175, 179)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] ams_current_l3, OBIS:[1, 1, 71, 7, 0, 255], Index:(181, 187), Type:6 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 6: 0.73, Index:(188, 192)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] ams_voltage_l1, OBIS:[1, 1, 32, 7, 0, 255], Index:(194, 200), Type:18 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 16/18: 236, Index:(201, 203)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] ams_voltage_l2, OBIS:[1, 1, 52, 7, 0, 255], Index:(205, 211), Type:18 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 16/18: 237, Index:(212, 214)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] ams_voltage_l3, OBIS:[1, 1, 72, 7, 0, 255], Index:(216, 222), Type:18 Double OBIS
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams.parsers.kamstrup] Value double OBIS type 16/18: 240, Index:(223, 225)
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams] Got 10 new devices from the serial
2021-06-14 17:37:31 DEBUG (Thread-3) [custom_components.ams] DUMP {'ams_active_power_import': {'state': 1202, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.1.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export': {'state': 0, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.2.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import': {'state': 32, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.3.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export': {'state': 223, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.4.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_current_l1': {'state': 1.42, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.31.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_current_l2': {'state': 4.15, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.51.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_current_l3': {'state': 0.73, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.71.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_voltage_l1': {'state': 236, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.32.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_voltage_l2': {'state': 237, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.52.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_voltage_l3': {'state': 240, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.72.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_import DUMP sensor_states {'name': 'ams_active_power_import', 'state': 1202, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.1.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_export DUMP sensor_states {'name': 'ams_active_power_export', 'state': 0, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.2.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_import DUMP sensor_states {'name': 'ams_reactive_power_import', 'state': 32, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.3.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_export DUMP sensor_states {'name': 'ams_reactive_power_export', 'state': 223, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.4.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l1
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_current_l1 DUMP sensor_states {'name': 'ams_current_l1', 'state': 1.42, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.31.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l2
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_current_l2 DUMP sensor_states {'name': 'ams_current_l2', 'state': 4.15, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.51.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l3
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_current_l3 DUMP sensor_states {'name': 'ams_current_l3', 'state': 0.73, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.71.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l1
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_voltage_l1 DUMP sensor_states {'name': 'ams_voltage_l1', 'state': 236, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.32.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l2
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_voltage_l2 DUMP sensor_states {'name': 'ams_voltage_l2', 'state': 237, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.52.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l3
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_voltage_l3 DUMP sensor_states {'name': 'ams_voltage_l3', 'state': 240, 'attributes': {'meter_manufacturer': 'Kamstrup_V0001', 'meter_type': None, 'obis_code': '1.1.72.7.0.255', 'meter_serial': 'SECRETID', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Hourly sensor ams_active_energy_import added so we can attempt to restore state
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_energy_import DUMP sensor_states {'name': 'ams_active_energy_import', 'state': None, 'attributes': None}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Hourly sensor ams_active_energy_export added so we can attempt to restore state
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_energy_export DUMP sensor_states {'name': 'ams_active_energy_export', 'state': None, 'attributes': None}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Hourly sensor ams_reactive_energy_import added so we can attempt to restore state
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_energy_import DUMP sensor_states {'name': 'ams_reactive_energy_import', 'state': None, 'attributes': None}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Hourly sensor ams_reactive_energy_export added so we can attempt to restore state
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_energy_export DUMP sensor_states {'name': 'ams_reactive_energy_export', 'state': None, 'attributes': None}
2021-06-14 17:37:31 DEBUG (MainThread) [custom_components.ams.sensor] Trying to add 14 sensors
2021-06-14 17:37:31 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform ams
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 383, in async_add_entities
await asyncio.gather(*tasks)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 458, in _async_add_entity
device_info = entity.device_info
File "/home/homeassistant/.homeassistant/custom_components/ams/sensor.py", line 137, in device_info
"model": self.ams.meter_type,
File "/home/homeassistant/.homeassistant/custom_components/ams/__init__.py", line 139, in meter_type
return self._attrs[const.HAN_METER_TYPE]
KeyError: 'meter_type'
Hi,
Just wanted you to know that I have an Adion 6534 and it works just great with your component so you should consider moving it from "untested" in the readme.md.
I am not seeing any hourly values yet (the clock has passed full hour once), not sure if this is expected or not.
Thank you for all your work :-)
I get an data read error every 1-2 weeks. It last for 0.5-2 hours, and then everything works fine again. The error from the log:
2021-11-28 21:13:53 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid frame CRC check
2021-11-28 21:13:53 DEBUG (Thread-3) [custom_components.ams] failed package: [126, 162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 11, 28, 0, 21, 13, 50, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 3, 44, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 131, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 14, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 9, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 20, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 42, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 45, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 31, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 0, 216, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 22, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 23, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 1, 7, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 0, 196, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 42, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 43, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 122, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 1, 141, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 62, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 63, 7, 0, 255, 6, 0, 0, 1, 5, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 64, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 1, 8, 0, 255, 6, 1, 234, 139, 119, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 145, 147, 151, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 126]
2021-11-28 21:13:53 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid packet size 10
2021-11-28 21:13:53 DEBUG (Thread-3) [custom_components.ams] failed package: [251, 2, 2, 15, 0, 22, 32, 238, 139, 126]
2021-11-28 21:14:03 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid frame CRC check
2021-11-28 21:14:03 DEBUG (Thread-3) [custom_components.ams] failed package: [126, 162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 11, 28, 0, 21, 14, 0, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 3, 46, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 132, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 14, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 9, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 20, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 42, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 46, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 34, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 0, 217, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 22, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 23, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 1, 13, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 0, 195, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 42, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 43, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 122, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 1, 142, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 62, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 63, 7, 0, 255, 6, 0, 0, 1, 5, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 64, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 1, 8, 0, 255, 6, 1, 234, 139, 119, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 145, 147, 151, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 126]
2021-11-28 21:14:03 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid packet size 10
2021-11-28 21:14:03 DEBUG (Thread-3) [custom_components.ams] failed package: [251, 2, 2, 15, 0, 22, 32, 88, 227, 126]
The error keeps repeating itself every 10th second (every data-read). Until suddenly everything works fine again:
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams] data read from port=[126, 162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 11, 28, 0, 21, 14, 10, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 3, 45, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 132, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 14, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 9, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 20, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 48, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 43, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 25, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 0, 217, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 22, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 23, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 1, 15, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 0, 195, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 42, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 43, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 122, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 1, 142, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 62, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 63, 7, 0, 255, 6, 0, 0, 1, 4, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 64, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 1, 8, 0, 255, 6, 1, 234, 139, 132, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 145, 147, 151, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 127, 1, 2, 2, 15, 0, 22, 32, 68, 28, 126]
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] list_type is 27
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] meter_date_time, OBIS:[0, 0, 1, 0, 0, 255], Index:(24, 30), Type:9 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] meter_date_time, [0, 0, 1, 0, 0, 255], 2021, 11, 28, None, 21, 14, 10, 2021-11-28-21-14-14-10
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import, OBIS:[1, 0, 1, 7, 0, 255], Index:(48, 54), Type:6 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 813, Index:(55, 59)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export, OBIS:[1, 0, 2, 7, 0, 255], Index:(69, 75), Type:6 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0, Index:(76, 80)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import, OBIS:[1, 0, 3, 7, 0, 255], Index:(90, 96), Type:6 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0, Index:(97, 101)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export, OBIS:[1, 0, 4, 7, 0, 255], Index:(111, 117), Type:6 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 132, Index:(118, 122)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l1, OBIS:[1, 0, 21, 7, 0, 255], Index:(246, 252), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 217 Index:(253, 257)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l1, OBIS:[1, 0, 22, 7, 0, 255], Index:(267, 273), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(274, 278)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l1, OBIS:[1, 0, 23, 7, 0, 255], Index:(288, 294), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(295, 299)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l1, OBIS:[1, 0, 24, 7, 0, 255], Index:(309, 315), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 271 Index:(316, 320)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l2, OBIS:[1, 0, 41, 7, 0, 255], Index:(330, 336), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 195 Index:(337, 341)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l2, OBIS:[1, 0, 42, 7, 0, 255], Index:(351, 357), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(358, 362)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l2, OBIS:[1, 0, 43, 7, 0, 255], Index:(372, 378), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(379, 383)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l2, OBIS:[1, 0, 44, 7, 0, 255], Index:(393, 399), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 122 Index:(400, 404)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l3, OBIS:[1, 0, 61, 7, 0, 255], Index:(414, 420), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 398 Index:(421, 425)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l3, OBIS:[1, 0, 62, 7, 0, 255], Index:(435, 441), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(442, 446)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l3, OBIS:[1, 0, 63, 7, 0, 255], Index:(456, 462), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 260 Index:(463, 467)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l3, OBIS:[1, 0, 64, 7, 0, 255], Index:(477, 483), Type:6 Single OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(484, 488)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l1, OBIS:[1, 0, 31, 7, 0, 255], Index:(132, 138), Type:16 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 1.4, Index:(139, 141)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l2, OBIS:[1, 0, 51, 7, 0, 255], Index:(151, 157), Type:16 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 0.9, Index:(158, 160)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l3, OBIS:[1, 0, 71, 7, 0, 255], Index:(170, 176), Type:16 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 2.0, Index:(177, 179)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l1, OBIS:[1, 0, 32, 7, 0, 255], Index:(189, 195), Type:18 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 235.2, Index:(196, 198)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l2, OBIS:[1, 0, 52, 7, 0, 255], Index:(208, 214), Type:18 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 234.7, Index:(215, 217)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l3, OBIS:[1, 0, 72, 7, 0, 255], Index:(227, 233), Type:18 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 232.9, Index:(234, 236)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_energy_import, OBIS:[1, 0, 1, 8, 0, 255], Index:(498, 504), Type:6 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 32148.356, Index:(505, 509)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_energy_export, OBIS:[1, 0, 2, 8, 0, 255], Index:(519, 525), Type:6 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0.0, Index:(526, 530)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_energy_import, OBIS:[1, 0, 3, 8, 0, 255], Index:(540, 546), Type:6 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 9540.503, Index:(547, 551)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_energy_export, OBIS:[1, 0, 4, 8, 0, 255], Index:(561, 567), Type:6 Double OBIS
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 3440.385, Index:(568, 572)
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams] miss_attrs=[]
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams] Got 26 new devices from the serial
2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams] DUMP {'ams_active_power_import': {'state': 813, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.1.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.2.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.3.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export': {'state': 132, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.4.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_active_power_import_l1': {'state': 217, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.21.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export_l1': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.22.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import_l1': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.23.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export_l1': {'state': 271, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.24.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_active_power_import_l2': {'state': 195, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.41.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export_l2': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.42.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import_l2': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.43.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export_l2': {'state': 122, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.44.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_active_power_import_l3': {'state': 398, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.61.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export_l3': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.62.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import_l3': {'state': 260, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.63.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export_l3': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.64.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_current_l1': {'state': 1.4, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.31.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_current_l2': {'state': 0.9, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.51.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_current_l3': {'state': 2.0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.71.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_voltage_l1': {'state': 235.2, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.32.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_voltage_l2': {'state': 234.7, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.52.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_voltage_l3': {'state': 232.9, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.72.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_active_energy_import': {'state': 32148.356, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.1.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kWh', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy', 'state_class': 'total_increasing'}}, 'ams_active_energy_export': {'state': 0.0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.2.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kWh', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy', 'state_class': 'total_increasing'}}, 'ams_reactive_energy_import': {'state': 9540.503, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.3.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kVAr', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy'}}, 'ams_reactive_energy_export': {'state': 3440.385, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.4.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kVAr', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy'}}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_import DUMP sensor_states {'name': 'ams_active_power_import', 'state': 813, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.1.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_export DUMP sensor_states {'name': 'ams_active_power_export', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.2.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_import DUMP sensor_states {'name': 'ams_reactive_power_import', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.3.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_export DUMP sensor_states {'name': 'ams_reactive_power_export', 'state': 132, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.4.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_import_l1 DUMP sensor_states {'name': 'ams_active_power_import_l1', 'state': 217, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.21.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_export_l1 DUMP sensor_states {'name': 'ams_active_power_export_l1', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.22.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_import_l1 DUMP sensor_states {'name': 'ams_reactive_power_import_l1', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.23.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_export_l1 DUMP sensor_states {'name': 'ams_reactive_power_export_l1', 'state': 271, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.24.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_import_l2 DUMP sensor_states {'name': 'ams_active_power_import_l2', 'state': 195, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.41.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_export_l2 DUMP sensor_states {'name': 'ams_active_power_export_l2', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.42.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_import_l2 DUMP sensor_states {'name': 'ams_reactive_power_import_l2', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.43.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_export_l2 DUMP sensor_states {'name': 'ams_reactive_power_export_l2', 'state': 122, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.44.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_import_l3 DUMP sensor_states {'name': 'ams_active_power_import_l3', 'state': 398, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.61.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_export_l3 DUMP sensor_states {'name': 'ams_active_power_export_l3', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.62.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_import_l3 DUMP sensor_states {'name': 'ams_reactive_power_import_l3', 'state': 260, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.63.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_export_l3 DUMP sensor_states {'name': 'ams_reactive_power_export_l3', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.64.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_current_l1 DUMP sensor_states {'name': 'ams_current_l1', 'state': 1.4, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.31.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_current_l2 DUMP sensor_states {'name': 'ams_current_l2', 'state': 0.9, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.51.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_current_l3 DUMP sensor_states {'name': 'ams_current_l3', 'state': 2.0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.71.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_voltage_l1 DUMP sensor_states {'name': 'ams_voltage_l1', 'state': 235.2, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.32.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_voltage_l2 DUMP sensor_states {'name': 'ams_voltage_l2', 'state': 234.7, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.52.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_voltage_l3 DUMP sensor_states {'name': 'ams_voltage_l3', 'state': 232.9, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.72.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_energy_import
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_energy_import DUMP sensor_states {'name': 'ams_active_energy_import', 'state': 32148.356, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.1.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kWh', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy', 'state_class': 'total_increasing'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_energy_export
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_energy_export DUMP sensor_states {'name': 'ams_active_energy_export', 'state': 0.0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.2.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kWh', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy', 'state_class': 'total_increasing'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_energy_import
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_energy_import DUMP sensor_states {'name': 'ams_reactive_energy_import', 'state': 9540.503, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.3.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kVAr', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_energy_export
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_energy_export DUMP sensor_states {'name': 'ams_reactive_energy_export', 'state': 3440.385, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.4.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kVAr', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy'}}
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Trying to add 26 sensors: [<Entity ams_active_power_import_00: 813>, <Entity ams_active_power_export_00: 0>, <Entity ams_reactive_power_import_00: 0>, <Entity ams_reactive_power_export_00: 132>, <Entity ams_active_power_import_l1_00: 217>, <Entity ams_active_power_export_l1_00: 0>, <Entity ams_reactive_power_import_l1_00: 0>, <Entity ams_reactive_power_export_l1_00: 271>, <Entity ams_active_power_import_l2_00: 195>, <Entity ams_active_power_export_l2_00: 0>, <Entity ams_reactive_power_import_l2_00: 0>, <Entity ams_reactive_power_export_l2_00: 122>, <Entity ams_active_power_import_l3_00: 398>, <Entity ams_active_power_export_l3_00: 0>, <Entity ams_reactive_power_import_l3_00: 260>, <Entity ams_reactive_power_export_l3_00: 0>, <Entity ams_current_l1_00: 1.4>, <Entity ams_current_l2_00: 0.9>, <Entity ams_current_l3_00: 2.0>, <Entity ams_voltage_l1_00: 235.2>, <Entity ams_voltage_l2_00: 234.7>, <Entity ams_voltage_l3_00: 232.9>, <Entity ams_active_energy_import_00: 32148.356>, <Entity ams_active_energy_export_00: 0.0>, <Entity ams_reactive_energy_import_00: 9540.503>, <Entity ams_reactive_energy_export_00: 3440.385>]
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_import
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_export
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_import
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_export
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_import_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_export_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_import_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_export_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_import_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_export_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_import_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_export_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_import_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_export_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_import_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_export_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_current_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_current_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_current_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_voltage_l1
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_voltage_l2
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_voltage_l3
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] The old state 32141.27 was set more then 60 minutes ago 2021-11-28 17:34:13.228203+00:00, ignoring it.
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] The old state 0.0 was set more then 60 minutes ago 2021-11-24 10:59:24.518393+00:00, ignoring it.
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] The old state 9538.33 was set more then 60 minutes ago 2021-11-28 17:32:13.800559+00:00, ignoring it.
2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] The old state 3440.125 was set more then 60 minutes ago 2021-11-28 17:34:13.229466+00:00, ignoring it.
Any clues on what might cause this error?
Hi,
I have Aidon 6534 and with the 1.4.0-beta all of the sensors shows unavailable. Rolling back to 1.3 it works as before.
This is the debug log when running 1.4.0-beta:
2021-04-03 11:12:06 INFO (MainThread) [custom_components.ams] No YAML config available, using config_entries
2021-04-03 11:12:06 DEBUG (MainThread) [custom_components.ams] Connecting to HAN using port /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0
2021-04-03 11:12:06 DEBUG (MainThread) [custom_components.ams] Finish init of AMS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams] data read from port=[126, 161, 30, 65, 8, 131, 19, 238, 238, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 13, 2, 2, 9, 6, 1, 1, 0, 2, 129, 255, 10, 11, 65, 73, 68, 79, 78, 95, 86, 48, 48, 48, 49, 2, 2, 9, 6, 0, 0, 96, 1, 0, 255, 10, 16, 55, 51, 53, 57, 57, 57, 50, 56, 57, 53, 57, 49, 51, 49, 57, 53, 2, 2, 9, 6, 0, 0, 96, 1, 7, 255, 10, 4, 54, 53, 51, 52, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 27, 30, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 2, 118, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 193, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 23, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 81, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 39, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 79, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 52, 2, 2, 15, 255, 22, 35, 27, 183, 126]
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] list_type is 13
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] obis_list_version, OBIS:[1, 1, 0, 2, 129, 255], Index:(24, 30), Type:10 Single OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value Single OBIS type 10: AIDON_V0001, Index:(32, 43)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] meter_serial, OBIS:[0, 0, 96, 1, 0, 255], Index:(47, 53), Type:10 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 10: 7359992895913195, Index:(55, 71)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] meter_type, OBIS:[0, 0, 96, 1, 7, 255], Index:(75, 81), Type:10 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 10: 6534 3-phase Meter with CB and Neutral Current Measurement, Index:(83, 87)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_active_power_import, OBIS:[1, 0, 1, 7, 0, 255], Index:(91, 97), Type:6 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 6: 6942, Index:(98, 102)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_active_power_export, OBIS:[1, 0, 2, 7, 0, 255], Index:(112, 118), Type:6 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 6: 0, Index:(119, 123)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_reactive_power_import, OBIS:[1, 0, 3, 7, 0, 255], Index:(133, 139), Type:6 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 6: 0, Index:(140, 144)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_reactive_power_export, OBIS:[1, 0, 4, 7, 0, 255], Index:(154, 160), Type:6 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 6: 630, Index:(161, 165)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_current_l1, OBIS:[1, 0, 31, 7, 0, 255], Index:(175, 181), Type:16 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 19.3, Index:(182, 184)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_current_l2, OBIS:[1, 0, 51, 7, 0, 255], Index:(194, 200), Type:16 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 2.3, Index:(201, 203)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_current_l3, OBIS:[1, 0, 71, 7, 0, 255], Index:(213, 219), Type:16 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 8.1, Index:(220, 222)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_voltage_l1, OBIS:[1, 0, 32, 7, 0, 255], Index:(232, 238), Type:18 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 234.3, Index:(239, 241)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_voltage_l2, OBIS:[1, 0, 52, 7, 0, 255], Index:(251, 257), Type:18 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 238.3, Index:(258, 260)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_voltage_l3, OBIS:[1, 0, 72, 7, 0, 255], Index:(270, 276), Type:18 Double OBIS
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 235.6, Index:(277, 279)
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams] Got 10 new devices from the serial
2021-04-03 11:12:10 DEBUG (Thread-5) [custom_components.ams] DUMP {'ams_active_power_import': {'state': 6942, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6534 3-phase Meter with CB and Neutral Current Measurement', 'obis_code': '1.0.1.7.0.255', 'meter_serial': '7359992895913195', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6534 3-phase Meter with CB and Neutral Current Measurement', 'obis_code': '1.0.2.7.0.255', 'meter_serial': '7359992895913195', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6534 3-phase Meter with CB and Neutral Current Measurement', 'obis_code': '1.0.3.7.0.255', 'meter_serial': '7359992895913195', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export': {'state': 630, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6534 3-phase Meter with CB and Neutral Current Measurement', 'obis_code': '1.0.4.7.0.255', 'meter_serial': '7359992895913195', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_current_l1': {'state': 19.3, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6534 3-phase Meter with CB and Neutral Current Measurement', 'obis_code': '1.0.31.7.0.255', 'meter_serial': '7359992895913195', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_current_l2': {'state': 2.3, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6534 3-phase Meter with CB and Neutral Current Measurement', 'obis_code': '1.0.51.7.0.255', 'meter_serial': '7359992895913195', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_current_l3': {'state': 8.1, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6534 3-phase Meter with CB and Neutral Current Measurement', 'obis_code': '1.0.71.7.0.255', 'meter_serial': '7359992895913195', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_voltage_l1': {'state': 234.3, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6534 3-phase Meter with CB and Neutral Current Measurement', 'obis_code': '1.0.32.7.0.255', 'meter_serial': '7359992895913195', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_voltage_l2': {'state': 238.3, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6534 3-phase Meter with CB and Neutral Current Measurement', 'obis_code': '1.0.52.7.0.255', 'meter_serial': '7359992895913195', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_voltage_l3': {'state': 235.6, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6534 3-phase Meter with CB and Neutral Current Measurement', 'obis_code': '1.0.72.7.0.255', 'meter_serial': '7359992895913195', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}}
2021-04-03 11:12:11 DEBUG (Thread-5) [custom_components.ams] data read from port=[126, 160, 42, 65, 8, 131, 19, 4, 19, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 1, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 25, 240, 2, 2, 15, 0, 22, 27, 132, 71, 126]
2021-04-03 11:12:11 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] list_type is 1
2021-04-03 11:12:11 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_active_power_import, OBIS:[1, 0, 1, 7, 0, 255], Index:(24, 30), Type:6 Double OBIS
2021-04-03 11:12:11 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] Value double OBIS type 6: 6640, Index:(31, 35)
2021-04-03 11:12:11 DEBUG (Thread-5) [custom_components.ams.parsers.aidon] ams_active_power_import, OBIS:[1, 0, 1, 7, 0, 255], Index:(24, 30), Type:6 Double OBIS
The memory usage seems to increase over time. I suspect a memory leak
Ill try to fix this, but debugging this was/is rather painfull as the nuc running hassio is located in a really bad place for debugging as it take a really long time. My plan is to take a snapshot with tracemalloc every minute on nuc and just grab everything so i can sit another place and debug it :)
Logger: homeassistant.components.sensor
Source: components/sensor/init.py:497
Integration: Sensor (documentation, issues)
First occurred: 08:43:33 (1 occurrences)
Last logged: 08:43:33
Entity sensor.nordpool_kwh_se3_sek_3_10_0 (<class 'custom_components.nordpool.sensor.NordpoolSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Best regards
Hej
After updating to version 1.9.4 i stopped working. Restart did not solve the problem. Removed and reinstalled hass-ams via hacs with restart between with the same result no entitys is created.
My meter is a swedish Kaifa MA304H4PSE
When i install version 1.9.3 again it works.
From logg file version 1.9.4:
2022-10-15 15:07:52.654 DEBUG (MainThread) [custom_components.ams] config entry = {'serial_port': '/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0', 'meter_manufacturer': 'kaifa_se', 'parity': 'E', 'baudrate': 2400, 'protocol': 'serial'}
2022-10-15 15:07:52.654 DEBUG (MainThread) [custom_components.ams] Connecting to HAN using serialport /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0
2022-10-15 15:07:52.711 DEBUG (MainThread) [custom_components.ams] Finish init of AMS
2022-10-15 15:08:00.750 DEBUG (Thread-2 (connect)) [custom_components.ams.parsers.kaifa] Invalid packet size 287
2022-10-15 15:08:00.751 DEBUG (Thread-2 (connect)) [custom_components.ams] failed package: [126, 161, 29, 1, 0, 1, 16, 176, 174, 230, 231, 0, 15, 64, 0, 0, 0, 0, 2, 36, 9, 6, 1, 0, 0, 2, 129, 255, 9, 7, 75, 70, 77, 95, 48, 48, 49, 9, 6, 0, 0, 96, 1, 0, 255, 9, 16, 55, 51, 52, 48, 49, 53, 55, 48, 51, 48, 53, 52, 56, 51, 48, 48, 9, 6, 0, 0, 96, 1, 7, 255, 9, 7, 77, 65, 51, 48, 52, 72, 52, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 1, 77, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 0, 0, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 120, 9, 6, 1, 0, 31, 7, 0, 255, 6, 0, 0, 2, 143, 9, 6, 1, 0, 51, 7, 0, 255, 6, 0, 0, 2, 12, 9, 6, 1, 0, 71, 7, 0, 255, 6, 0, 0, 2, 114, 9, 6, 1, 0, 32, 7, 0, 255, 6, 0, 0, 9, 49, 9, 6, 1, 0, 52, 7, 0, 255, 6, 0, 0, 9, 64, 9, 6, 1, 0, 72, 7, 0, 255, 6, 0, 0, 9, 51, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 230, 10, 15, 6, 15, 8, 0, 255, 255, 196, 0, 9, 6, 1, 0, 1, 8, 0, 255, 6, 0, 148, 130, 98, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 1, 47, 198, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 19, 107, 43, 145, 61, 126]
2022-10-15 15:08:15.763 DEBUG (Thread-2 (connect)) [custom_components.ams.parsers.kaifa] Invalid packet size 287
2022-10-15 15:08:15.763 DEBUG (Thread-2 (connect)) [custom_components.ams] failed package: [126, 161, 29, 1, 0, 1, 16, 176, 174, 230, 231, 0, 15, 64, 0, 0, 0, 0, 2, 36, 9, 6, 1, 0, 0, 2, 129, 255, 9, 7, 75, 70, 77, 95, 48, 48, 49, 9, 6, 0, 0, 96, 1, 0, 255, 9, 16, 55, 51, 52, 48, 49, 53, 55, 48, 51, 48, 53, 52, 56, 51, 48, 48, 9, 6, 0, 0, 96, 1, 7, 255, 9, 7, 77, 65, 51, 48, 52, 72, 52, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 1, 41, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 0, 0, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 107, 9, 6, 1, 0, 31, 7, 0, 255, 6, 0, 0, 2, 104, 9, 6, 1, 0, 51, 7, 0, 255, 6, 0, 0, 2, 17, 9, 6, 1, 0, 71, 7, 0, 255, 6, 0, 0, 2, 46, 9, 6, 1, 0, 32, 7, 0, 255, 6, 0, 0, 9, 50, 9, 6, 1, 0, 52, 7, 0, 255, 6, 0, 0, 9, 65, 9, 6, 1, 0, 72, 7, 0, 255, 6, 0, 0, 9, 48, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 230, 10, 15, 6, 15, 8, 15, 255, 255, 196, 0, 9, 6, 1, 0, 1, 8, 0, 255, 6, 0, 148, 130, 99, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 1, 47, 198, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 19, 107, 43, 188, 84, 126]
2022-10-15 15:08:28.249 DEBUG (SyncWorker_6) [custom_components.ams] stop_serial_read
2022-10-15 15:08:28.290 DEBUG (Thread-2 (connect)) [custom_components.ams] failed package: None
Best regards
I installed this today but initially it failed because my meter was missing from the METER_TYPE array in const.py
Here is an excerpt from the log: home-assistant.log
After adding 6841128: "Omnipower 3 Phase meter"
(const.py.txt) it worked great (thank you by the way!).
Here is a picture of the meter if you want a better description:
Hello
Would it be possible to integrate it with a Hydrocal M3 heat meter?
Seems to be broken.
The cpu usage is very high (I have a solution for this pr is coming)
Hi!
The ams_current_l2 sensor is not available in my Home Assistant. as seen in the enclosed screenshot in my sensors list. All the other ams sensors, a total of 13, works fine.
My configuration is :
Raspberry Pi 3B
Home assistant 0.117.6
HassOS 4.16
hass-AMS v 1.13
My AMS is Aidon 6525, and the module I'm using is https://www.ebay.com/itm/USB-To-MBUS-Slave-Module-Master-slave-Communication-Debugging-Bus-Monitoring/174403021186?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2648
My configuration.yaml looks like this:
ams:
serial_port: '/dev/ttyUSB0' # Required
parity: 'N' # Optional, defaults to 'N'
meter_manufacturer: 'aidon' # Optional, defaults to 'auto'
Any ideas?
I have tested this on my Kaifa MA105H2E, can confirm this is working, wiki can be updateted.
Hi i installed the ams integrations and now i can se the values from the kamstrup ams hanport, but how do i get them into the new energy dash ?
the only to sensor I can add is : ams_active_energy_export_(serialnumber) and ams_active_energy_import_
her is a list of all sensors your integration finds from the hanport on the kamstrup meter:
ams_active_energy_export_(serialnumber) value = Unknown
ams_active_energy_import_(serialnumber) value = 100,051.49 kWh
ams_active_power_export_(serialnumber) Value = 0 W
ams_active_power_import_(serialnumber) Value = 3,207 W
ams_current_l1_(serialnumber) Value = 13.75 A
ams_reactive_energy_export_(serialnumber) Value = 2,525.68 kVAr
ams_reactive_energy_import_(serialnumber) Value = 8,797.17 kVAr
ams_reactive_power_export_(serialnumber) Value = 490 VAr
ams_reactive_power_import_(serialnumber) Value = 0 VAr
ams_voltage_l1_(serialnumber) Value = 241 V
I'v added all the grafs from the diferent sensors in image under
regards
Eivind
Hi, I got this to work yesterday on my RBpi4B and an "Aidon 6484 SE"-meter. It works great and was simple to install and get working even for me as a dummy! But I think the parsing results in corrupt values when the currents go negative? I have solar panels on my roof and today when the solar panels produce enough power to make us energy producers, the simple gauges I implemented to visualize current (L1, L2, L3) go bananas. On the physical Aidon meter display, I get correct values. What can I do to assist?
Version 1.9 fixed the random data read error, but unfortunately introduced a new problem. If a corrupt message is received, the message is skipped, but the code is not able to sync on successive messages. The debug log shows:
2021-12-28 10:10:09 DEBUG (Thread-3) [custom_components.ams] Not a valid packet. Start over again
2021-12-28 10:11:49 DEBUG (Thread-3) [custom_components.ams] Not a valid packet. Start over again
2021-12-28 10:13:29 DEBUG (Thread-3) [custom_components.ams] Not a valid packet. Start over again
2021-12-28 10:15:09 DEBUG (Thread-3) [custom_components.ams] Not a valid packet. Start over again
The error can easily be reproduced by disconnecting and connecting the HAN cable a few times.
The problem is that the code will try to sync on the next FRAME_FLAG, but this will typically be the frame END flag of the corrupt frame, not the START flag of the next frame (at least on an Aidon meter). The 2nd byte will then be the FRAME_FLAG of the next frame, but the code will interpret it as 1st byte of the frame format field, containing part of the length field. The code will then try to receive a very long message, which will also appear corrupt.
It will thus be necessary to also validate the frame format field contained in the next 2 bytes before starting to receive the message. The message length is the least significant 11 bits (not 12) of the frame format field, according to this document (section 3.3.1):
https://ntnuopen.ntnu.no/ntnu-xmlui/bitstream/handle/11250/2625734/no.ntnu%3ainspera%3a2468545.pdf?sequence=6&isAllowed=y
A reasonable frame-start validation could be to check that the 2nd byte is NOT a FRAME_FLAG and that the decoded message length is within reasonable limits, say 10-1000 bytes.
It would also be good to have more info in the DEBUG message if a frame is skipped, typically printing the actual message.
Hi
I got a swedish Kaifa MA304H4PSE I try to connect to via this MBUS module:
https://www.aliexpress.com/item/32719562958.html?spm=a2g0s.9042311.0.0.dcd44c4dufrCZ2
I got err as follow:
With autodetect I got err in the log:
This error originated from a custom integration.
Logger: custom_components.ams
Source: custom_components/ams/init.py:236
Integration: Norwegian AMS (documentation, issues)
First occurred: 19:13:01 (26 occurrences)
Last logged: 19:19:16
No parser detected
2021-09-20 19:12:49 INFO (MainThread) [homeassistant.setup] Setting up ams
2021-09-20 19:12:49 INFO (MainThread) [custom_components.ams] No YAML config available, using config_entries
2021-09-20 19:12:49 INFO (MainThread) [homeassistant.setup] Setup of domain ams took 0.0 seconds
2021-09-20 19:12:49 INFO (Thread-9) [custom_components.ams] Autodetecting meter manufacturer
2021-09-20 19:12:49 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.ams
2021-09-20 19:13:01 WARNING (Thread-9) [custom_components.ams] No parser detected
2021-09-20 19:13:01 INFO (Thread-9) [custom_components.ams] Autodetecting meter manufacturer
2021-09-20 19:13:16 WARNING (Thread-9) [custom_components.ams] No parser detected
2021-09-20 19:13:16 INFO (Thread-9) [custom_components.ams] Autodetecting meter manufacturer
And when I manual choose Kaifa I got this err in the log:
This error originated from a custom integration.
Logger: custom_components.ams
Source: custom_components/ams/init.py:236
Integration: Norwegian AMS (documentation, issues)
First occurred: 19:13:01 (49 occurrences)
Last logged: 19:25:01
No parser detected
This error originated from a custom integration.
Logger: root
Source: custom_components/ams/init.py:215
Integration: Norwegian AMS (documentation, issues)
First occurred: 19:25:03 (1 occurrences)
Last logged: 19:25:03
Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/config/custom_components/ams/init.py", line 183, in connect
self.meter_manufacturer = self._find_parser(pkg)
File "/config/custom_components/ams/init.py", line 220, in _find_parser
if _test_meter(pkg, AIDON_METER_SEQ):
File "/config/custom_components/ams/init.py", line 215, in _test_meter
for i in range(len(pkg)):
TypeError: object of type 'NoneType' has no len()
Is it possible to get it to work with hass-AMS?
Best regards
Rune
Thanks for making such a cool and useful piece of software.
I have a Kaifa MA304H4 meter in my house (400V TN). I’m able read the data and everything looks ok, except that most of the readouts are incorrect.
Active Power Input is the only readout I am been able to verify to be correct.
Active Power Export and Active Energy Export might be correct enough. Zero in the meter display.
I’m not able to read off Reactive Power and Reactive Energy in my meter display.
The other readouts are incorrect.
I have added a log file and a screenshot of my AMS Energy Meter. I hope it is sufficient for you to figure out what is needed to correct the issue.
Working on #24 I saw some failed package in the log.
2020-04-09 12:25:01 DEBUG (Thread-2) [custom_components.ams] failed package: [126, 160, 226, 43, 33, 19, 35, 154, 230, 231, 0, 15, 0, 0, 0, 0, 12, 7, 228, 4, 9, 4, 11, 25, 0, 255, 128, 0, 0, 2, 25, 10, 14, 75, 97, 109, 115, 116, 114, 117, 112, 95, 86, 48, 48, 48, 49, 9, 6, 1, 1, 0, 0, 5, 255, 10, 16, 53, 55, 48, 54, 53, 54, 55, 50, 55, 55, 49, 51, 57, 56, 49, 54, 9, 6, 1, 1, 96, 1, 1, 255, 10, 18, 54, 56, 52, 49, 49, 50, 49, 66, 78, 50, 52, 51, 49, 48, 49, 48, 52, 48, 9, 6, 1, 1, 1, 7, 0, 255, 6, 0, 0, 8, 122, 9, 6, 1, 1, 2, 7, 0, 255, 6, 0, 0, 0, 0, 9, 6, 1, 1, 3, 7, 0, 255, 6, 0, 0, 0, 0, 9, 6, 1, 1, 4, 7, 0, 255, 6, 0, 0, 0, 126]
2020-04-09 12:25:02 DEBUG (Thread-2) [custom_components.ams] failed package: [9, 6, 1, 1, 31, 7, 0, 255, 6, 0, 0, 1, 162, 9, 6, 1, 1, 51, 7, 0, 255, 6, 0, 0, 2, 76, 9, 6, 1, 1, 71, 7, 0, 255, 6, 0, 0, 2, 164, 9, 6, 1, 1, 32, 7, 0, 255, 18, 0, 230, 9, 6, 1, 1, 52, 7, 0, 255, 18, 0, 229, 9, 6, 1, 1, 72, 7, 0, 255, 18, 0, 230, 128, 20, 126]
Any idea what this might be?
Hello,
suddenly my reader stopped working and I dont know exactly why.
I managed to get it working after some help here:
https://community.home-assistant.io/t/norwegian-han-sensors/147283/53
But after switching off my RBP3+ to change power supply, it sopped updating counters.
My config is like this:
serial_port: '/dev/ttyUSB0' # Required. The serial port used to communicate through
baudrate: 2400 # Optional, defaults to '2400'
parity: 'N' # Optional, defaults to 'N'
meter_manufacturer: 'aidon_se' # Optional, defaults to 'auto'
I have an aidon 6534.
After enabling loging I see thins kind of errors:
2022-03-07 22:07:01 DEBUG (Thread-3) [custom_components.ams] Timeout waiting for end of packet. Flush current packet. byte_counter=149, frame_started=True, package_size=581, DUMP: [126, 162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 230, 3, 7, 1, 22, 7, 0, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 3, 231, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 1, 192, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 29, 2, 2, 15, 255, 22, 33, 2, 255]
2022-03-07 22:07:11 DEBUG (Thread-3) [custom_components.ams] Timeout waiting for end of packet. Flush current packet. byte_counter=149, frame_started=True, package_size=581, DUMP: [126, 162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 230, 3, 7, 1, 22, 7, 10, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 3, 230, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 1, 181, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 29, 2, 2, 15, 255, 22, 33, 210, 252]
2022-03-07 22:07:21 DEBUG (Thread-3) [custom_components.ams] Timeout waiting for end of packet. Flush current packet. byte_counter=152, frame_started=True, package_size=581, DUMP: [126, 162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 230, 3, 7, 1, 22, 7, 20, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 3, 173, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 0, 183, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 29, 2, 2, 15, 255, 22, 33, 2, 131, 9, 222, 255]
Any idea what the problem could be?
Thanks
I'm struggling with what looks like a parsing error. ams_active_power_import
is jumping from the actual value of around 1 kW to a fixed value of 100M.
Other measurements look ok, although I haven't checked the history of all of them.
This started yesterday when I upgraded to 1.9.7, but stayed when I tried downgrading to 1.9.6.
I'm quite capable of gathering debug data and testing changes, but wanted to check with the dev(s) first if you have any pointers.
Meter:
Kaifa MA304H3E (Norwegian)
I got a ESP32 set up with StreamServer to expose the data from the UART connection to the powermeter over my network.
But unfortunately this hass-AMS only supports local ports..
That's a "easy fix" tho, just swap serial.Serial()
with serial.serial_for_url()
serial_for_url
has supports for it all.
The part where I got stuck was with the home assistant scheme UI setup stuff..
Another thing I've noticed, since this is over the network, the connection might drop out.
Haven't thought about how to do reconnections in the code, I solved it with a node-red flow that reloaded the component when no data was received for x amount of seconds.
I'll be happy to help out with this more.
Refs:
https://pyserial.readthedocs.io/en/latest/pyserial_api.html#serial.serial_for_url
https://pyserial.readthedocs.io/en/latest/url_handlers.html#urls
First of thank you so much for your work on this integration.
I am for the past couple of weeks trying to get this to work but I am out of options now and hope you can point me to what I am doing wrong.
I have a Aidon 6515 Installed.
Got the MBUS module you are using.
HAN-port is open.
Log can be found here:
AMS_error_1.txt
Setup with meter_manufacturer: 'auto' reports [custom_components.ams] No parser detected
Setup with meter_manufacturer: 'auto' and parity: 'N' reports Invalid header CRC check - Uncaught exception - IndexError: list index out of range
Same result with other parity options except it doesn't report the Invalid header CRC check.
Please let me know if I can do anything else to get this sorted out.
I know this is really the wrong place but I'm curious if I'm the only one getting the messages below. I've searched and I can't find anyone else reporting this. Had to lookup kVAr, never heard about that before (neither reactive energy).
WARNING (Recorder) [homeassistant.components.sensor.recorder] sensor.ams_reactive_energy_export_57**42 has unknown unit kVAr
WARNING (Recorder) [homeassistant.components.sensor.recorder] sensor.ams_reactive_energy_import_57**42 has unknown unit kVAr
I'm having the problem that all my sensors become unavailable after restart.
2021-03-25 09:30:34 DEBUG (MainThread) [custom_components.ams] Connecting to HAN using port /dev/ttyUSB0
2021-03-25 09:30:40 DEBUG (MainThread) [custom_components.ams] Finish init of AMS
2021-03-25 09:30:40 DEBUG (Thread-4) [custom_components.ams.parsers.aidon_se] Invalid packet size 41
2021-03-25 09:30:40 DEBUG (Thread-4) [custom_components.ams] failed package: [1, 0, 3, 8, 0, 255, 6, 0, 118, 108, 51, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 33, 79, 55, 2, 2, 15, 0, 22, 32, 142, 124, 126]
If i remove the integration and the folder in custom_components, reboot and reinstall everything works fina again. Until the next restart...
AMS version 1.4.0
Not an issue, but a suggestion:
I've modified my Tibber Pulse to send data to my MQTT-server (explained here: https://github.com/iotux/ElWiz#oppsett-av-pulse ). Unfortunately that project doesn't support my Kamstrup Omnipower 1 Phase Direct meter.
However; with my limited Python skills I've been unable to modify hass-AMS to use the binary data from the MQTT server instead of reading from serial.
So; any plans on adding alternative input methods your component?
I vote for MQTT-support, but could be anything that delivers binary data! :-)
My meter is an Aidon 6484SE. Any chans the code could be supplemented to support the Swedish HAN-port data profile? The Swedish HAN-protocol is sending 1 list every 10 s (same list every time).
(page 15)
aidonfd-rj45-han-interface-se-v14a-1.pdf
Running Home Assistant 0.107.7 on VM,with Aidon 6525 meter and have this USB dongel https://www.aliexpress.com/item/32719562958.html
After first install the intergration works perfect, but after restart there are no sensors showing. Need to remove the intergration, take a new restart, and add the intergration again.
This is how the intergration looks after restart:
It looks like the sensors are there when I open the intergration:
But no sensors in lovelace UI:
Have set the logs to debug and after restart it looks like the data is recived, but its not working. Can send you the logs if you want.
i think this is slightly better swedish imho (not perfect but a step in the right direction) some spelling and wording changes...
{
"config": {
"abort": {
"single_instance_allowed": "Endast en instans av AMS läsaren är tillåten"
},
"title": "AMS Reader",
"step": {
"user": {
"title": "AMS läsare",
"description": "Installera sensor för AMS läsare",
"data": {
"serial_port": "Serieport",
"parity": "Paritet",
"meter_manufacturer": "Mätartillverkare",
"baudrate": "Baudrate"
}
}
},
"error": {
"name_exists": "Namn finns"
}
}
}
I am trying to add the integration and get this message. What should i do or not do? :)
I have chose Serialport, kamstrup, parity E and baud 2400
Hi - and what an awesome plugin.
This module is referered as working
[(https://www.aliexpress.com/item/32834331647.html?spm=a2g0o.detail.1000060.1.74cfdcd4qts4jp)]
But for the yaml config - USB seems to be the only way?
ams:
serial_port: '/dev/ttyUSB0' # Required
And the aliexpress module has no USB - so how to do that in the yaml?
I have one of the supported Kamstrup and have ordered the IR eye reader, so it would be great to know the idea of the non USB module?
I live in Sweden and I have a Aidon 6534 (6483SE) not sure if its the exact same one that is verified working in Norway, but i planned to at least give it a try, but I need a M-BUS to TTL adapter.
This is the one that I want, its marked working in the readme
https://www.aliexpress.com/item/32751482255.html?spm=a2g0o.placeorder.0.0.62e7321eoZeErv&mp=1
But my question is, does anyone know a place in the Nordic or at least Europe that sell this module, I do not want to wait over a month to receive it from Asia :)
Or maybe someone have a spare one that I could buy?
Thanks.
I have opened the HAN-port on my meter (KAIFA) but do not get any data into Home Assistant. Would think it needs to be rewritten in order to make this work since there is a difference in the data from Kamstrup and Kaifa.
I've logged some data from the meter. This is list 1 (comes every 2 sec) and list 2 (comes every 10 sec). list 3 comes every hour, so I'll try to get it logged as well.
List 2
7e a0 79 01 02 01 10 80 93 e6 e7 00 0f 40 00 00
00 09 0c 07 e4 02 03 01 0f 1b 0a ff 80 00 00 02
0d 09 07 4b 46 4d 5f 30 30 31 09 10 36 39 37 30
36 33 31 34 30 35 38 30 38 34 36 39 09 08 4d 41
33 30 34 48 33 45 06 00 00 00 37 06 00 00 00 00
06 00 00 00 00 06 00 00 01 17 06 00 00 01 f3 06
00 00 03 61 06 00 00 03 84 06 00 00 09 29 06 00
00 00 00 06 00 00 09 23 d1 f7 7e
List1
7e a0 27 01 02
01 10 5a 87 e6 e7 00 0f 40 00 00 00 09 0c 07 e4
02 03 01 0f 1b 0c ff 80 00 00 02 01 06 00 00 00
37 a2 2e 7e
List 1
7e a0 27 01 02 01 10 5a 87 e6 e7 00
0f 40 00 00 00 09 0c 07 e4 02 03 01 0f 1b 0e ff
80 00 00 02 01 06 00 00 00 37 19 2c 7e
List 1
7e a0 27
01 02 01 10 5a 87 e6 e7 00 0f 40 00 00 00 09 0c
07 e4 02 03 01 0f 1b 10 ff 80 00 00 02 01 06 00
00 00 38 17 cc 7e
List 1
7e a0 27 01 02 01 10 5a 87 e6
e7 00 0f 40 00 00 00 09 0c 07 e4 02 03 01 0f 1b
12 ff 80 00 00 02 01 06 00 00 00 37 5b 36 7e
List 2
7e
a0 79 01 02 01 10 80 93 e6 e7 00 0f 40 00 00 00
09 0c 07 e4 02 03 01 0f 1b 14 ff 80 00 00 02 0d
09 07 4b 46 4d 5f 30 30 31 09 10 36 39 37 30 36
33 31 34 30 35 38 30 38 34 36 39 09 08 4d 41 33
30 34 48 33 45 06 00 00 00 36 06 00 00 00 00 06
00 00 00 00 06 00 00 01 18 06 00 00 01 ef 06 00
00 03 62 06 00 00 03 85 06 00 00 09 30 06 00 00
00 00 06 00 00 09 25 cf a2 7e
I have 3 elstar f2 meters and 1 kamstrup mltical 302
i used it before whit a raspberry pi and domotics
is it posible to get this working in homassist?
Hi
I have just installed your nice little software, but on my kaifa 3 phase meter it say 0 volts on ams_voltage_l2, is this something in you module or is it something wrong in my meter?
im using this mbus module:
https://www.aliexpress.com/item/32719562958.html?spm=a2g0s.9042311.0.0.c8314c4dpbv1pv
ams_active_power_import is missing.
See image below from Device page in HASS.
Log files with debug activeted are attached for both v1.7.2 an v1.8.0.
_2 log capture the full hour with the list 3 message.
logger:
default: warning
logs:
custom_components.ams: debug
home-assistant.v180.log
home-assistant.v180_2.log
home-assistant.v172.log
This custom integration uses deprecated DEVICE_CLASS_*
constants in its codebase.
The DEVICE_CLASS_*
constants have been deprecated and replaced in Home Assistant Core 2021.12 (over a year ago). I would highly suggest updating/migrating this integration to the new enums.
For example, for the device classes supported by the sensor
platform, there is now a SensorDeviceClass
enum. So if a sensor previously used the DEVICE_CLASS_ENERGY
constant, it should now use SensorDeviceClass.ENERGY
. Other platforms (like binary_sensor
, and number
) provide similar enumerations for their supported device classes.
The migration thus only consists of replacing constants with an enumeration member and is, therefore, very low impact and should be fairly straightforward.
If I can help resolve any questions regarding this change or migration, feel free to ask or respond to this issue. I'm happy to help!
Kindest regards,
../Frenck
I installed the component from HACS.
No problem installing but i cant find any new device or entities in HA after configuring it.
My configuration is :
Virtual machine in proxmox
Core Version core-2021.2.2
Supervisor Version supervisor-2021.02.6
Operating System Home Assistant OS 5.11
hass-AMS v 1.13
serial_port: '/dev/ttyUSB0'
parity: 'N'
meter_manufacturer: 'auto' or 'aidon'
I'm using : https://www.aliexpress.com/item/32719562958.html?spm=a2g0s.9042311.0.0.c8314c4dpbv1pv
And the meter is a: Aidon 6484SE
Know that HA now have upgraded to Python 3.9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.