-
Notifications
You must be signed in to change notification settings - Fork 33
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
not all data captures being decoded #250
Comments
Hi @stepir It looks to me that everything is working fine and as expected.
The messages received under the home/TheengsGateway/BTtoMQTT/82EACA31D2E3 topic are the constantly received messages from your TPMS expectedly with a changing value for count for which of the four pressure sensors the message is coming from, including its pressure, temperature, battery level and alarm state - these are the decoded messages, and all data is decoded.
These are not decoded messages, but the auto-discovery messages for HA, only ever a single one for each property of your TPMS, indicated by their ending subtopic with the MAC address and -property of the device. These allow the automatic discovery in HA and for you to add the device easily. I hope this clarifies what you are seeing in MQTT Explorer. |
Hi @DigiH thanks a lot for helping understand better and sorry for some wrong wording used. The auto-discovery messages have older values than the decoded messages. If you look my screenshots 3 newer values have been decoded but the auto-discovery (second screenshot) one is not updated. The behaviour I'm seeing is that if I use auto-discovered entities in HA the values reported are hours behind, while the TPMS is updating its values every x minutes and so is the decoded messages in home/TheengsGateway/BTtoMQTT |
Yes, that is correct, the auto-discovery messages for each property are being created only once, the very first time a new, not yet discovered devices is being received by Theengs Gateway. Only this one single message per property is required for HA as a discovery message. They do not contain any other up to date sensor information at all, only the discovery details. Depending on when you discovered a device through Theengs Gateway, or any other MQTT discovery enabled gateway for that matter, they can be weeks, months or even years old - like some of mine for example. I assume you also have the MQTT integration installed in HA and have it hooked up to your MQTT Broker, correct? If so, you should see one entry under the MQTT integration for your TMPS. Clicking on it you should see the five properties for the device - these device and properties entries are created by the discovery messages, whereas the every changing actual values you see in this preview, or when adding this to any of your dashboards now - these are created by the constant incoming messages with up to date values. Maybe you can post a screenshot of this when you have set it up like that. |
Could you look into MQTT INFO just under the Device Info of one of the TPMS entries, where you selected the pressure property history above? It shows the discovery Payload for each property, but also the 10 most recently received message(s) to be expanded. Could you post a screenshot with both these expanded for -pres? I am a bit confused by you also having Ruuvi Tags showing in your MQTT discovered devices, but they are not actually showing as retained discovery messages in MQTT Explorer!?! So is everything hooked up to the same MQTT broker? And could it just be that the properties haven't actually changed their value for the last 2 hours, like the pressure in your screenshot above? So even if messages do come in regularly, the actual value(s) not changing will show what you are seeing in the pressure screenshot with 2 hours. What do you get as a popup when you hover over the 2 hours ago? |
Populated anew, or you keep the retianed discovery messages which were populated when discovery was on? The latter is the expected and actually suggested behaviour - You turn on discovery until all your own devices are being discovered and the discovery messages are created under the homeassistant topic. Once you have your own devices discovered you turn off discovery. This is so that you won't have any unwanted devices discovered by accident which might just pass your house or from your neighbours. Whenever you get new compatible devices you turn off discovery again for a short time until they are all discovered and the discovery messages created, to then turn it off again.
Where this could have been a case like that, someone passing your house with a Theengs Gateway compatible Bluetooth device. When discovery is on it will create a discovery entry, but by the time you might look at BTtoMQTT the person has already passed your house and is no longer in Bluetooth range. Do you have an example of such an unknown discovery message? |
ok clear very clear. I'll look for this occurrence but let's focus here on the issue of values not updated |
That is correct, if the most 10 most recently received message(s) match with the last messages received under home/TheengsGateway/BTtoMQTT/82EACA31D2E3 then all is fine, and I see it as a HA bug that in the hover Last updated: this is not being shown correctly, but that it is showing the same value as Last changed:, whereas for the raw data history Last updated: actually seems to working as expected. How does this all look for the tempc property?
I would assume that you'd be leaving the Bluetooth reception range when driving away, so then the last received value would stay stuck as long as the car is away, only updating again once the car and its TPMS sensors are back in Bluetooth range. |
And for on the road checking of your TPMS status with your mobile phone, you might want to look at our Theengs Mobile App, which also displays the pressure when away from home ;) |
identical behaviour - data is not updated with the right frequency
no I'm already 100% sure it's not the case - i'll get you data |
wooooooooooooooowwww!! |
Can you make a screenshot of the home/TheengsGateway/BTtoMQTT/82EACA31D2E3 MQTT message history with the last message visible. Only then open MQTT INFO, expand 10 most recently received message(s) and scroll down to the last of the 10 messages, and also make a screenshot of it. |
let me do it with the vehicle moving - so that i get more updates from the sensors |
Describe the bug
Hey, I'm running latest version trough HA addon 1.11
I'm using gateway to track TPMS data (cheap Chinese BLE sensors). What I'm noticing is that the data is update very often but only decoded few times.
In example here the same sensor has 3 historical data:
While the decoded topic only one:
What can I look at to gather additional info on why not all the data is decoded? What I'm seeing is that the sensors latest data is not always decoded and values reported in mqtt/ha is hours behind the latest captured.
Thanks
The text was updated successfully, but these errors were encountered: