Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stopped working after reconfiguring MQTT broker #71

Open
hmorkemo opened this issue Jan 24, 2024 · 2 comments
Open

Stopped working after reconfiguring MQTT broker #71

hmorkemo opened this issue Jan 24, 2024 · 2 comments

Comments

@hmorkemo
Copy link

Version of the custom_component

HASS 2023.6

Configuration

Add your logs here.

Describe the bug

I had to reconfigure my Tibber Pulse due to a change of mqtt broker from a separate one to the HA builtin.
After that the amshan integration worked fine for a few hours, then it stopped delivering data.
I deleted, reinstalled and added the amshan integration.
When giving the mwtt topic (tibber) it waits and gets a timeout reading data.
Several HA restarts, mqtt restarts later, the problem is the same.
I enabled debug logging. See below
My log file is getting a lot of log entries from the mqtt topic. See below
But it still gets the timeout.
Everything else using the mqtt broker works fine.

Debug log

2024-01-24 21:18:35.782 DEBUG (MainThread) [custom_components.amshan.metercon] Message with timestamp 2024-01-24 20:18:35.782463+00:00, QOS 0, retain flagg False, and payload length 449 received from topic tibber from subscription to topic tibber
2024-01-24 21:18:35.783 DEBUG (MainThread) [custom_components.amshan.metercon] Ignore JSON in payload without HDLC framing from topic tibber: {'status': {'rssi': -28, 'ch': 1, 'ssid': 'Oppgang B', 'usbV': '1.27', 'Vin': '26.64', 'Vcap': '4.43', 'Vbck': '4.56', 'Build': '1.2.5', 'Hw': 'F', 'bssid': 'f09fc2da5ea2', 'ID': 'ac67b2f4dc70', 'IP': '192.168.10.221', 'Uptime': 29160, 'mqttcon': 0, 'pubcnt': 12, 'rxcnt': 60, 'wificon': 0, 'wififail': 0, 'bits': 70, 'cSet': 95, 'Ic': 0.0, 'crcerr': 0, 'cAx': 1.127146, 'cB': 13, 'heap': 222688, 'baud': 2400, 'meter': 'Kaifa', 'ntc': 20.4, 's/w': 0.0, 'ct': 0, 'dtims': 595, 'mdb': 1, 'mdb_cnt': 60, 'bdtl': 0}}
2024-01-24 21:18:41.020 DEBUG (MainThread) [custom_components.amshan.metercon] Message with timestamp 2024-01-24 20:18:41.020051+00:00, QOS 0, retain flagg False, and payload length 382 received from topic tibber from subscription to topic tibber
2024-01-24 21:18:41.021 DEBUG (MainThread) [custom_components.amshan.metercon] Got payload without HDLC framing from topic tibber: 08dcd90212390934e8bc0100000000120348414e1a297ea027010201105a87e6e7000f40000000090c07e8011803151220ff80000002010600001454898a7e12390968efbc0100000000120348414e1a297ea027010201105a87e6e7000f40000000090c07e8011803151222ff80000002010600001386a5307e123909d0f6bc0100000000120348414e1a297ea027010201105a87e6e7000f40000000090c07e8011803151224ff8000000201060000120731bb7e12390930ffbc0100000000120348414e1a297ea027010201105a87e6e7000f40000000090c07e8011803151226ff800000020106000011b4f2147e128b0109bc08bd0100000000120348414e1a7b7ea079010201108093e6e7000f40000000090c07e8011803151228ff800000020d09074b464d5f30303109103639373036333134303938383738333509084d41333034483345060000115106000000000600000000060000045906000012a206000040160600003a2906000009450600000000060000093ca84d7e
2024-01-24 21:18:50.848 DEBUG (MainThread) [custom_components.amshan.metercon] Message with timestamp 2024-01-24 20:18:50.848507+00:00, QOS 0, retain flagg False, and payload length 382 received from topic tibber from subscription to topic tibber
2024-01-24 21:18:50.850 DEBUG (MainThread) [custom_components.amshan.metercon] Got payload without HDLC framing from topic tibber: 08dcd902123909c90ebd0100000000120348414e1a297ea027010201105a87e6e7000f40000000090c07e801180315122aff8000000201060000114902377e1239092917bd0100000000120348414e1a297ea027010201105a87e6e7000f40000000090c07e801180315122cff8000000201060000114bdd137e123909611ebd0100000000120348414e1a297ea027010201105a87e6e7000f40000000090c07e801180315122eff80000002010600001152269c7e1239099525bd0100000000120348414e1a297ea027010201105a87e6e7000f40000000090c07e8011803151230ff80000002010600001154e9e17e128b0109212fbd0100000000120348414e1a7b7ea079010201108093e6e7000f40000000090c07e8011803151232ff800000020d09074b464d5f30303109103639373036333134303938383738333509084d41333034483345060000115206000000000600000000060000045c060000129606000040120600003a2c06000009400600000000060000093ffd4c7e


Add your logs here.

@cnyborg
Copy link

cnyborg commented Oct 28, 2024

I'm getting similar logs when trying to set it up for the first time, same version. Without HDLC framing:

