Home Assistant release with the issue:
0.95.4
Last working Home Assistant release (if known):
0.94.3
Operating environment (Hass.io/Docker/Windows/etc.):
hass.io
Component/platform:
device_tracker.unifi
Description of problem:
Unifi component reports as not working for .95 upgrade:
[14:24:09] INFO: Installing Home Assistant: latest...
[14:24:09] INFO: Please be patient, this might take a few minutes...
[14:24:55] INFO: Installed Home Assistant 0.95.4
[14:24:55] INFO: Don't worry, this temporary installation is not overwriting your current one.
[14:24:55] INFO: Making a copy of your configuration for checking...
[14:25:03] INFO: Checking your configuration against this version...
[14:26:50] ERROR: The configuration check did not pass!
[14:26:50] ERROR: See the output below for more details.
INFO:homeassistant.util.package:Attempting install of colorlog==4.0.2
Testing configuration at /tmp/config
INFO:homeassistant.util.package:Attempting install of zeroconf==0.23.0
INFO:homeassistant.util.package:Attempting install of pyhusmow==0.1.1
INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.7.0
INFO:homeassistant.util.package:Attempting install of netdisco==2.6.0
INFO:homeassistant.util.package:Attempting install of hass-nabucasa==0.15
INFO:homeassistant.util.package:Attempting install of python-nest==4.1.0
INFO:homeassistant.util.package:Attempting install of PyNaCl==1.3.0
INFO:homeassistant.util.package:Attempting install of py-august==0.7.0
INFO:homeassistant.util.package:Attempting install of mutagen==1.42.0
INFO:homeassistant.util.package:Attempting install of aiofiles==0.4.0
INFO:homeassistant.util.package:Attempting install of backoff==1.8.0
INFO:homeassistant.util.package:Attempting install of packaging==19.0
INFO:homeassistant.util.package:Attempting install of distro==1.4.0
INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.3.3
Failed config
General Errors:
- Platform not found: device_tracker.unifi
Successful config (partial)
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
device_tracker:
- platform: unifi
host: 192.168.1.13
username: readonly
password: password
verify_ssl: false
consider_home: 60
new_device_defaults:
track_new_devices: False
Traceback (if applicable):
Additional information:
This issue was also reported by others however i didn't see any issue logged. Please let me know what other info is needed.
Hey there @kane610, mind taking a look at this issue as its been labeled with a integration (unifi) you are listed as a codeowner for? Thanks!
_This is a automatic comment generated by codeowners-mention to help ensure issues and pull requests are seen by the right people._
Have you tried disabling it during upgrade?
Same issue on Hassbian with 0.95.4 on Python 3.7.3.
"Check config" gives:
Configuration validation
Validate your configuration if you recently made some changes to your configuration and want to make sure that it is all valid
Configuration invalid
Platform not found: device_tracker.unifi
EDIT 03-07-2019:
Just reverted back to 0.94.4 --> issue is gone.
I've reproduced this on a clean install. Weird it doesn't happen on my dev environment.
Try stopping Hass and then starting it to see if that works. Seems to be verifying the configuration that breaks
I'm experiencing the same issue. It's hit and miss. Sometimes it integrates, sometimes it doesn't.
On an clean install with nothing else, yes it loads no problem.
As soon as you put into production with the rest of components it starts acting up.
Thinking that the Synology sensor in 0.95.x is a little flaky. I have never received a platform not found error, but having issues getting it connect to UniFi at all now. Refer https://community.home-assistant.io/t/unable-to-connect-to-unifi-controller-5-10-25-using-ha-0-95-x for the full details.
I have the same issuse as above. Unifi component was ok on 0.94.3, now is broken:
2019-07-05 23:22:01 ERROR (MainThread) [homeassistant.components.unifi] Error connecting to the UniFi controller at [IPAddressRedacted]
2019-07-05 23:22:01 ERROR (MainThread) [homeassistant.components.unifi.device_tracker] Failed to connect to Unifi:
2019-07-05 23:22:01 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy
@michalterbert. Try configuring the UniFi integration through the Configuration/Integrations menu. Leave your sensors there - configure both.
I did that under the direction of one of the code owners of the UniFi integration (not sure if it was you, @Kane610 under another user id in the HA community forums), and it seems to have resolved the connection issues as far as I can tell.
I had the same issue - I confirm that adding it through the Configuration/Integrations menu solves the issue.
I had the same issue - I confirm that adding it through the Configuration/Integrations menu solves the issue.
Only once I did this did the log say it was installing requirements. Not sure if that is a manifest parsing bug, or another clue.
The Integration page workaround addresses the Unifi component however if I read the documentation correctly the device tracker part is not covered in the unifi component configured through the integrations page.
For the device tracker you can use the workaround of disabling the config and running the upgrade without the unifi device tracker enabled. Once upgraded to 95.x you can re-enable the unifi device tracker and everything seems to be working.
What do those who already upgraded and don't have a backup do?
@alterego-SWI you should be able to just disable the device tracker config part. Then the system should boot without issue. Once done you can re-enable. Mine upgraded fine without the config in there at time of upgrade after I could just re-enable and everything worked fine.
Most helpful comment
I had the same issue - I confirm that adding it through the Configuration/Integrations menu solves the issue.