cyberjunky / home-assistant-toon_smartmeter

This component reads and displays sensor values from the meteradapter connected to a rooted Toon thermostat.
MIT License
26 stars 13 forks source link

After update all values are unknown #82

Closed JackKlaasing closed 8 months ago

JackKlaasing commented 9 months ago

After update all my values were duplicated by "*_2" but I got it fixed. But after a day or two now all values are unknown and won't update anymore.

Toon Climate works good Toon Smartmeter doesn't.

Setup:

`# Example groups.yaml entry

Smart Meter:

configuration.yaml `sensor:

logger: default: info logs: custom_components.toon_smartmeter: debug`

cyberjunky commented 9 months ago

I guess there is an issue with access to your toon, check logs. Maybe ip address changed?

JackKlaasing commented 9 months ago

IP address is not changed and is still working on climate control. Log:

2024-01-29 12:57:00.649 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Data received from Toon: {'dev_settings_device': {'uuid': 'ba026238-628c-45c2-a676-e31be38d91ea', 'name': 'settings_device', 'internalAddress': 'settings_device', 'type': 'settings_device'}, 'dev_2': {'uuid': '42a91364-bdd6-4893-a3b5-c43fc80fa8d1', 'name': 'HAE_METER_v3', 'internalAddress': '2', 'type': 'HAE_METER_v3', 'supportsCrc': '1', 'ccList': '5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e', 'supportedCC': '5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e', 'nodeFlags': [], 'IsConnected': '1', 'HealthValue': '-1', 'DeviceName': 'HAE_METER_v3', 'CurrentSensorStatus': 'UNKNOWN'}, 'dev_2.1': {'uuid': 'f1a260b0-392b-4b68-9443-30a27cbc25b8', 'name': 'HAE_METER_v3_1', 'internalAddress': '2.1', 'type': 'HAE_METER_v3_1', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentSensorStatus': 'UNKNOWN', 'CurrentGasFlow': 'NaN', 'CurrentGasQuantity': 'NaN', 'DeviceName': 'HAE_METER_v3_1'}, 'dev_2.2': {'uuid': '9bda5108-166f-43aa-a946-6cd55c10e108', 'name': 'HAE_METER_v3_2', 'internalAddress': '2.2', 'type': 'HAE_METER_v3_2', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentSensorStatus': 'UNKNOWN', 'DeviceName': 'HAE_METER_v3_2', 'CurrentElectricityFlow': 'NaN', 'CurrentElectricityQuantity': 'NaN'}, 'dev_2.3': {'uuid': 'c3d40272-c4bd-4245-bf98-f09c3fb814c0', 'name': 'HAE_METER_v3_3', 'internalAddress': '2.3', 'type': 'HAE_METER_v3_3', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentSensorStatus': 'UNKNOWN', 'DeviceName': 'HAE_METER_v3_3', 'CurrentElectricityFlow': 'NaN', 'CurrentElectricityQuantity': 'NaN'}, 'dev_2.4': {'uuid': '182b2abd-1c35-45ae-9197-8e3f4f6336bb', 'name': 'HAE_METER_v3_4', 'internalAddress': '2.4', 'type': 'HAE_METER_v3_4', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentSensorStatus': 'UNKNOWN', 'DeviceName': 'HAE_METER_v3_4', 'CurrentElectricityFlow': 'NaN', 'CurrentElectricityQuantity': 'NaN'}, 'dev_2.5': {'uuid': '5bd40b6f-a2ac-4024-94ae-dbc0f54a9a1b', 'name': 'HAE_METER_v3_5', 'internalAddress': '2.5', 'type': 'HAE_METER_v3_5', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentSensorStatus': 'UNKNOWN', 'DeviceName': 'HAE_METER_v3_5', 'CurrentElectricityFlow': 'NaN', 'CurrentElectricityQuantity': 'NaN'}, 'dev_2.6': {'uuid': '61918a01-223b-4b11-ba9b-efe1bd781cd1', 'name': 'HAE_METER_v3_6', 'internalAddress': '2.6', 'type': 'HAE_METER_v3_6', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentSensorStatus': 'UNKNOWN', 'DeviceName': 'HAE_METER_v3_6', 'CurrentElectricityFlow': 'NaN', 'CurrentElectricityQuantity': 'NaN'}, 'dev_2.7': {'uuid': '65cc4a8b-aad1-49c4-90d2-556469e9b276', 'name': 'HAE_METER_v3_7', 'internalAddress': '2.7', 'type': 'HAE_METER_v3_7', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentSensorStatus': 'UNKNOWN', 'DeviceName': 'HAE_METER_v3_7', 'CurrentElectricityFlow': 'NaN', 'CurrentElectricityQuantity': 'NaN'}, 'dev_2.8': {'uuid': '61463306-e828-484b-84fe-c712c4c751b3', 'name': 'HAE_METER_v3_8', 'internalAddress': '2.8', 'type': 'HAE_METER_v3_8', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentSensorStatus': 'UNKNOWN', 'DeviceName': 'HAE_METER_v3_8', 'CurrentHeatQuantity': 'NaN', 'CurrentHeatFlow': 'NaN'}} 2024-01-29 12:57:00.754 INFO (MainThread) [homeassistant.setup] Setting up raspberry_pi 2024-01-29 12:57:00.754 INFO (MainThread) [homeassistant.setup] Setup of domain raspberry_pi took 0.0 seconds 2024-01-29 12:57:00.755 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.755 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: gasused State: None PowerPlug: 2024-01-29 12:57:00.757 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.757 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: gasusedcnt State: None PowerPlug: 2024-01-29 12:57:00.759 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.760 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusageflowpulse State: None PowerPlug: 2024-01-29 12:57:00.762 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.763 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusageflowlow State: None PowerPlug: 2024-01-29 12:57:00.764 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.764 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusageflowhigh State: None PowerPlug: 2024-01-29 12:57:00.766 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.766 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecprodflowlow State: None PowerPlug: 2024-01-29 12:57:00.768 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.768 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecprodflowhigh State: None PowerPlug: 2024-01-29 12:57:00.771 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.772 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusagecntpulse State: None PowerPlug: 2024-01-29 12:57:00.773 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.774 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusagecntlow State: None PowerPlug: 2024-01-29 12:57:00.775 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.775 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusagecnthigh State: None PowerPlug: 2024-01-29 12:57:00.777 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.777 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecprodcntlow State: None PowerPlug: 2024-01-29 12:57:00.779 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.779 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecprodcnthigh State: None PowerPlug: 2024-01-29 12:57:00.782 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.782 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecsolar State: None PowerPlug: 2024-01-29 12:57:00.784 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.784 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecsolarcnt State: None PowerPlug: 2024-01-29 12:57:00.786 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.786 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: heat State: None PowerPlug: 2024-01-29 12:57:00.788 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.788 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: waterquantity State: None PowerPlug: 2024-01-29 12:57:00.789 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Discovered: '{}' 2024-01-29 12:57:00.790 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: waterflow State: None PowerPlug:

2024-01-29 12:57:19.726 ERROR (MainThread) [custom_components.toon_smartmeter.sensor] Timeout error occurred while connecting to Toon using url 'http://192.168.178.79:80/hdrv_zwave?action=getDevices.json' 2024-01-29 12:57:19.727 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: gasused State: None PowerPlug:

2024-01-30 00:26:38.826 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: gasused State: None PowerPlug: 2024-01-30 00:26:48.813 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: gasusedcnt State: None PowerPlug: 2024-01-30 00:26:48.814 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusageflowpulse State: None PowerPlug: 2024-01-30 00:26:48.815 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusageflowlow State: None PowerPlug: 2024-01-30 00:26:48.815 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusageflowhigh State: None PowerPlug: 2024-01-30 00:26:48.816 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecprodflowlow State: None PowerPlug: 2024-01-30 00:26:48.817 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecprodflowhigh State: None PowerPlug: 2024-01-30 00:26:48.817 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusagecntpulse State: None PowerPlug: 2024-01-30 00:26:48.818 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusagecntlow State: None PowerPlug: 2024-01-30 00:26:48.820 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecusagecnthigh State: None PowerPlug: 2024-01-30 00:26:48.821 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecprodcntlow State: None PowerPlug: 2024-01-30 00:26:48.822 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecprodcnthigh State: None PowerPlug: 2024-01-30 00:26:48.823 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecsolar State: None PowerPlug: 2024-01-30 00:26:48.823 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: elecsolarcnt State: None PowerPlug: 2024-01-30 00:26:48.824 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: heat State: None PowerPlug: 2024-01-30 00:26:48.824 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: waterquantity State: None PowerPlug: 2024-01-30 00:26:48.825 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Device: waterflow State: None PowerPlug:

``

cyberjunky commented 9 months ago

Thanks, the JSON doesn't seem to contain energy usage data, could it be that the Toon lost connection with the smartmeter module? Does the Toon shows the realtime smartmeter data still?

JackKlaasing commented 9 months ago

Yes that is still working correctly.

JackKlaasing commented 9 months ago

I use a P1 splitter at the moment but it always worked together. I could try to only use 1.

cyberjunky commented 9 months ago

Until there is data in the JSON the integration will not work, so cause is outside home-assistant.

MagieMalone commented 8 months ago

I have the same issue. the data IS on the toon, I can access the internal graphs there, but not pulled by the integration. Also not on the JSON:

2024-02-09 19:02:34.457 DEBUG (MainThread) [custom_components.toon_smartmeter.sensor] Data received from Toon: {'dev_2': {'uuid': '88322d9f-0763-4714-8e63-7ffb1c87088d', 'name': 'HAE_METER_v3', 'internalAddress': '2', 'type': 'HAE_METER_v3', 'supportsCrc': '1', 'ccList': '5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e', 'supportedCC': '5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e', 'nodeFlags': [], 'IsConnected': '1', 'DeviceName': 'HAE_METER_v3', 'HealthValue': '10', 'CurrentSensorStatus': 'UNKNOWN'}, 'dev_2.1': {'uuid': '11097cc6-c5f1-43ed-8a9a-c29a81aa2007', 'name': 'HAE_METER_v3_1', 'internalAddress': '2.1', 'type': 'gas', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentGasFlow': '40.00', 'CurrentGasQuantity': '5246560.00', 'DeviceName': 'HAE_METER_v3_1', 'CurrentSensorStatus': 'OPERATIONAL'}, 'dev_2.2': {'uuid': '07aeef14-616b-4470-b009-430c59ba0b9a', 'name': 'HAE_METER_v3_2', 'internalAddress': '2.2', 'type': 'elec', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentElectricityFlow': 'NaN', 'CurrentElectricityQuantity': 'NaN', 'DeviceName': 'HAE_METER_v3_2', 'CurrentSensorStatus': 'UNKNOWN'}, 'dev_2.3': {'uuid': '7da5a6f7-693e-4287-a229-1bbf416ccd39', 'name': 'HAE_METER_v3_3', 'internalAddress': '2.3', 'type': 'elec_solar', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentElectricityFlow': 'NaN', 'CurrentElectricityQuantity': 'NaN', 'DeviceName': 'HAE_METER_v3_3', 'CurrentSensorStatus': 'UNKNOWN'}, 'dev_2.4': {'uuid': 'c0c7a380-26b2-484e-b566-66c952aa498c', 'name': 'HAE_METER_v3_4', 'internalAddress': '2.4', 'type': 'elec_delivered_nt', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentElectricityFlow': '1438.00', 'CurrentElectricityQuantity': '9594543.00', 'DeviceName': 'HAE_METER_v3_4', 'CurrentSensorStatus': 'OPERATIONAL'}, 'dev_2.5': {'uuid': '1d23dccf-34b2-47e9-bfd2-74d073a7e0a7', 'name': 'HAE_METER_v3_5', 'internalAddress': '2.5', 'type': 'elec_received_nt', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentElectricityFlow': '0.00', 'CurrentElectricityQuantity': '0.00', 'DeviceName': 'HAE_METER_v3_5', 'CurrentSensorStatus': 'UNKNOWN'}, 'dev_2.6': {'uuid': 'c310023c-6882-4619-a4e9-a3475cea2fc0', 'name': 'HAE_METER_v3_6', 'internalAddress': '2.6', 'type': 'elec_delivered_lt', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentElectricityFlow': '0.00', 'CurrentElectricityQuantity': '9477192.00', 'DeviceName': 'HAE_METER_v3_6', 'CurrentSensorStatus': 'UNKNOWN'}, 'dev_2.7': {'uuid': '5e595218-6d7a-4f11-acef-a8b582d4fe4e', 'name': 'HAE_METER_v3_7', 'internalAddress': '2.7', 'type': 'elec_received_lt', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentElectricityFlow': '0.00', 'CurrentElectricityQuantity': '0.00', 'DeviceName': 'HAE_METER_v3_7', 'CurrentSensorStatus': 'UNKNOWN'}, 'dev_2.8': {'uuid': '19f8d08e-e644-470b-b8e4-613d50f48c33', 'name': 'HAE_METER_v3_8', 'internalAddress': '2.8', 'type': 'heat', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentHeatQuantity': 'NaN', 'DeviceName': 'HAE_METER_v3_8', 'CurrentSensorStatus': 'UNKNOWN', 'CurrentHeatFlow': 'NaN'}, 'dev_settings_device': {'uuid': 'f5bf5c01-7edd-4040-af16-d1b08b5cccf8', 'name': 'settings_device', 'internalAddress': 'settings_device', 'type': 'settings_device'}}

JackKlaasing commented 8 months ago

I didn't fix it yet, please let me know if you want the fix!

cyberjunky commented 8 months ago

@JackKlaasing check for duplicate sensors like toon_gas_used_cnt_2 these will probably hold the current values. If so, read here for possible fixes:

https://github.com/cyberjunky/home-assistant-toon_smartmeter/issues/78#issuecomment-1873514888

JackKlaasing commented 8 months ago

@JackKlaasing check for duplicate sensors like toon_gas_used_cnt_2 these will probably hold the current values. If so, read here for possible fixes:

#78 (comment)

I don't have the duplicate values anymore. In the past I had, after the last update.

Then I had to fix it and it was working again but after a day or two it stopped again.

cyberjunky commented 8 months ago

Are you sure the ip address/port of the toon still matches the config? This integration is very simple, there is not much to break...

cyberjunky commented 8 months ago

Is the url listed in the log file (if debug enable) correct?

JackKlaasing commented 8 months ago

Is the url listed in the log file (if debug enable) correct?

Yes it's correct. I use the same IP for the thermostat and that one is working correctly.

cyberjunky commented 8 months ago

Can you post the debug log output for this integration, from startup to first poll(s)?

MagieMalone commented 8 months ago

@JackKlaasing check for duplicate sensors like toon_gas_used_cnt_2 these will probably hold the current values. If so, read here for possible fixes:

#78 (comment)

for me this worked. I'm annoyed at myself for not noticing the duplicate sensors.

cyberjunky commented 8 months ago

It had to do with some changes I needed to make to be compatible with current HA versions