2024-10-27 13:20:09.721 DEBUG (MainThread) [custom_components.amshan.metercon] Got payload without HDLC framing from topic tibber: 08dcd9021801128c020986379e0000000000120250311af901384f748d310e02310c04fb48f9072061d6712e2674144043cd7d01898eff17584762e58a8b9466c7bb737a3eeed34d0a628801475c9840d8a5cc48ca9200ccfb1878216723165401db51d1c3677e37983a5c1ed91fa0742893d642a8065fd76fc7d9bbacaaa4655a61266d6d52119b7565cbbbce6debdca65ce424d5bfa46fb904a475946c59b237126594016c35cae0f8c914d92366b87418e1f68a11925f8c8d8c517c895b9709922e037343642933645d96962852c8ba500d348638dd08e85243ad30a8a02954d0d052cf1c2e688e506900173486050930856839c2b443058169cc122e680e53090c6db0a0a29991812b2f17000000ffff20c005126109965f9e0000000000120250311a4fd227947e0d71a65f739aa55f339ce9d7106427dc4aecb18e27fa103246a851849a7e91522351e9d7d86280d3af0959e91725d5539c7e4db0a55f44a2464abf08414ad2afa99191212f17000000ffff20c005
2024-10-27 13:23:09.847 DEBUG (MainThread) [custom_components.amshan.metercon] Got payload without HDLC framing from topic tibber: 08dcd9021801128b02092f1fa10000000000120250311af801384f74cd310ec2300c85e13d52ee0148b8cf765a276c0cc0c24caf80c4c6fd07a22ab1d2814859fcc9fea7e7e33edf74410c31e08c0b130807490c315651c67a8c8137c955001405836449a7cffa6e281db747f50fa81d75b6b2104ac5d7f5db39f92e9b1959e61d3359db2683d5b39e6cf39ef3da7e5e4f79c8459146118f80b28c917f95e41b426a3f3ac91d07401008a2bd8987b0a520387c564a0b3d82f73f8a44593214dbbed9073b0432926514ba23879d02cb805d05dc05734bdb4a6405c91c15b62aa688adf9c0f8af8eb669704f87b9c3bd7a1950741204a33e49f4d59daa77d8fed831a0e8243c3eb8dd15d7babc000000ffff20c005
2024-10-27 13:23:20.086 DEBUG (MainThread) [custom_components.amshan.metercon] Got payload without HDLC framing from topic tibber: 08dcd9021801128e02094c47a10000000000120250311afb01384f74ce310ec2300c85e1bd52ee0148b8cfcf699db031000b33bd02121bf71f88aa264a072265f127e7cff87cdca79bcd08431870c645058203a382ae462396631874955404403628841e4f9fe5bd212bae47caedd02adae47916e482afebb7726cbbeaeee2893b56f16d5b9c85ea7f58e735d76afb7979aa859a30a75ed8229044ef22ff2ab16d50ec472719e3000883507437f110ae0ea6424bcba8f10cdeff28a216fd1dba3e78147e5a140a3d43e08d14eef0bcd033a87f0ac12d4c6b7365df8a6005512c095ada0c14b4da81fcae4eb6699ccf0a53856b59f483d93b09207b246c7073bd42fb633fccde69693f70e263e771b8000000ffff20c005
2024-10-27 13:23:30.429 DEBUG (MainThread) [custom_components.amshan.metercon] Got payload without HDLC framing from topic tibber: 08dcd9021801128f02096a6fa10000000000120250311afc01384f74cf310ec2300c05d03d52ee0148986f3ba91336066061a6574062e3fe03a14aac762052163f7d7ff9f4b8dff25527c410038e383381b093c410631555ccfb187891d204405530484a3ebce7574719b83c6a7f853a50b3d589501b3e2f9fc1c9b36c66644537cc643d4d26535beb957d3eeabc6d3b6fabbcc8456a5d8b7809a8e8efb001ff5a922784f44b2719e30008c2507437f110ae0c04db52ec68bc83f73f8a18013f43d7d7be4fdb60050a9ea1f0869840c133c85f856017269ab6f42d012be9812545cba640456b0ee46f74aa93e67037981bdc2dd280e5efe401b99f44620a67d71bac7fcc062cbd936ae60bb7cb765b97070000ffff20c005
2024-10-27 13:23:40.362 DEBUG (MainThread) [custom_components.amshan.metercon] Got payload without HDLC framing from topic tibber: 08dcd9021801128c02095c96a10000000000120250311af901384f74cd310ec2300c85e13d52ee0148b8cf765a276c0cc0c24caf80c4c6fd07a22ab1d2814859fcc9fea7e7e33edf74410c31e08c0b130807490c3156d184f518036f92ab00280a0649994f9ff5dd503a6e8fea1f503bea6c6521948aafebb773f25d3633b2ac3b66b2b64d26b99ef5649bf79cd7f6f37aca432e52ca28e21150561b22ff2ac93784f4472719240108825074df4c8768dba2512418977588ee7f94a8c4be0bb6eff314d077151e4486c01d8c864406c5a310cc62af344c195b0c5612c548d0aa7988d01a0f2c5feb649dca7a35b83798eb963ad4bf923a2cbe12b6cac3f506ed8fd50ed52bc9f4072e27b1ced30d0000ffff20c005

Any ideas? @toreamun @hmorkemo

@cnyborg
Copy link

cnyborg commented Nov 1, 2024

I've managed to get it working, and I'm not sure why. I rebooted both mosquitto and Tibber Pulse, somehow it started sending messages with correct data. However it went back to gibberish after a while. Then I sent reboot command to Pulse and it started working again, and now it seems to continue sending correct data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants