Skip to content

wecoyote5/hubitat-MyProjects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MyLocation

This driver is used in conjunction with HD+. This HD+ feature provides location and phone updates that can be used for updating dashboard location maps or any other device/app that utilizes geo coordinates.

v0.1.11 - Added an additional check for encoded '%'
v0.1.10 - Added a check to decode an encoded packet, added present/not present commands for testing
v0.1.9 - @jpage4500 added 'power' attribute
v0.1.8 - Corrrected WKT format
v0.1.7 - Added presence capability.
There is a new preference variable that is to be the name of the zone to which presence will be set.
If the zone name received from HD+ EXACTLY matches the preference name then presence will be set.\
i.e.
HD+ reports "Home" and the preference is "Home" then 'present'
HD+ reports "Work" and the preference is "Home" then 'not present'
HD+ reports no zone then 'not present'

The driver has these attributes which are updated when a new location has been received from HD+.

latitude - Current latitude
longitude - Current longitude
accuracy - The accuracy of the location
lastUpdated - The last update timestamp
battery - battery level
wifi - On wifi true/false
charging - true/false
power - Charging details (-1=unknown, 0=not charging, 1=AC, 2=USB, 4=wireless, 8=dock)
status - activity reported by the phone (in a vehicle, walking, running, etc)
confidence - confidence in % about the above status
statusSet - the last time the status changed
geoWKT - The lat and long in WKT format that can be used on maps
name - If configured on the device, this is the name of the presence zone the device currently resides
presence - present/not present

About

My Hubitat drivers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages