I use the static ip option over dhcp. But the iphone goes in deep sleep mode after 60 seconds. So it is not pingable
-
Pimatic phone icloud error
-
@sonny said in Pimatic phone icloud error:
I use the static ip option over dhcp. But the iphone goes in deep sleep mode after 60 seconds. So it is not pingable
that’s right, but it works using a script with a fritzbox
-
Yes, you are right. But at least in my environment with iPhone 6s and iPad Pro the device wake up every 3-5 minutes. So the rules
if ping_device is present then set presence of dummy present
if ping_device is absent for 5m then set presence of dummy absentwork for me (unless I have not disabled networking). My ping interval is set to 10 seconds.
It would be great to have some figures to compare accuracy and latency of the different approaches (ping, IFTTT, FritzBox WLAN status, Locative geofence, …) for the “DeviceAtHome” problem.
BTW: Independent from the method, you can log the device location in pimatic-phone with calls like …/updateTag?tag=Home or …/updateSSID?ssid=WLAN
-
@daice , the new release 0.7.6 of pimatic-phone provides 2 additional api calls disableUpdates and enableUpdates?code=000000 which can be used to suspend updates for 2FA enabled accounts. A login takes place with enableUpdates and trigger a notification mail.
-
@theslashy i dont have a fritzbox. And i dont know how to make a script
-
@theslashy said in Pimatic phone icloud error:
I solved this for me with another method:
I ask my Fritz Box which devices are connected, i found a little php script that I extended to send http requests when a specific device connects and I periodically call the script via crontabdo you think I should write a little howto for this?
I would be interested in a more detailed description of your solution. Thanks.
-
I switched to pimatic-phone due the fact that pimatic-location is not longer working with iDevices. It seems to be working, but I only get GPS info and no address.
Is there a way to get address information from this plugin like pimatic-location did?
-
@edautz said in Pimatic phone icloud error:
I switched to pimatic-phone due the fact that pimatic-location is not longer working with iDevices. It seems to be working, but I only get GPS info and no address.
Is there a way to get address information from this plugin like pimatic-location did?
Reverse geocoding and route calculation are intentionally not part of the pimatic-phone plugin: The services you have to use for this calculation are either not free or restrict access to occasional queries only. Although an address calculated from gps data is not very usefull for location based rules. Please have a closer look on the configuration of the plugin and the usage of geo tags. Of course, reverse geocoding and distance calculation is done for the configured known locations with local libraries. You can easily get the geo coordinates by the API call fetchLocation. You can use them for geocoding or route calculation with a remote service of your choice.
-
@mwittig Do you know when the new version of pimatic-location will be available?
The problem is indentified and a matter of commit your proposed changes and release of a new version?Or do I miss something?
Kind regards,
Edautz
-
With Version 0.8. i get an error when i try to recreate my phone ios devices:
Cannot read property ‘switch’ of null
I tried to delete the device and create a new one. This is working so far until i recreate the device to restart the tracking.daice
-
@daice said in Pimatic phone icloud error:
With Version 0.8. i get an error when i try to recreate my phone ios devices:
Cannot read property ‘switch’ of null
I tried to delete the device and create a new one. This is working so far until i recreate the device to restart the tracking.daice
Typo in the destroy method of non-iframe ios devices. Fixed with the just published Rev. 0.8.1. Sorry!
-
Thanks for fixing. Another thing i found is the $phone.suspended varriable. It is all time false. Maybe it shows the state of the defaultconfig instead the real one?
Regard daice
-
@daice I will have a look on it.
-
@edautz said in Pimatic phone icloud error:
Or do I miss something?
I had filed a PR which is still pending. I guess @Oitzu who is the owner of the plugin project will trake care of this as soon as he can.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@daice Please upgrade and check v0.8.3. I’ve done some clenup and refactoring around suspend attribute.
-
OK, thx now it’s working fine.
-
@mwittig sry, i totally missed that. Thanks for pinging me.
I need you to trust you on this one. -
@mwittig and @Oitzu. Thanxs for the pimatic-location-plugin update.
I tried the new code with a interval of 10 minutes. I don’t use 2FA.I notice two issues:
- Every interval period I got a mail from Apple reporting a Icloud login.
- After an initial update of the device, the location is not updated anymore.
Maybe the second issue is linked with the first.
It seems to be that each interval period a new login is made in the Icloud. I also tested the phone plugin, this is not the case with the phone plugin.Can the plugin be modified that a Icloud session will be long lived, so that a new login each interval period is not required?
-
@daice, @theslashy , @edautz , @sonny , @Oitzu , @mwittig , @leader21: The pimatic-phone update may be of interest for you.
-
@bstrebel
great thank you!!