turbokongen / hass-AMS

Custom component reading AMS through MBus adapter into HomeAssistant
42 stars 10 forks source link

sensors not generated Homa Assistant 2024.3 #99

Closed ahattest closed 4 months ago

ahattest commented 4 months ago

Afer upgrading to 2024.3 beta I also had to update hass-AMS from v1.9.2 Which broke the old config. Deleted the integration and installed 1.9.8

I get the following output in the log:

2024-02-29 23:06:40.435 DEBUG (Thread-107 (connect)) [custom_components.ams] Testing for [65, 73, 68, 79, 78, 95] 2024-02-29 23:06:40.435 INFO (Thread-107 (connect)) [custom_components.ams] Detected Aidon meter 2024-02-29 23:06:40.437 DEBUG (Thread-107 (connect)) [custom_components.ams] data read from port=[126, 161, 11, 65, 8, 131, 19, 250, 124, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 12, 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, 57, 48, 55, 56, 52, 49, 48, 52, 49, 2, 2, 9, 6, 0, 0, 96, 1, 7, 255, 10, 4, 54, 53, 50, 53, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 20, 95, 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, 4, 35, 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, 50, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 229, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 92, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 77, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 48, 2, 2, 15, 255, 22, 35, 89, 61, 126] 2024-02-29 23:06:40.438 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] list_type is 12 2024-02-29 23:06:40.438 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] obis_list_version, OBIS:[1, 1, 0, 2, 129, 255], Index:(24, 30), Type:10 Single OBIS 2024-02-29 23:06:40.438 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value Single OBIS type 10: AIDON_V0001, Index:(32, 43) 2024-02-29 23:06:40.439 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] meter_serial, OBIS:[0, 0, 96, 1, 0, 255], Index:(47, 53), Type:10 Double OBIS 2024-02-29 23:06:40.439 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 10: 7359992907841041, Index:(55, 71) 2024-02-29 23:06:40.440 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] meter_type, OBIS:[0, 0, 96, 1, 7, 255], Index:(75, 81), Type:10 Double OBIS 2024-02-29 23:06:40.441 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 10: 6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement, Index:(83, 87) 2024-02-29 23:06:40.443 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] ams_active_power_import, OBIS:[1, 0, 1, 7, 0, 255], Index:(91, 97), Type:6 Double OBIS 2024-02-29 23:06:40.443 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 6: 5215, Index:(98, 102) 2024-02-29 23:06:40.444 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] ams_active_power_export, OBIS:[1, 0, 2, 7, 0, 255], Index:(112, 118), Type:6 Double OBIS 2024-02-29 23:06:40.445 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 6: 0, Index:(119, 123) 2024-02-29 23:06:40.446 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] ams_reactive_power_import, OBIS:[1, 0, 3, 7, 0, 255], Index:(133, 139), Type:6 Double OBIS 2024-02-29 23:06:40.446 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 6: 1059, Index:(140, 144) 2024-02-29 23:06:40.447 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] ams_reactive_power_export, OBIS:[1, 0, 4, 7, 0, 255], Index:(154, 160), Type:6 Double OBIS 2024-02-29 23:06:40.447 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 6: 0, Index:(161, 165) 2024-02-29 23:06:40.452 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] ams_current_l1, OBIS:[1, 0, 31, 7, 0, 255], Index:(175, 181), Type:16 Double OBIS 2024-02-29 23:06:40.453 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 5.0, Index:(182, 184) 2024-02-29 23:06:40.454 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] ams_current_l3, OBIS:[1, 0, 71, 7, 0, 255], Index:(194, 200), Type:16 Double OBIS 2024-02-29 23:06:40.455 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 22.9, Index:(201, 203) 2024-02-29 23:06:40.456 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] ams_voltage_l1, OBIS:[1, 0, 32, 7, 0, 255], Index:(213, 219), Type:18 Double OBIS 2024-02-29 23:06:40.456 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 239.6, Index:(220, 222) 2024-02-29 23:06:40.462 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] ams_voltage_l2, OBIS:[1, 0, 52, 7, 0, 255], Index:(232, 238), Type:18 Double OBIS 2024-02-29 23:06:40.462 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 238.1, Index:(239, 241) 2024-02-29 23:06:40.464 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] ams_voltage_l3, OBIS:[1, 0, 72, 7, 0, 255], Index:(251, 257), Type:18 Double OBIS 2024-02-29 23:06:40.464 DEBUG (Thread-107 (connect)) [custom_components.ams.parsers.aidon] Value double OBIS type 16/18: 235.2, Index:(258, 260) 2024-02-29 23:06:40.469 DEBUG (Thread-107 (connect)) [custom_components.ams] miss_attrs=[] 2024-02-29 23:06:40.469 DEBUG (Thread-107 (connect)) [custom_components.ams] Got 9 new devices from the serial 2024-02-29 23:06:40.469 DEBUG (Thread-107 (connect)) [custom_components.ams] DUMP {'ams_active_power_import': {'state': 5215, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.1.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.2.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import': {'state': 1059, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.3.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.4.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_current_l1': {'state': 5.0, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.31.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_current_l3': {'state': 22.9, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.71.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_voltage_l1': {'state': 239.6, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.32.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_voltage_l2': {'state': 238.1, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.52.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_voltage_l3': {'state': 235.2, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.72.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}} 2024-02-29 23:06:40.470 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Updating sensor ams_active_power_import 2024-02-29 23:06:40.470 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_active_power_import DUMP sensor_states {'name': 'ams_active_power_import', 'state': 5215, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.1.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}} 2024-02-29 23:06:40.471 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Updating sensor ams_active_power_export 2024-02-29 23:06:40.471 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_active_power_export DUMP sensor_states {'name': 'ams_active_power_export', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.2.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}} 2024-02-29 23:06:40.471 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import 2024-02-29 23:06:40.471 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_reactive_power_import DUMP sensor_states {'name': 'ams_reactive_power_import', 'state': 1059, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.3.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}} 2024-02-29 23:06:40.471 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export 2024-02-29 23:06:40.472 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_reactive_power_export DUMP sensor_states {'name': 'ams_reactive_power_export', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.4.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}} 2024-02-29 23:06:40.472 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Updating sensor ams_current_l1 2024-02-29 23:06:40.472 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_current_l1 DUMP sensor_states {'name': 'ams_current_l1', 'state': 5.0, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.31.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}} 2024-02-29 23:06:40.472 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Updating sensor ams_current_l3 2024-02-29 23:06:40.472 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_current_l3 DUMP sensor_states {'name': 'ams_current_l3', 'state': 22.9, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.71.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}} 2024-02-29 23:06:40.473 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Updating sensor ams_voltage_l1 2024-02-29 23:06:40.473 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_voltage_l1 DUMP sensor_states {'name': 'ams_voltage_l1', 'state': 239.6, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.32.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}} 2024-02-29 23:06:40.473 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Updating sensor ams_voltage_l2 2024-02-29 23:06:40.477 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_voltage_l2 DUMP sensor_states {'name': 'ams_voltage_l2', 'state': 238.1, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.52.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}} 2024-02-29 23:06:40.477 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Updating sensor ams_voltage_l3 2024-02-29 23:06:40.478 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_voltage_l3 DUMP sensor_states {'name': 'ams_voltage_l3', 'state': 235.2, 'attributes': {'meter_manufacturer': 'AIDON_V0001', 'meter_type': '6525 3-phase Meter 3 Wire with CB and Earth Fault Current Measurement', 'obis_code': '1.0.72.7.0.255', 'meter_serial': '7359992907841041', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}} 2024-02-29 23:06:40.478 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Hourly sensor ams_active_energy_import added so we can attempt to restore state 2024-02-29 23:06:40.478 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_active_energy_import DUMP sensor_states {'name': 'ams_active_energy_import', 'state': None, 'attributes': {'state_class': 'total_increasing', 'device_class': 'energy'}} 2024-02-29 23:06:40.478 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Hourly sensor ams_active_energy_export added so we can attempt to restore state 2024-02-29 23:06:40.478 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_active_energy_export DUMP sensor_states {'name': 'ams_active_energy_export', 'state': None, 'attributes': {'state_class': 'total_increasing', 'device_class': 'energy'}} 2024-02-29 23:06:40.479 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Hourly sensor ams_reactive_energy_import added so we can attempt to restore state 2024-02-29 23:06:40.479 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_reactive_energy_import DUMP sensor_states {'name': 'ams_reactive_energy_import', 'state': None, 'attributes': None} 2024-02-29 23:06:40.479 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Hourly sensor ams_reactive_energy_export added so we can attempt to restore state 2024-02-29 23:06:40.479 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Init ams_reactive_energy_export DUMP sensor_states {'name': 'ams_reactive_energy_export', 'state': None, 'attributes': None} 2024-02-29 23:06:40.479 DEBUG (Thread-107 (connect)) [custom_components.ams.sensor] Trying to add 13 sensors: [, , , , , , , , , , , , ]

ahattest commented 4 months ago

Same problem as #100