-
Notifications
You must be signed in to change notification settings - Fork 10
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
Amsleser (AmsToMqttBridge) timeout #51
Comments
Having the same issue using POW-K from amsleser. Worth mention that I run 2.1.11 on the AMS reader |
Same issue with POW-U from amsleser. Running 2.1.13
With json payload:
With raw values (full):
With raw values (bytes):
In all situations I've verified that POW-U is sending data to MQTT by listening at or perhaps my issue is related to #29 Sending it as home assistant seems to work since I have a device with 41 entities in MQTT. But I can't connect amshan to MQTT regardless of payload in POW-U. |
AmsToMqttBridge encodes the binary data as hex before sending. If I hex decode "30323031303630303030303234332" (from your log) i get 02010600000243. This is just a fragment of the frame (message) from the meter. The integration expect the mqtt message to be full frame as sent from the meter, or the full APDU of the frame. Only the notification-body part of the APDU is in the messages from your log. Timestamp, headers, checksums etc is missing. AmsToMqttBridge did previously send the full APDU. I can read from the release log that version 2.1.17 had a related fix: "Fixed MQTT raw bytes, now sending full frame as well as application frame". I think the fix may have been broken in later versions, because your samples is not the full frame. Not even the full APDU. See UtilitechAS/amsreader-firmware#210 for more info about the expected format. I am sorry, but I don't have a quick fix to make the integration work with only the nofification-body of the APDU. |
Did follow the guide with a Pulse from Tibber. I can see it sending with mqtt explorer, but the AMS integration just keep "Timeout reading data" when I try to add it to my system. Home Assistant |
Version of the custom_component
2022.10.2
Configuration
Describe the bug
Possibly same as #44, but not quite same debug message.
Trying to integrate amshan in home assistant using a POW-U+ reader from amsleser.no with AmsToMqttBridge, gives a timeout error as shown in picture below:
Using the payload type: Raw data (bytes) as mqtt setup in AmsToMqttBridge software.
Debug info pasted below.
Let me know if you need any other debug info, or if this is a problem with the format from the AmsToMqttBridge software.
Debug log
The text was updated successfully, but these errors were encountered: