Awesome. To that uses code in a rule to pull off icloud? I found that there’s a pyiCloud library which allows similar.
How does your handle 2fa in icloud?
I might look at yours and produce it as a script that I can push into mqtt (only as I like that as a transport).
Then I might get some sort of wifi controlled switch, and I can keep the batter at 80% over night, and then charge the final 100% so that it’s at 100% right before I get up in the morning.
Your script will help point me into the right direction.