@CommittotheIndian When I put the instructions for adding the Event Log card to Lovelace together, I added it on my system and took screenshots of how I was doing it at every step. It’s possible I missed something or there is another step that has to be done with HA on another screen to set up Lovelace that I had done a long time ago. I googled “add custom card to Lovelace” and there are a number of links to the problem you are having that were answered by Lovelace guys. If you could go through them, you might find an answer that will help you get it going in your specific setup. Let me know what you did and I’ll add it to the instructions. Thanks.
Yes, there might be something in v2.2.0 that is leading to your problem. Since you don’t have the Event Log card running and can’t see the error messages, you need to look at the HA log file to see what is going on. Add log_level: debug to the iCloud3 parameters toget more info that will help and then restart HA. Let it run for a few minutes and then look at the HA Log file file any error messages related to iCloud3. Send it to [email protected] and I’ll look at it to see if I see anything. I may also need your entity registry and configuration files to see your exact setup and will let you know after I look at your log file.
Rather than continuing this discussion on this open forum, let’sTake it offline and create an issue on the iCloud3 GitHub repository here
Is it a known issue that there are multiple (2-3) entities per device, and that the entities are not updating each other? I believe is started happening about a month ago. Using HA 0.112.4 and icloud3 v.2.1.
If not I can create a github issue with more information, config and logs.
@rs443 I recently experienced the same thing and think it was caused by iOS app updates had created new device tracker entities. When v2.1 searches the entity registry to determine the iOS app device to monitor, it stops searching when it finds the first one. Since the iOS app a added a new one and is updating that one, iCloud3 ends up monitoring a device tracker entity that is no longer updated. I have changed iCloud3 to search the entity registry, select the last one and generate an error message so you can either delete the one no longer used or put the entity suffix on the track device parameter.
Download the v2.2.0 from the iCloud3 GitHub repository here.
V2.2.0 docs are here
@Alamapstieks The location of the stationary zone is set to 1/2km north of the home zone. In V2.2.0 , it’s 1km but you can change the distance north-south and east-west our set it’sgos coordinates. What you are seeing might be caused by gps wandering into the stationary base zone.
@garyk The iOS app will have your and Shannon’s stationary zone in the same location when you are together and issue enter triggers for both zones. iCloud3 is suppose to filter out stationary zone triggers for another device and not set up a stationary zone for another regular zones position. The iOS app has the stationary zones gps location and I have never figured out when it updates the zone location. Also, if you have the phone in more than 1 zone, I i think it is suppose to have it in the closest smaller zone and if it’s the same or really close, who knows whichOne it will pick.
Check the gps on the phones and on HA zone and the home zone gps and see if they are the same. Also, look at the map and see if the zones overlap.
IC3 filters out most of the zone jitter, but falls prey to an occasional Away or Stationary designation. I’m hoping this will fade away after a couple weeks like last time. Until then, it’s pretty much unusable for automation.
Just to make sure we are on the same page. I am running within a docker on Synology. I placed icloud3-event-log-card.js within /local/www/custom_cards.
On HA>Configuration>Lovelace Dashboard>Resources (Advanced Mode has to be selected to see this)>Add button>URL is local/icloud3-event-log-card.js.
Then on my overview dashboard, I selected manual card and pasted that above code.
I did multiple things when it suddenly worked but when I started to eliminate changes this is what stuck. As soon tried to remove the card file from resources, my card on the dashboard went blank.
FYI - iCloud3 calculates the distance between two locations using the distance routines that are part of HA. I noticed yesterday that the latest version of the iOS app is sending Region Enter triggers from a point that iCloud3 calculates is still outside of the zone. ICloud3 reacts to the trigger and but keeps the device in an away state since it calculates the distance as greater than the zone’s radius.
For example, my Home zone has a radius of 70m but the calculated distance from the iOS app gps location was 76m. The iOS app said I was home but iCloud3 said I was still away.
The iOS app has been updated several times lately with new zone entry analysis routines and may be using a different distance calculation or sending the trigger when it gets close to the zone but not yet in it. Since iCloud3 processes a trigger only one time, this may be another reason of iOS app/iCloud3 zone differences.
An update to handle this will be in the next release candidate (#10). The Event Log also gets the ability to issue actions (iCloud3 service calls) that let you restart, pause polling, resume polling, relocate the devices, turn on detailed logging, etc.
More info on the iOS app new behavior for zones less than 100m can be found here
yes @CommittotheIndian. See screenshot. But when I add a manual card with what you suggested I still don’t get the log viewer. I am doing this entirely in the UI and have been having same issues as you.
Would this cause a delay in updating locations? I was out of state and just got home but stopped at a zone on the way. I didn’t check what time I entered or exited that zone but I am currently sitting in my home zone as I type this and iC3 has not updated to realize I’m home. It still shows me at the last zone. I even tried to send my location via the HA (hard press) app.
If this is an issue, it is currently unusable for automations.
The only thing I can think of is to try putting the resources definition in the configuration.yaml file rather than adding it using the dashboard to see what happens. Mine has the following:
Take out the mode: yaml. I left it in so you could see exactly what mine looks like. Then use the UI to add the card to an existing view. My system is set up using Hassio, or whatever they are now calling it, and you mentioned yours is a manual setup using docker on Synology. I’m not familiar with those but could that be part of the problem. Do you have any other manual cards set up? You might want to set one up and see if that works. If it does, then go into edit mode, change the names and see if the Event Log card loads. If not, than the problem is something else on your system.
About the zone issue. Have you checked the iOS app Event Log to see if it sent Exit triggers and to see what Zone it has you in. Also check the HA >Development Tools >States to see the device_tracker states for the iOS app entity and track_devices entity.
Edit: I just saw a post on another forum about a guy having problems typing a space in developer tools trying to send a push message to his phone. The interesting quote is:
Which browser are you using and have you tried using another one?
Browser/platform compatibility may be an issue. For example, there are parts of the Lovelace UI that are completely unusable for me with Firefox on Android (notably the Template Editor and the Lovelace UI editor in text mode). I have used the Chromium based version of Edge (unofficially called “Edgium”) on Windows and have not encountered the problem you described. I’ll have to try it again and see if it’s a new problem.
Could your issues be browser related? Have you been clearing the browser cache and then hitting the reload at least 3 times to refresh the page?
This morning I left my home zone and drove to my work zone. These 2 zones are about 30mins or 20 miles apart. HA (iC3 and iOS entities) showed me at home until I entered the work zone. Once I entered the work zone, both showed the work zone.
I can not see the event log card on my phone but checking the event log under discovery tools, there doesn’t appear to be any exit/entry triggers, but it’s much harder to read this info.
While checking this info I was away from the work zone (left about 10mins before I checked). It showed me not_home and work zone was the last zone. It also said it was triggered 50secs earlier. I will try to monitor throughout the day as I work away from the work zone but should enter it multiple times through the day.
@CommittotheIndian
Zone enter/exit triggers are generated by the iOS app. If you don’t see them in the log, they may not be generated byThe iOS app or iCloud3 is not monitoring the device tracker entity The iOS app is updating. Look under Developer Tools >States to see iOS app entity Changes. Turn on all notifications in the iOS app so you get a notification when it issues triggers. App configuration >Notifications. Scroll down. Turn on Enter/Exit Zone notifications, significant update and Background Fetch.