toreamun / amshan-homeassistant

Home Assistant integrasjon for strømmålere (AMS/HAN/P1). Integrasjonen støter både streaming (serieport/TCP-IP) og MQTT (Tibber Pulse, energyintelligence.se etc)
MIT License
150 stars 10 forks source link

Timeout reading data when setting up integration (Tibber Pulse) #54

Closed robertjoramo closed 1 year ago

robertjoramo commented 1 year ago

Describe the bug

I am not able to connect Tibber Pulse to Amshan through Home Assistant with MQTT Broker.

I can acces 10.133.70.1 fine. If I only use the home assistant IP as mqtt_url, I get the error MQTTErr:-8 0 c. If I instead add my home assistant login before in username:password@host format, it seems to work. Pressing only "Send" does nothing, but if I press "Apply" as well the Pulse restarts, and connects to wifi (never turns solid green as the guide says, but light blue).

When I then try to add it to the Ams Han meter integration, I get the error "Timeout reading data"

Anyone have an idea where I go wrong? This feels like a PEBKAC issue, but I have tried for several days, and are not getting anywhere.

Debug log

When listening to MQTT topic i get endless lines of this


 Message 350 received on pulse at 22:03:

b"Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command '~\xa0*A\x08\x83\x13\x04\x13\xe6\xe7''''''''''''''''"

QoS: 0 - Retain: false
Message 349 received on pulse at 22:03:

b"Debug: Unknown command '~\xa0*A\x08\x83\x13\x04\x13\xe6\xe7'"

QoS: 0 - Retain: false
Message 348 received on pulse at 22:03:

Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: WiFi ps enabled''''''''''''''

QoS: 0 - Retain: false
Message 347 received on pulse at 22:03:

Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: 

QoS: 0 - Retain: false
Message 346 received on pulse at 22:03:

Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: 

QoS: 0 - Retain: false
Message 345 received on pulse at 22:03:

b"Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command '~\xa0*A\x08\x83\x13\x04\x13\xe6\xe7'''''''''''''''"

QoS: 0 - Retain: false
Message 344 received on pulse at 22:03:

b'~\xa0*A\x08\x83\x13\x04\x13\xe6\xe7\x00\x0f@\x00\x00\x00\x00\x01\x01\x02\x03\t\x06\x01\x00\x01\x07\x00\xff\x06\x00\x00\x10c\x02\x02\x0f\x00\x16\x1b=p~'

QoS: 0 - Retain: false
Message 343 received on pulse at 22:03:

Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: WiFi ps enabled'''''''''''''

QoS: 0 - Retain: false
Message 326 received on pulse at 22:03:

Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: Unknown command 'Debug: WiFi ps enabled''''

QoS: 0 - Retain: false 
robertjoramo commented 1 year ago

Nevermind, apparently having the patient of a 3-year old could be an issue. Fixed it self 5 minutes after creating this issue.

Did nothing, just left it connected to my "strømmåler" and suddenly it worked when trying to connect it to HA.