marq24 / ha-tibber-pulse-local

Local/LAN Tibber Pulse/Bridge Integration for Home Assistant. My Tibber invitation Link: https://invite.tibber.com/6o0kqvzf (Code: six, oscar, zero, kilo, quebec, victor, zulu, foxtrot)
Apache License 2.0
73 stars 3 forks source link

No connection or no stable connection to bridge #6

Closed Bloodydead closed 8 months ago

Bloodydead commented 8 months ago

Hey,

i tried to install your addon. Webserver is running and responsive. I tried every version from 1.0.2 to 1.0.7 sometimes i get a connection but then the sensor values are 95% of the time "unbekannt" or i get an error if i try to set it up with "failed to connect" or "Es konnte keine Daten abgerufen werden" Under Nodes i can see "last seen" is between 0.5s and 4s Meter Type is SML 1.04 Model: Landis & Gyr E220 I have an encoded output

Hope you can help. Thank you in advance.

marq24 commented 8 months ago

looks like the connection is not really stable in your LAN to the bridge - I have to admit that I am clueless what is the default (if at all) timeout for an aiohttp session - so in the new (beta) version https://github.com/marq24/ha-tibber-pulse-local/releases/tag/1.0.8 I have added a timeout of 10sec for each request - please update and let me know the result... TIA

Bloodydead commented 8 months ago

Unfortunately it didn't fix it, my wifi rssi is -67, so this should not be an issue. Any idea how i can test if the connection is stable?

marq24 commented 8 months ago

I have to admit - for now I don't have any additional idea...

what I have understood so far, that "sometimes" you can add the bridge - but once its added, it does not deliver data (most of the time you see "unbekannt"...

Can you please be so kind and enable the debug-log for the integration and share here the log output that will be generated [obviously this requires, that you have been able "once" to connect to the bridge...]

... and IMHO also worth a try is this what's reported here in #3 (change the battery)

Bloodydead commented 8 months ago

Correct. Batterie looks fine:

{
    "$type": "node_status",
    "node_status": {
        "product_id": 49344,
        "bootloader_version": 17563650,
        "meter_mode": 3,
        "node_battery_voltage": 3.465,
        "node_temperature": 22.512,
        "node_avg_rssi": -55.783,
        "node_avg_lqi": 198.349,
        "radio_tx_power": 14,
        "node_uptime_ms": 1270870882,
        "meter_msg_count_sent": 81,
        "meter_pkg_count_sent": 106,
        "time_in_em0_ms": 3633,
        "time_in_em1_ms": 35,
        "time_in_em2_ms": 296483,
        "acmp_rx_autolevel_300": 146,
        "acmp_rx_autolevel_9600": 238
    },
    "hub_attachments": {
        "meter_pkg_count_recv": 106,
        "meter_reading_count_recv": 81,
        "node_version": "1007-56bd9fb9"
    }
}
2023-10-26 20:00:05.595 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xf9\xceb\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfd\xef\x0b\n\x01LGZ\x00\x02\xa8\xc2\xccrb\x01e\x07\x10\x01\xa9\x01c\xdc\xe2\x00v\x05\x15/\xf9\xcfb\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xa9uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xa9b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\x9f\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xa9b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xc5\x01\x01\x01ce\xfe\x00v\x05\x15/\xf9\xd0B\x00b\x00rc\x02\x01q\x01c>\xa5\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02w\xaa'
2023-10-26 20:00:07.129 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xf9\xdab\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfd\xf3\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xad\x01c\xa9\xfe\x00v\x05\x15/\xf9\xdbb\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xfe\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xaduw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xadb\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xa1\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xadb\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xc8\x01\x01\x01c\xe1{\x00v\x05\x15/\xf9\xdcb\x00b\x00rc\x02\x01q\x01c\xc1G\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02\xa2\x1f'
2023-10-26 20:00:07.130 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 1.666 seconds (success: True)
2023-10-26 20:00:16.509 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xf9\xf2b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfd\xfb\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xb5\x01c\xc7\xe0\x00v\x05\x15/\xf9\xf3b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xcc\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xb5tw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xb5b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xa6\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xb5b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xc5\x01\x01\x01c\xa6+\x00v\x05\x15/\xf9\xf4b\x00b\x00rc\x02\x01q\x01c\xe1\x19\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x022;'
2023-10-26 20:00:18.083 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xf9\xf2b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfd\xfb\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xb5\x01c\xc7\xe0\x00v\x05\x15/\xf9\xf3b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xcc\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xb5tw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xb5b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xa6\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xb5b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xc5\x01\x01\x01c\xa6+\x00v\x05\x15/\xf9\xf4b\x00b\x00rc\x02\x01q\x01c\xe1\x19\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x022;'
2023-10-26 20:00:18.084 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 1.620 seconds (success: True)
2023-10-26 20:00:27.605 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa\x10b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfe\x05\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xbf\x01c\xcb?\x00v\x05\x15/\xfa\x11b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xbfuw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xbfb\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xab\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xbfB\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xc8\x01\x01\x01cc\xb7\x00v\x05\x15/\xfa\x12b\x00b\x00rc\x02\x01q\x01c\xec\xd6\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02\xfcc'
2023-10-26 20:00:29.249 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa\x16b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfe\x07\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xc1\x01cNS\x00v\x05\x15/\xfa\x16b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xc1uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x00\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x00w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xc1b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xad\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xc1b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xc5\x01\x01\x01c|\x06\x00v\x05\x15/\xfa\x18b\x00b\x00rc\x02\x01q\x01cd\xc1\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02\xe3\xd3'
2023-10-26 20:00:29.250 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 1.787 seconds (success: True)
2023-10-26 20:00:39.590 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa.b\x00b\x00rc\x01\x01v\x01\x07\xff\xfe\xff\xff\xff\xff\x05\x07\x0f\xfe\x0f\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xc9\x01c\x97\x14\x00v\x05\x15/\xfa/b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xc9uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xcc\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xc9b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xb1\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xc9B\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xc4\x01\x01\x01c\x0e<\x00v\x05\x15/\xfa0b\x00b\x00rc\x02\x01q\x01cD\x9f\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02\x19\x9e'
2023-10-26 20:00:41.214 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa.b\x00b\x00rc\x01\x01v\x01\x07\xff\xfe\xff\xff\xff\xff\x05\x07\x0f\xfe\x0f\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xc9\x01c\x97\x14\x00v\x05\x15/\xfa/b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xc9uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xcc\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xc9b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xb1\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xc9B\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xc4\x01\x01\x01c\x0e<\x00v\x05\x15/\xfa0b\x00b\x00rc\x02\x01q\x01cD\x9f\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02\x19\x9e'
2023-10-26 20:00:41.215 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 1.751 seconds (success: True)
2023-10-26 20:00:51.569 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa^b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x04\x07\x0f\xfe\x1f\x0b\n\x01LGZ\x00\x02\xa8\xc2\xccrb\x01e\x07\x10\x01\xd9\x01c%\x9b\x00v\x05\x15/\xfa_b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xcc\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xd9uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xd9b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xba\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xd9b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xcc\x01\x01\x01c[\\\x00v\x05\x15/\xfa`b\x00b\x00rc\x02\x01q\x01c\x04#\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02\x8cd'
2023-10-26 20:00:53.194 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa^b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x04\x07\x0f\xfe\x1f\x0b\n\x01LGZ\x00\x02\xa8\xc2\xccrb\x01e\x07\x10\x01\xd9\x01c%\x9b\x00v\x05\x15/\xfa_b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xcc\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xd9uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xd9b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xba\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xd9b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xcc\x01\x01\x01c[\\\x00v\x05\x15/\xfa`b\x00b\x00rc\x02\x01q\x01c\x04#\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02\x8cd'
2023-10-26 20:00:53.195 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 1.732 seconds (success: True)
2023-10-26 20:01:02.531 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b"\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfavb\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfe'\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xe1\x01cm\x15\x00v\x05\x15/\xfawb\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xe1uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xe1b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xbe\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xe1b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xc3\x00\x01\x01c\xff\xc4\x00v\x05\x15/\xfaxb\x00b\x00rc\x02\x01q\x01c\xeb\xee\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02_\xeb"
2023-10-26 20:01:04.162 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa\x82b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfe+\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xe5\x01cK\x8e\x00v\x05\x15/\xfa\x83b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xe5uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xe5b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xc1\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xe5B\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xcd\x01\x01\x01c\xb3+\x00v\x05\x15/\xfa\x84b\x00b\x00rc\x02\x01q\x01c\xc5\xc0\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02\xd83'
2023-10-26 20:01:04.163 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 1.699 seconds (success: True)
2023-10-26 20:01:13.572 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa\x9ab\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfe3\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xed\x01c<7\x00v\x05\x15/\xfa\x9ab\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xfe\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xeduw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x00w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xedb\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xc5\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xedb\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xce\x01\x01\x01c\x87a\x00v\x05\x15/\xfa\x9cb\x00b\x00rc\x02\x01q\x01c*\r\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02 O'
2023-10-26 20:01:15.119 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa\x86b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfe7\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xf1\x01c\xd4[\x00v\x05\x15/\xfa\xa7b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\n\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xf1uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xf1b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xc8\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xf1b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xf0\x01\x01\x01c\x98\x0e\x00v\x05\x15/\xfa\xa8b\x00b\x00rc\x02\x01q\x01c\xb0\xc0\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02g\xdf'
2023-10-26 20:01:15.120 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 1.657 seconds (success: True)
2023-10-26 20:01:24.542 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa\xbeb\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfe?\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xf9\x01cP\x8c\x00v\x05\x15/\xfa\xbfB\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xf9uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xf9b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xcc\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xf9b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xdf\x01\x01\x01c\xcb\\\x00v\x05\x15/\xfa\xc0b\x00b\x00rc\x02\x01q\x01c\x95S\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02\x1b\x17'
2023-10-26 20:01:26.190 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x15/\xfa\xbeb\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x07\x0f\xfe?\x0b\n\x01LGZ\x00\x02\xa8\xc2\xecrb\x01e\x07\x10\x01\xf9\x01cP\x8c\x00v\x05\x15/\xfa\xbfB\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x07\x01\x00b\n\xff\xffrb\x01e\x07\x10\x01\xf9uw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04LGZ\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01LGZ\x00\x02\xa8\xc2\xec\x01w\x07\x01\x00\x01\x08\x00\xffe\x00\x1c\x01\x04rb\x01e\x07\x10\x01\xf9b\x1eR\xffi\x00\x00\x00\x00\x03l\x9d\xcc\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x07\x10\x01\xf9b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x00\x01w\x07\x01\x00\x10\x07\x00\xff\x01\x01b\x1bR\x00Y\x00\x00\x00\x00\x00\x00\x00\xdf\x01\x01\x01c\xcb\\\x00v\x05\x15/\xfa\xc0b\x00b\x00rc\x02\x01q\x01c\x95S\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x02\x1b\x17'
2023-10-26 20:01:26.190 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 1.727 seconds (success: True)

grafik

so hope this helps

marq24 commented 8 months ago

For the start I would increase the polling interval... to 10 - 30 sec

marq24 commented 8 months ago

just as explaination - the LOG reveals that there is no connection error - it's that the data stream the tibber bridge is providing is "corrupted"...

You "can" see invalid chars in the byte sequence... I have the same here @ home from time to time - but that that frequent as your...

Do you have another application/service running elsewhere querying the data from the same tibber bridge?

Bloodydead commented 8 months ago

The interval was 10s und changed it now to 20s

No nothing, only the tibber cloud is active.

marq24 commented 8 months ago

Concerning all the CRC Errors in your log...

First of all - there is no communication error/issue in your setup - the HA integration can reach your tibber bridge without any problems - the "only" problem is, that the (a lot of) responses (the actual byte-sequence) that the bridge is providing can't be decoded. This sounds first hand like a problem of the integration - but this is not the case - it's the response (bytes) that the bridge replies to the request of the integration are not in a valid format (famous developers words: "it's not my fault" :-D )...

As I wrote earlier - I have here also from time to time this CRC errors in the log - and obviously in the first days I tried to dig deep into the code (and in the library that I use to decode the SML-message) to find the root cause of the problem - and at the end of the day I had to realize, that the INPUT (the byte sequence) is simple not correct. So no way for "my code" to get around this - "shit IN will always cause shit OUT"...

When I was looking closer into the byte sequence (and that's the only reason why I log it in HA), I saw, that the "valid starting message" will interrupted at random places... and a new message start byte sequence is starting. (at least I believe so)

Here is my "theory" what is happening inside the tibber bridge (without having any proof) - IMHO the web server component build into the bridge have a "shared buffer issue" - IMHO the server is not thread save - this means that before a response have been completely written into the output-stream the response-byte-buffer will be reused by another incoming-request... So mainly two processes use the "same" memory in order to provide a response... and this will lead to the situation...

When some of the requests (in your network) will take 5 sec - others just 1 - then there the chances are quite high, that the tibber brigde have to process multiple requests at the same time - causing "both" responses to be invalid (or at least one of them)...

Again this is just my theory - I don't have any real proof of that - but at least I can say, that the code of the integration seams to work "fine" in your current setup - there is no unexpected behavior (which I initially thought would be the case)- it's just that the data that is provided by the bridge are invalid sml byte sequences. :-/

Bloodydead commented 8 months ago

Ok, could it be, that the tibber cloud is causing this issues? Can i deactivate that and see if ithelps or do i have a faulty bridge?

marq24 commented 8 months ago

I can't recommend to deactivate anything at the tibber setup... And I do not believe that your have faulty hardware...

With the move, that we have enabled the web server in the tibber bridge permanently, we are the ones who make a move away from the default configuration - so we can not expect, that "everything" just works... Also open a support case would not be smart IMHO... since we are doing something different.

IMHO we just can accept the situation as it is - and try to play around with alternative update intervals and see, if this would change the situation...

In my local setup the Bridge and the Pulse are aprox. 1m away from each other - and the Bridge is 40cm beside the WLAN router - so this is for sure the MOST-stable environment possible... I just can guess, what will happen if the distance between theses three components would be increased... Could be that the CRC error rate would increase here as well...

Bloodydead commented 8 months ago

Bridge and Pulse are around 5m apart and my accesspoint 8m. I installed a new seperate home assistant and made the integration their, but still the same issue.

What I don't understand, why the cloud works "perfect", and the data is their also not corrupted?

marq24 commented 8 months ago

The "cloud" use a total different communication - Your Tibber bridge reads the data from the pulse and send's it over via MQTT to a central MQTT Server running at AWS... There are users who step in the middle of this communication, and adjust the bridge settings that the MQTT data will be send to a local MQTT instance and then from there to the Tibber cloud...

I just can assume, that the code doing this (read the data from the pulse and send it via MQTT) would work rock solid (intense tested by Tibber SoftwareDevDepartment) - Could be that the code making the data also available via the Webinterface is simply submitting the "last data buffer" that was used by create the MQTT message - and that there is no sync? When the MQTT-part is fetching new data, the webserver should wait till the data was read completely - but again this are all just theories...

I am not claiming, that the integration is working rock-solid for million other users and you would be the only one facing this issue - nor do I have an idea, what "else" you can try to improve the "unavailable" situation - (IMHO it's better to see "no data" instead of providing just previously fetched (aka old) values)...

Bloodydead commented 8 months ago

I disagree on that one, because if i open my dashboard it would be better to see my last consumption then nothing.

Ok so it seems i need to accept the situation and use the cloud integration again. Thank you for your help.

marq24 commented 8 months ago

took me a while to understand which specific statement you disagree... so there is now a 1.0.9

Bloodydead commented 8 months ago

Thanks, that helps

ckarrie commented 8 months ago

Can confirm there CRC messages:

2023-11-02 10:46:45.560 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80rb\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x00\x03\xd5|\x0b\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\xa4\xe4b\x01c|]\x00v\x05\x00\x0b\x80sb\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00b\n\xff\xffrB\x01e\x01g\xa4\xe4yw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffd\x1c\x01\x04rB\x01e\x01g\xa4\xe4b\x1eR\xffi\x00\x00\x00\x00\x01cyO\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01G\xa4\xe4b\x1eR\xffi\x00\x00\x00\x00\x01cx\xe6\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xe4b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x01g\xa4\xe4b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0f\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01e\x01g\xa4\xe4b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x01rb\x01e\x01g\xa4\xe4b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01e\x01g\xa4\xe4b\x1bR\x00U\x00\x00\x02|\x01\x01\x01c*\x04\x00v\x05\x00\x0b\x80tb\x00b\x00rc\x02\x01q\x01c\xdb\x95\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03~\xf4'
2023-11-02 10:46:48.186 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80{b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xfe\xff\xff\xff\x05\x00\x03\xd5\x7f\x0b\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\xa4\xe6b\x01c\t\xb9\x00v\x05\x00\x0b\x80|b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xfe\xff\xff\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00b\n\xff\xffrb\x01e\x01g\xa4\xe6yw\x07\x01\x00@2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffD\x1c\x01\x04rb\x01e\x01g\xa4\xe6b\x1eR\xffi\x00\x00\x00\x00\x01cyR\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01g\xa4\xe6b\x1eR\xffi\x00\x00\x00\x00\x01cx\xe9\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xe6b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x01g\xa4\xe6b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0f\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01E\x01g\xa4\xe6b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x00rb\x01e\x01g\xa4\xe6B\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01e\x01g\xa4\xe6b\x1bR\x00U\x00\x00\x02\x8c\x01\x01\x01c\xeaX\x00v\x05\x00\x0b\x80}b\x00b\x00rc\x02\x01q\x01c\xe0|\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03h\xff'
2023-11-02 10:46:48.186 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 2.719 seconds (success: True)
2023-11-02 10:46:49.522 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80{b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xfe\xff\xff\xff\x05\x00\x03\xd5\x7f\x0b\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\xa4\xe6b\x01c\t\xb9\x00v\x05\x00\x0b\x80|b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xfe\xff\xff\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00b\n\xff\xffrb\x01e\x01g\xa4\xe6yw\x07\x01\x00@2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffD\x1c\x01\x04rb\x01e\x01g\xa4\xe6b\x1eR\xffi\x00\x00\x00\x00\x01cyR\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01g\xa4\xe6b\x1eR\xffi\x00\x00\x00\x00\x01cx\xe9\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xe6b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x01g\xa4\xe6b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0f\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01E\x01g\xa4\xe6b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x00rb\x01e\x01g\xa4\xe6B\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01e\x01g\xa4\xe6b\x1bR\x00U\x00\x00\x02\x8c\x01\x01\x01c\xeaX\x00v\x05\x00\x0b\x80}b\x00b\x00rc\x02\x01q\x01c\xe0|\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03h\xff'
2023-11-02 10:46:52.077 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80\x8db\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xfe\xff\x05\x00\x03\xd5\x85\x0b\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\xa4\xeab\x01c\xf4\x8d\x00v\x05\x00\x0b\x80\x8eb\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xfe\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00b\n\xff\xferb\x01e\x01g\xa4\xeayw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x00\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffd\x1c\x01\x04rb\x01e\x01g\xa4\xcab\x1eR\xffi\x00\x00\x00\x00\x01cyY\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01g\xa4\xeab\x1eR\xffi\x00\x00\x00\x00\x01cx\xf0\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xcab\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x01g\xa4\xeab\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0e\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01e\x01g\xa4\xeab\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x01rB\x01e\x01g\xa4\xeab\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01e\x01g\xa4\xeab\x1bR\x00U\x00\x00\x02\x9f\x01\x01\x01c\xf3\xb4\x00v\x05\x00\x0b\x80\x8fb\x00b\x00rc\x02\x01q\x01c\x13\x1b\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03\r\xde'
2023-11-02 10:46:52.077 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 2.613 seconds (success: True)
2023-11-02 10:46:53.507 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80\x96B\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x00\x03\xd5\x88\x0b\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\xa4\xecb\x01c\xc7\xca\x00v\x05\x00\x0b\x80\x97b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00b\n\xff\xffrb\x01e\x01g\xa4\xecyw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffd\x1c\x01\x04rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x01Cy\\\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x01cx\xf4\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0f\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x01rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01e\x01g\xa4\xecB\x1bR\x00U\x00\x00\x02\x96\x01\x01\x01c\xc50\x00v\x05\x00\x0b\x80\x98b\x00b\x00rc\x02\x01q\x01c\xb0\xca\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03\xbd '
2023-11-02 10:46:56.070 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80\x96B\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x00\x03\xd5\x88\x0b\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\xa4\xecb\x01c\xc7\xca\x00v\x05\x00\x0b\x80\x97b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xff\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00b\n\xff\xffrb\x01e\x01g\xa4\xecyw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffd\x1c\x01\x04rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x01Cy\\\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x01cx\xf4\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0f\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x01rb\x01e\x01g\xa4\xecb\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01e\x01g\xa4\xecB\x1bR\x00U\x00\x00\x02\x96\x01\x01\x01c\xc50\x00v\x05\x00\x0b\x80\x98b\x00b\x00rc\x02\x01q\x01c\xb0\xca\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03\xbd '
2023-11-02 10:46:56.070 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 2.594 seconds (success: True)
2023-11-02 10:46:57.503 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80\xa8b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xff\xff\x05\x00\x03\xd5\x8e\n\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\x84\xf0b\x01c\xd9\xf2\x00v\x05\x00\x0b\x80\xa9b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xfe\xff\xff\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00B\n\xff\xffrb\x01e\x01g\xa4\xf0yw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffd\x1c\x01\x04rb\x01e\x01g\xa4\xf0b\x1eR\xffi\x00\x00\x00\x00\x01cyc\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01g\xa4\xf0b\x1eR\xffi\x00\x00\x00\x00\x01cx\xfa\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xf0b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x01g\xa4\xf0b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0f\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01e\x01g\xa4\xf0b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x01rb\x01e\x01g\xa4\xf0b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01e\x01g\xa4\xf0b\x1bR\x00U\x00\x00\x02\x90\x01\x01\x01c\x8d\xc0\x00v\x05\x00\x0b\x80\xaab\x00b\x00rc\x02\x01q\x01c]\xf2\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03\xc5\xd3'
2023-11-02 10:47:00.066 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80\xb1b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xfe\xff\xff\xff\x05\x00\x03\xd5\x91\n\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\x84\xf2b\x01c\xc5@\x00v\x05\x00\x0b\x80\xb2b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xfe\xff\xff\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00B\n\xff\xffrb\x01e\x01g\xa4\xf2yw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffD\x1c\x01\x04rb\x01e\x01g\xa4\xf2b\x1eR\xffi\x00\x00\x00\x00\x01cyf\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01g\xa4\xf2b\x1eR\xffi\x00\x00\x00\x00\x01cx\xfd\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xf2b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x01g\xa4\xf2b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0f\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01e\x01g\xa4\xf2b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x01rb\x01e\x01g\xa4\xf2B\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01E\x01g\xa4\xf2b\x1bR\x00U\x00\x00\x02\xab\x01\x01\x01c\xfdO\x00v\x05\x00\x0b\x80\xb3B\x00b\x00rc\x02\x01q\x01c#j\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03\xcf\xb5'
2023-11-02 10:47:00.066 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 2.601 seconds (success: True)
2023-11-02 10:47:01.605 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80\xb1b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xfe\xff\xff\xff\x05\x00\x03\xd5\x91\n\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\x84\xf2b\x01c\xc5@\x00v\x05\x00\x0b\x80\xb2b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xfe\xff\xff\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00B\n\xff\xffrb\x01e\x01g\xa4\xf2yw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffD\x1c\x01\x04rb\x01e\x01g\xa4\xf2b\x1eR\xffi\x00\x00\x00\x00\x01cyf\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01g\xa4\xf2b\x1eR\xffi\x00\x00\x00\x00\x01cx\xfd\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xf2b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x01g\xa4\xf2b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0f\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01e\x01g\xa4\xf2b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x01rb\x01e\x01g\xa4\xf2B\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01E\x01g\xa4\xf2b\x1bR\x00U\x00\x00\x02\xab\x01\x01\x01c\xfdO\x00v\x05\x00\x0b\x80\xb3B\x00b\x00rc\x02\x01q\x01c#j\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03\xcf\xb5'
2023-11-02 10:47:04.160 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80\xc3b\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xfe\xff\xff\x05\x00\x03\xd5\x97\x0b\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\xa4\xf6b\x01c?\x12\x00v\x05\x00\x0b\x80\xc4b\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xfe\xff\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00b\n\xff\xffrb\x01e\x01g\xa4\xf6yw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffd\x1c\x01\x04rb\x01e\x01g\xa4\xf6b\x1eR\xffi\x00\x00\x00\x00\x01cym\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01g\xa4\xf6b\x1eR\xffi\x00\x00\x00\x00\x01cy\x04\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xf6b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rb\x01e\x01g\xa4\xf6b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0f\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01e\x01g\xa4\xf6b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x01rb\x01e\x01g\xa4\xf6b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01e\x01g\xa4\xf6b\x1bR\x00U\x00\x00\x02y\x01\x01\x01c\xb9\x8a\x00v\x05\x00\x0b\x80\xc5B\x00b\x00rc\x02\x01q\x01c\x9e\xc1\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03\x97\x1d'
2023-11-02 10:47:04.160 DEBUG (MainThread) [custom_components.tibber_local] Finished fetching tibber_local data in 2.690 seconds (success: True)
2023-11-02 10:47:05.596 INFO (MainThread) [custom_components.tibber_local] CRC while parse data - payload: b'\x1b\x1b\x1b\x1b\x01\x01\x01\x01v\x05\x00\x0b\x80\xccb\x00b\x00rc\x01\x01v\x01\x07\xff\xff\xff\xff\xfe\xff\x05\x00\x03\xd5\x9a\x0b\n\x01EMH\x00\x00\xbcFxrb\x01e\x01g\xa4\xf8B\x01c\x08\xc7\x00v\x05\x00\x0b\x80\xcdb\x00b\x00rc\x07\x01w\x07\xff\xff\xff\xff\xff\xfe\x0b\n\x01EMH\x00\x00\xbcFx\x07\x01\x00b\n\xff\xffrb\x01e\x01g\xa4\xf8yw\x07\x01\x00`2\x01\x01\x01\x01\x01\x01\x04EMH\x01w\x07\x01\x00`\x01\x00\xff\x01\x01\x01\x01\x0b\n\x01EMH\x00\x00\xbcFx\x01w\x07\x01\x00\x01\x08\x00\xffd\x1c\x01\x04rb\x01e\x01g\xa4\xf8b\x1eR\xffi\x00\x00\x00\x00\x01cyp\x01w\x07\x01\x00\x01\x08\x01\xff\x01rb\x01e\x01g\xa4\xf8b\x1eR\xffi\x00\x00\x00\x00\x01cy\x07\x01w\x07\x01\x00\x01\x08\x02\xff\x01rb\x01e\x01g\xa4\xf8b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00h\x01w\x07\x01\x00\x02\x08\x00\xff\x01rB\x01e\x01g\xa4\xf8b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x90\x0f\x01w\x07\x01\x00\x02\x08\x01\xff\x01rb\x01e\x01g\xa4\xf8b\x1eR\xffi\x00\x00\x00\x00\x04\x83\x8f\xfd\x01w\x07\x01\x00\x02\x08\x02\xff\x01rb\x01e\x01g\xa4\xf8b\x1eR\xffi\x00\x00\x00\x00\x00\x00\x00\x12\x01w\x07\x01\x00\x10\x07\x00\xff\x01rb\x01e\x01g\xa4\xf8b\x1bR\x00U\x00\x00\x02\x9b\x01\x01\x01c\xff\xce\x00v\x05\x00\x0b\x80\xceb\x00b\x00rc\x02\x01q\x01c\x87\x83\x00\x00\x00\x00\x1b\x1b\x1b\x1b\x1a\x03\xf9\xda'

I attached a "longer" log. tibber_local.log

ckarrie commented 8 months ago

I don't know if it helps, but most sensors show "unavailable" - but this could be caused that its not supported by the meter. image

marq24 commented 8 months ago

... so @ckarrie looks like that you are "caught" in the same situation as @Bloodydead - I am sorry but I am still clueless what could be the root cause for the CRC errors - well one thing is very easy - the CRC error(s) occur cause the read byte sequence from the bridge is not valid... BUT why this is happening - and why so often in your environment is totally unknown...

Here in my setup I have a CRC once or twice a day... that's it.

Concerning Entities with value "Unbekannt" - when the integration starts it will request data.json?node_id=1 and for each OBIC code that will be returned the Sensor-Entity will be added (if you did not manually 'activated' or 'deactivated' them). So (when not manually manipulated) the listed entities should be the ones that could be read from your bridge.

ckarrie commented 8 months ago

These CRC Errors causing the initializing setup problems in #8 too. I just setup a dev environment and its shown in the log while trying to connect to the bridge

ckarrie commented 8 months ago

I fixed it for me @Bloodydead :

image

it gives me much more data points image

ckarrie commented 8 months ago

Holy shit, wasn't aware of that rotating offset left, Pulse was horizontally aligned (few datapoints) - right, Pulse is slightly turned aligned (a lot more datapoints) image

Bloodydead commented 8 months ago

@ckarrie wow, i never thought about rotating the pulse head, because the tibber app received the data. It also worked for me. Some crc errors, but much better then before. Thank you :)

marq24 commented 8 months ago

just found this... https://support.tibber.com/de/articles/6498539-pulse-die-schnellsten-losungen-fur-haufige-anliegen

so rotating the pulse head is also in the tibber docu...