Skip to content

Commit

Permalink
added compassDirection
Browse files Browse the repository at this point in the history
  • Loading branch information
itchannel committed Oct 22, 2023
1 parent 3f5b1b1 commit a2abd00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions custom_components/fordpass/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def extra_state_attributes(self):
atts["gpsCoordinateMethod"] = self.coordinator.data["metrics"]["position"]["value"]["gpsCoordinateMethod"]
if "gpsDimension" in self.coordinator.data["metrics"]["position"]["value"]:
atts["gpsDimension"] = self.coordinator.data["metrics"]["position"]["value"]["gpsDimension"]
atts["compassDirection"] = self.coordinator.data.get("metrics", {}).get("compassDirection", {}).get("value", "Unknown")

return atts

@property
Expand Down
2 changes: 1 addition & 1 deletion custom_components/fordpass/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"loggers": ["custom_components.fordpass"],
"requirements": [],
"ssdp": [],
"version": "0.1.59",
"version": "0.1.60",
"zeroconf": []
}
4 changes: 4 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## **Changelog**
### Version 1.60
- Deepsleep status is now reported again as a sensor
- Compass Direction is now an attribute under the device_tracker entity

### Version 1.59
- Add support for manual VIN entry (Lincoln cars hopefuly) - Please test this and report any errrors back!
- Fix for lastRefresh sensor not returning local time
Expand Down

0 comments on commit a2abd00

Please sign in to comment.