-
Notifications
You must be signed in to change notification settings - Fork 47
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
Owntracks Hubitat devices do no update their state on HA automatically #252
Comments
If you enable debug logging for the integration, the log will show when state updates are received from Hubitat, like:
If events are showing up in the log for the device but entities aren’t updating in HA, there’s an issue in the integration. If events for some devices are showing up in the log but not events for other devices, then Hubitat likely isn’t sending updates to the integration for those devices. If no events from Hubitat are showing up in the log, then there may be a configuration issue with the integration. Reloading the integration will update device states because the integration requests the current state of all devices during startup. After startup, updates are pushed from Hubitat to HA. If the integration isn’t configured properly, or if the HA machine isn’t directly reachable by Hubitat, Hubitat won’t be able to push events to HA. |
Hi, I'm a little stupid with this log thing but maybe I found something. Or did I?
This is what it logs and a lot. |
Thanks, that’s helpful! So it looks like that service is reporting its battery value in a weird way, but one that can be worked around. Are other attributes for the device being updated? It looks like there’s an |
Yes it is also reporting for example longitude:
Also altitude:
And for example Distance from home:
So yes all attributes are trying to update but they all end up to errors. |
The attributes other than
The 'lon' event was received, and the |
Hmmm...it looks like the location event was received and the state of the location attribute was updated in HA (the |
Yep and this is what happened with life360 too. Then there was new update for the integration and that did something because everything started suddenly working. I'm guessing there wasn't anything special fixed for the life360 issue I was having. Update still somehow did something.. |
Try updating to v0.9.21. |
That did it...again. 🙄 Is this something that we should understand? |
Are things working now, then? |
The issue was that the Life360 app on Hubitat doesn’t follow the Hubitat spec for battery reporting. A battery property is supposed to be a number (like
The integration is assigning the wrong device class to the sensor. If you want to post the device capabilities here I can take a look at what it’s working with. In HA, a presence sensor is a type of binary sensor, so its value in HA is only ever |
Heres capabilities of the owntrack presence sensor. [{"capabilities":["Actuator","PresenceSensor",{"attributes":[{"name":"presence","currentValue":"not present","dataType":"ENUM","values":["present","not present"]}]}]}] And here is life360 presence sensor. |
@jason0x43 did you have a time to check if there is something that could be done with capabilities (Present is Connected in HA, and Not Present is Disconnected. |
Sorry, I lost track of this. From looking at the device capabilities, I think this should be straightforward enough to deal with. I’ll try to get an fix out this weekend. |
Thanks, I really appreciate that!! |
This should be fixed in v0.9.22. |
Cool. I'll update as soon as you publish. Great job and thanks already!! MVP! |
It's published |
Confirm it's working. Shows "Home" when I'm home.. and let's see tomorrow if it's "Away" when I'm away ;) |
I'm running latest version of integration:
![image](https://private-user-images.githubusercontent.com/42536643/297293686-93eb34e8-85ef-4a83-ba13-066c20d342fe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzEzMTIsIm5iZiI6MTczOTMzMTAxMiwicGF0aCI6Ii80MjUzNjY0My8yOTcyOTM2ODYtOTNlYjM0ZTgtODVlZi00YTgzLWJhMTMtMDY2YzIwZDM0MmZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAzMzAxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzZTMwNTkxZThmN2QzZDFiMTdiYTIzMzNlNDM5YWUzMGEwMTQ1NTI2MDQxNzg4NWMxNjYxMmM0MjkxMThhMDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.w_uithkifhJKH3wOCqauO8NVQVId8feSW1BD5hUk5ck)
I noticed same issue that I reported before with life360 presence sensors. Status or any information did not update automatically. If presence sensor's status, location, etc changed nothing happened until I manually went to HA, opened Hubitat integration and run/update integration again. All other devices like door sensor's and stuff worked normally and information updated automatically.
That was fixed with newer update of your integration. I never understood what was the issue and I'm guessing none of us did.
Now I'm having exact same issue with Owntracks presence sensors. Information can be updated if I update HA hubitat integration manually. Information doesn't update automatically and again I'm wondering what should I do. Last time I enabled integration logs and they did not reveal anything special. There was no log lines when device changes its location so for me it seems like these device changes do not update at all to HA side using this integration.
Here's attribute of "last location change time"
![image](https://private-user-images.githubusercontent.com/42536643/297298919-e21bdada-2168-4397-8204-d3ab783eab75.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzEzMTIsIm5iZiI6MTczOTMzMTAxMiwicGF0aCI6Ii80MjUzNjY0My8yOTcyOTg5MTktZTIxYmRhZGEtMjE2OC00Mzk3LTgyMDQtZDNhYjc4M2VhYjc1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAzMzAxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA3M2I1ZmFiNTZjMzVhYWY1MzdmMmUxMGEwM2M3MzcyM2NhYTQ0M2M0OTc3MDg0ODhiMDVjMDg4M2NhZTg1MDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0puQdEOM7w7YfM0cHMtxNcxkQQRX3GRBH78r96MXxzc)
And here is Hubitat side:
![image](https://private-user-images.githubusercontent.com/42536643/297299144-fde6aa7a-dd9a-4fd7-a53a-95c87f089225.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzEzMTIsIm5iZiI6MTczOTMzMTAxMiwicGF0aCI6Ii80MjUzNjY0My8yOTcyOTkxNDQtZmRlNmFhN2EtZGQ5YS00ZmQ3LWE1M2EtOTVjODdmMDg5MjI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAzMzAxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFlMDg1MDAwOTZkOGM4NDAwNjIzZjM1ODAxZTkwMmJiNjcyN2I1MjdmNzUzODIzN2ZhZjJiNTU2YWExZjU5ZWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MkRmXDhPngicxtTkb69G_7e1matubDDrxL5xJA04osM)
And if I run this in HA: (yellow line and yeah.. language is Finnish.. )
![image](https://private-user-images.githubusercontent.com/42536643/297299346-c8d90eff-277b-42f4-b3be-64c96c9a4ca9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzEzMTIsIm5iZiI6MTczOTMzMTAxMiwicGF0aCI6Ii80MjUzNjY0My8yOTcyOTkzNDYtYzhkOTBlZmYtMjc3Yi00MmY0LWIzYmUtNjRjOTZjOWE0Y2E5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAzMzAxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ1MTY3NGMzYjc3MjY2ZmM0ZTM1MGQzZmNhZDA0NWYwODQ5ZGUyZDljYTRmNGQ3NWRjMjNhYjM1Y2JmNzRhOTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.gc8euffLChphB8qNHzfU7r0vxKsX-s3ZmPSD50L7d1U)
and after that HA shows:
![image](https://private-user-images.githubusercontent.com/42536643/297299640-0924e46a-27f0-46bb-b0ac-d17ea567a08c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzEzMTIsIm5iZiI6MTczOTMzMTAxMiwicGF0aCI6Ii80MjUzNjY0My8yOTcyOTk2NDAtMDkyNGU0NmEtMjdmMC00NmJiLWIwYWMtZDE3ZWE1NjdhMDhjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAzMzAxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA3MjkzM2U1NDk5MWU1YjZhNDM0YzczMGJiN2FiN2U2ZjUwOTYzM2EyNjgzMTVjZWFhMzcyNmM5ZDk0ZDkxMmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dYQYotUmEEqk5vV9_rcm1c_MCbsujWx0mIPv1HiSAWk)
Any ideas what to do?
The text was updated successfully, but these errors were encountered: