Skip to content

Bridge between iCloud device status and Homie 3 MQTT convention

Notifications You must be signed in to change notification settings

jspeckman/icloud_homie_bridge

Repository files navigation

icloud_homie_bridge

Bridge between iCloud device status and Homie 3 MQTT convention

I wrote this primarily to get battery and location updates from my iphone for use with openHAB, after running into too many issues with the icloud plugin.

This program will log into the specified iCloud account and get battery and location updates for a given device.
That info will then be sent to an mqtt broker using the Homie 3 convention.

Required python modules:
pyicloud
Homie4

TODO:
Auto re-authenticate after iCloud authentication timeout.

How to run:
Copy icloud_homie_bridge.py to /usr/local/bin
Copy icloud_login.py to /usr/local/bin
Create a config.yaml file following the example file and put it in /etc/icloud
Copy icloud-homie-bridge.service to /usr/lib/systemd/system/
Run systemctl daemon-reload
Run systemctl enable icloud-homie-bridge.service
Run icloud_login.py (Authorizes the machine and gives a list of iCloud devices per account)
Run systemctl start icloud-homie-bridge.service

About

Bridge between iCloud device status and Homie 3 MQTT convention

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages