Closed gcobb321 closed 1 year ago
@gcobb321 the HACS method doesn't seem to be broadcasting updates
With beta 17 I thought maybe I had installed wrong, so I removed everything and started from scratch.
With the release of Beta18 I still haven't received an update is available from HACS. Definitely have the right version installed
@kingy444 I originally uploaded the release as icloud3_v3-beta-18c.zip. The HACS config file has a reference to icloud3.zip. I have changed the file name. Try again and let me know if that worked.
Hi Gary,
Testing this version and all working well - I have a suggestion for a specific scenario.
We use your tool to track vehicle iPads for a volunter emergency services fleet. This in-turn gives us vehicle tracking (Awesome!). As a result, our iPads are always plugged into charge, as they are used for mapping etc in the vehicle.
What I would love to see is the option to essentially overwrite the polling/update times with the shortest possible (which I think is 15 seconds?) as I need to actively see where the fleet is, and data/battery penalties dont't eixist for this situation.
In v2.4 I hacked my way towards this by altering the core files, but a clean option would be much preferable.
@kingy444
I originally uploaded the release as icloud3_v3-beta-18c.zip. The HACS config file has a reference to icloud3.zip. I have changed the file name. Try again and let me know if that worked.
Didn't pick it up after a couple hours, but doing a redownload
from the hacs menu let me choose beta18-c
Perhaps that's a local caching of the HACS manifest ? Hopefully works next time 😎
What I would love to see is the option to essentially overwrite the polling/update times with the shortest possible (which I think is 15 seconds?) as I need to actively see where the fleet is, and data/battery penalties dont't eixist for this situation.
Obviously Gary has the say here, just my opinion. I personally think that putting that in the UI could result in people complaining their devices are draining. Even with a warning, people don't read.
I would suspect you could possible achieve the same by adding something like the below to your configuration.yaml (not exactly as I don't recall the exact name etc) Note I completely made up the polling interval as I don't know what it's called, but I know you can override internal HA integrations with this customise code format
Again, hoping Gary knows what those equivalent values may be
customize:
entity_name:
should_poll: $true
Polling_interval: 15
@SimoHDK One of the options of the iCloud3 Actions Service Call does exactly what you want. It lets you issue a locate request for all devices or a selected device right now, in 30-secs, 1-min or are any other interval you want. Use it in an HA Automation that fires every minute up and you should be good. I think 15-secs would probably be too short and Apple wouldn’t wouldn’t be able to keep up, leading to a lot of old location retries. But try it abcs see what happens.
See here in the iCloud3 docs for more info and some examples
@SimoHDK One of the options of the iCloud3 Actions Service Call does exactly what you want. It lets you issue a locate request for all devices or a selected device right now, in 30-secs, 1-min or are any other interval you want. Use it in an HA Automation that fires every minute up and you should be good. I think 15-secs would probably be too short and Apple wouldn’t wouldn’t be able to keep up, leading to a lot of old location retries. But try it abcs see what happens.
This works perfectly! I ended up setting up as follows, opting for 20-secs which seems to work just fine.
alias: iCloud 20-Sec description: "" trigger:
18d seems to have some regressions. Probably not affected if you already went through the config_flow, but for those who haven't and are just trying for the first time it currently does not work.
See 8e62af9159ca953aa7275a658ccf14b008f654d7 for specifics, looks like set_icloud_username_password and some other potentially unintended changes made their way in there
@zimmra What problems are you having? The removal of the FmF data source, if that is what you are referring to, we’re intentional since it has been removed by Apple. I had not done a fresh install after the update and will check it out to make sure.
@zimmra
What problems are you having? The removal of the FmF data source, if that is what you are referring to, we’re intentional since it has been removed by Apple. I had not done a fresh install after the update and will check it out to make sure.
Take a look in the commit I linked above
It reintroduces start_ic3.set_username_password which no longer exists in start_ic3.py
When trying to add the integration for the first time, it throws the error below (copy/pasted from another issue, hence the older dates, but the error thrown is identical)
2023-06-15 21:33:03.880 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 149, in post
return await super().post(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
result = await self._flow_mgr.async_init(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 845, in async_init
flow, result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 873, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/icloud3/config_flow.py", line 495, in async_step_user
start_ic3.set_icloud_username_password()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'custom_components.icloud3.support.start_ic3' has no attribute 'set_icloud_username_password'
@biggeeus @confusedsecuritydudes @chupacabra71 @chr04213 @criticallimit @daneboom @denac @derekoharrow @diothar @DerDon1302 @Exit2Studios @freshairr @gekberlin @garyak @freekode @FredWst @filikun @hvddrift @hellotomtom @ihf1 @JtwoA @HA_n00b @J-Fartz @joselito1 @japyjaap @kalkocz @kamkilt @kingy444 @lukkigi @marceloaf @MarkGardiner @marting @mobiledude @myMartek @morrisonpeter @Nuuki9 @pauly7300 @poudenes @polskikrol @rdstodda @Snuffy2 @spamsal @Seger85 @scotty1395 @sj3fk3 @stevekuchta @townsmcp @tm24fan8 @t077584 @u20p17 @umrath
And sorry if I missed you,
Update Notes
There are several important items in this release:
The full list with more details is below.
Important Links
Download and Install - Go to the iCloud3 Releases page here. Scroll down past the notes, then select Assets, then select icloud3-beta-##.zip. Download the zip file and unzip it into the /config/custom_components/icloud3 directory. Then restart HA. Installing using HACS - iCloud3 is not available on HACS unless you have set it up as a custom repository. See here for instructions on how to do that and then install it. If you just go to HACS and do the installation, you will be installing v2.4.7, not v3. Migrating from v2.4._ - See here for instructions on migrating from from an older version. iCloud3 v3 Documentation - It is still in process, does not include the latest updates to iCloud3 and can be found here Change Logs - See the notes below:
Change Log, Beta 18c - 6/17/2023