Closed iditude closed 6 years ago
@iditude Could you provide the log for all [pyhap. ... ]
and [homeassistant.components.homekit]
entries? Before you do, try deleting the .homekit.state
file in the config folder first.
Hello,
I'm not sure how to provide more info. I was in debug log for both pyhap and homekit and the log above is exactly in the case you described (deleting .homekit.state before). That's actually why you see the code
2018-03-03 13:31:16 INFO (Thread-16) [pyhap.accessory_driver] Storing Accessory state in '/home/pi/.homeassistant/.homekit.state'
Here is my logging config. Happy to change if another setting can bring more info
logger: default: critical logs: homeassistant.components.homekit: debug pyhap.accessory_driver: debug
Thanks
Do you have any more logs for [pyhap.hap_server]
?
Hello,
I've updated to 0.65.1 and tried again but still facing the same issue. Here are the logs including Hap-server. I also deleted .homekit.state to start fresh.
We can see pairing seems to be going very well on Hass side, but the phone simply hangs there until it times out.
Thanks
2018-03-10 13:27:55 DEBUG (MainThread) [homeassistant.components.homekit] Begin setup HomeKit
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Import type files.
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Start adding accessories.
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "switch.sdb_vmc" as "Switch"
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "switch.prise_alexandre" as "Switch"
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "climate.heater" as "Thermostat"
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "sensor.weather_temperature" as "TemperatureSensor"
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "switch.alloff" as "Switch"
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "switch.wc_vmc" as "Switch"
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "remote.rigaud" as "Switch"
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "sensor.owm_temperature" as "TemperatureSensor"
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "switch.prise_charles" as "Switch"
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "sensor.weather_dewpoint_temperature" as "TemperatureSensor"
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Add "sensor.temperature_cuisine" as "TemperatureSensor"
2018-03-10 13:28:14 INFO (Thread-13) [pyhap.accessory_driver] Loading Accessory state from `/home/pi/.homeassistant/.homekit.state`
2018-03-10 13:28:14 DEBUG (Thread-13) [homeassistant.components.homekit] Driver started
2018-03-10 13:28:14 INFO (Thread-13) [pyhap.accessory_driver] Starting accessory 'Home Assistant' on address '192.168.253.5', port '51826'.
2018-03-10 13:28:14 DEBUG (Thread-37) [homeassistant.components.homekit.switches] switch.sdb_vmc: Set current state to False
2018-03-10 13:28:14 DEBUG (Thread-39) [homeassistant.components.homekit.switches] switch.prise_alexandre: Set current state to True
2018-03-10 13:28:14 DEBUG (Thread-42) [homeassistant.components.homekit.sensors] sensor.weather_temperature: Current temperature set to 10°C
2018-03-10 13:28:14 DEBUG (Thread-43) [homeassistant.components.homekit.switches] switch.alloff: Set current state to False
2018-03-10 13:28:14 DEBUG (Thread-44) [homeassistant.components.homekit.switches] switch.wc_vmc: Set current state to False
2018-03-10 13:28:14 DEBUG (Thread-45) [homeassistant.components.homekit.switches] remote.rigaud: Set current state to True
2018-03-10 13:28:14 DEBUG (Thread-46) [homeassistant.components.homekit.sensors] sensor.owm_temperature: Current temperature set to 13°C
2018-03-10 13:28:14 DEBUG (Thread-47) [homeassistant.components.homekit.switches] switch.prise_charles: Set current state to False
2018-03-10 13:28:14 DEBUG (Thread-48) [homeassistant.components.homekit.sensors] sensor.weather_dewpoint_temperature: Current temperature set to 9°C
2018-03-10 13:28:14 DEBUG (Thread-49) [homeassistant.components.homekit.sensors] sensor.temperature_cuisine: Current temperature set to 22°C
2018-03-10 13:29:21 INFO (Thread-40) [pyhap.hap_server] Got connection with ('192.168.253.156', 57137).
2018-03-10 13:29:21 DEBUG (Thread-50) [pyhap.hap_server] Request POST from address '('192.168.253.156', 57137)' for path '/pair-setup'.
2018-03-10 13:29:21 DEBUG (Thread-50) [pyhap.hap_server] Pairing [1/5]
2018-03-10 13:29:22 INFO (Thread-50) [pyhap.hap_server] 192.168.253.156 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-10 13:29:23 DEBUG (Thread-50) [pyhap.hap_server] Request POST from address '('192.168.253.156', 57137)' for path '/pair-setup'.
2018-03-10 13:29:23 DEBUG (Thread-50) [pyhap.hap_server] Pairing [2/5]
2018-03-10 13:29:25 INFO (Thread-50) [pyhap.hap_server] 192.168.253.156 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-10 13:29:25 DEBUG (Thread-50) [pyhap.hap_server] Request POST from address '('192.168.253.156', 57137)' for path '/pair-setup'.
2018-03-10 13:29:25 DEBUG (Thread-50) [pyhap.hap_server] Pairing [3/5]
2018-03-10 13:29:25 DEBUG (Thread-50) [pyhap.hap_server] Pairing [4/5]
2018-03-10 13:29:25 DEBUG (Thread-50) [pyhap.hap_server] Pairing [5/5]
2018-03-10 13:29:25 INFO (Thread-50) [pyhap.accessory_driver] Paired with ae34e34e-aa37-4e8c-9e5e-f6e23b016293.
Do you get any of the following log after 2018-03-10 13:29:25 INFO (Thread-50) [pyhap.accessory_driver] Paired with ae34e34e-aa37-4e8c-9e5e-f6e23b016293.
?
2018-03-10 14:48:13 INFO (Thread-16) [pyhap.hap_server] 192.168.178.74 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-10 14:48:13 INFO (Thread-15) [pyhap.hap_server] Got connection with ('192.168.178.74', 59410).
2018-03-10 14:48:13 DEBUG (Thread-17) [pyhap.hap_server] Request POST from address '('192.168.178.74', 59410)' for path '/pair-verify'.
2018-03-10 14:48:13 DEBUG (Thread-17) [pyhap.hap_server] Pair verify [1/2].
2018-03-10 14:48:13 INFO (Thread-17) [pyhap.hap_server] 192.168.178.74 - "POST /pair-verify HTTP/1.1" 200 -
2018-03-10 14:48:13 DEBUG (Thread-17) [pyhap.hap_server] Request POST from address '('192.168.178.74', 59410)' for path '/pair-verify'.
2018-03-10 14:48:13 DEBUG (Thread-17) [pyhap.hap_server] Pair verify [2/2]
2018-03-10 14:48:13 DEBUG (Thread-17) [pyhap.hap_server] Pair verify with client '('192.168.178.74', 59410)' completed. Switching to encrypted transport.
2018-03-10 14:48:13 INFO (Thread-17) [pyhap.hap_server] 192.168.178.74 - "POST /pair-verify HTTP/1.1" 200 -
2018-03-10 14:48:13 DEBUG (Thread-17) [pyhap.hap_server] Request GET from address '('192.168.178.74', 59410)' for path '/accessories'.
2018-03-10 14:48:13 INFO (Thread-17) [pyhap.hap_server] 192.168.178.74 - "GET /accessories HTTP/1.1" 200 -
2018-03-10 14:48:16 DEBUG (Thread-17) [pyhap.hap_server] Request GET from address '('192.168.178.74', 59410)' for path '/characteristics?id=2.8'.
2018-03-10 14:48:16 INFO (Thread-17) [pyhap.hap_server] 192.168.178.74 - "GET /characteristics?id=2.8 HTTP/1.1" 207 -
2018-03-10 14:48:17 DEBUG (Thread-17) [pyhap.hap_server] Request PUT from address '('192.168.178.74', 59410)' for path '/characteristics'.
2018-03-10 14:48:17 INFO (Thread-17) [pyhap.hap_server] 192.168.178.74 - "PUT /characteristics HTTP/1.1" 207 -
2018-03-10 14:48:17 DEBUG (Thread-17) [pyhap.hap_server] Request PUT from address '('192.168.178.74', 59410)' for path '/characteristics'.
2018-03-10 14:48:17 INFO (Thread-17) [pyhap.hap_server] 192.168.178.74 - "PUT /characteristics HTTP/1.1" 207 -
2018-03-10 14:48:19 DEBUG (Thread-17) [pyhap.hap_server] Request PUT from address '('192.168.178.74', 59410)' for path '/characteristics'.
2018-03-10 14:48:19 INFO (Thread-17) [pyhap.hap_server] 192.168.178.74 - "PUT /characteristics HTTP/1.1" 207 -
2018-03-10 14:48:21 DEBUG (Thread-17) [pyhap.hap_server] Request GET from address '('192.168.178.74', 59410)' for path '/characteristics?id=2.8'.
2018-03-10 14:48:21 INFO (Thread-17) [pyhap.hap_server] 192.168.178.74 - "GET /characteristics?id=2.8 HTTP/1.1" 207 -
2018-03-10 14:48:21 DEBUG (Thread-17) [pyhap.hap_server] Request PUT from address '('192.168.178.74', 59410)' for path '/characteristics'.
2018-03-10 14:48:21 INFO (Thread-17) [pyhap.hap_server] 192.168.178.74 - "PUT /characteristics HTTP/1.1" 207 -
Nope. Nothing after that. I can see the phone hanging (turning wheel) until it times out, but I have nothing in the log. Is there another component or deeper log than DEBUG?
Thanks
None that I know of, unfortunately. Since I can't reproduce the issue it is also quite difficult for me to help you. I have one more idea, if you are willing to spend some time with debugging it.
Before, please make sure you have the latest version of iOS installed. If you have an other Apple device to test. Try this first.
If nothing worked, my idea would be to figure out what is causing the issue. Therefore:
switch.sdb_vmc
, switch.prise_alexandre
, climate.heater
, sensor.weather_temperature
, switch.alloff
, switch.alloff
, switch.wc_vmc
, remote.rigaud
, sensor.owm_temperature
, switch.prise_charles
, sensor.weather_dewpoint_temperature
, sensor.temperature_cuisine
).homekit.state
and try pairing again. If that does work, the issue is with one of the components and/or their implementation for HomeKit.sensor
, then switch / remote
and last climate
). Always remove the bridge first, delete .homekit.state
, restart and try pairing again. If one component fails, leave it out for now and try the others.Thanks a lot for your support. I truly don't understand what's happening... I've first deactivated all sensors and got the same result.
I then figured I would try with one sensor only (open weather map temperature) but still no luck (completely fresh install, just adding one sensor and home kit. I get the exact same result.
2018-03-10 19:50:50 DEBUG (MainThread) [homeassistant.components.homekit] Begin setup HomeKit
2018-03-10 19:50:55 DEBUG (Thread-2) [homeassistant.components.homekit] Import type files.
2018-03-10 19:50:55 DEBUG (Thread-2) [homeassistant.components.homekit] Start adding accessories.
2018-03-10 19:50:55 DEBUG (Thread-2) [homeassistant.components.homekit] Add "sensor.owm_temperature" as "TemperatureSensor"
2018-03-10 19:50:55 INFO (Thread-2) [pyhap.accessory_driver] Storing Accessory state in `/home/pi/.homeassistant/.homekit.state`
2018-03-10 19:50:55 DEBUG (Thread-2) [homeassistant.components.homekit] Driver started
2018-03-10 19:50:55 INFO (Thread-2) [pyhap.accessory_driver] Starting accessory 'Home Assistant' on address '192.168.253.5', port '51826'.
2018-03-10 19:50:55 DEBUG (Thread-23) [homeassistant.components.homekit.sensors] sensor.owm_temperature: Current temperature set to 13°C
2018-03-10 19:51:13 INFO (Thread-25) [pyhap.hap_server] Got connection with ('192.168.253.156', 49444).
2018-03-10 19:51:13 DEBUG (Thread-39) [pyhap.hap_server] Request POST from address '('192.168.253.156', 49444)' for path '/pair-setup'.
2018-03-10 19:51:13 DEBUG (Thread-39) [pyhap.hap_server] Pairing [1/5]
2018-03-10 19:51:14 INFO (Thread-39) [pyhap.hap_server] 192.168.253.156 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-10 19:51:17 DEBUG (Thread-39) [pyhap.hap_server] Request POST from address '('192.168.253.156', 49444)' for path '/pair-setup'.
2018-03-10 19:51:17 DEBUG (Thread-39) [pyhap.hap_server] Pairing [2/5]
2018-03-10 19:51:18 INFO (Thread-39) [pyhap.hap_server] 192.168.253.156 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-10 19:51:18 DEBUG (Thread-39) [pyhap.hap_server] Request POST from address '('192.168.253.156', 49444)' for path '/pair-setup'.
2018-03-10 19:51:18 DEBUG (Thread-39) [pyhap.hap_server] Pairing [3/5]
2018-03-10 19:51:18 DEBUG (Thread-39) [pyhap.hap_server] Pairing [4/5]
2018-03-10 19:51:18 DEBUG (Thread-39) [pyhap.hap_server] Pairing [5/5]
2018-03-10 19:51:18 INFO (Thread-39) [pyhap.accessory_driver] Paired with ae34e34e-aa37-4e8c-9e5e-f6e23b016293.
Sensor Used
- platform: openweathermap
api_key: XXXXXXX
language: fr
forecast: 1
monitored_conditions:
- temperature
I've also tried with another iPhone (latest IOS version) and the problem is the same. I'm thinking this may be a problem with my setup (like a router not forwarding traffic). Do you know if we can force ports?
At this point, I'm really lost!
Are you by chance running homebridge
somewhere? Currently they use the same port, will be changed with #12997 You can change the port by adding port: [new port]
to the config https://home-assistant.io/components/homekit/#port
Thanks for the info. I tried different ports without luck (9000 and 51827). I am not using homebridge
as I wanted to stay away from additional layers and preferred a native component solution (which your implementation provides).
At this point I have no idea what to do.
Could you provide more information about the system/setup you're using?
Anything else that could be relevant
Ok so here it goes. I use:
Anything else?
That is quite close to what I'm running Hass on: Raspberry Pi 3, Hassbian Image.
Could you try it without the SSL
? Thats one thing I don't have setup.
If that still woun't work, could you try it with just homeassistant
and homekit
as config keys (no customize) to eliminate anything setup related?
Ok. I think something else is at play. I don't know why, but even the most basic configuration shows the same issue. I tried to remove the config folder and run Hass with the following config and I still can't pair:
homeassistant: homekit: pincode: '123-45-678'
It's probably something to do with a lib or dependency...
Before we try anything else, please try it without pincode: '123-45-678'
. It is the default already.
If you have a second SD Card, could you try my setup: https://github.com/cdce8p/home-assistant-projects/tree/dev/docs/setup#2-home-assistant-setup (you can probably skip 5 and 6 though)
I have exactly the same issue. Time out on iOS during pairing. RPi3 with Raspbian Stretch, HA 0.65.3 running in Virtual Env Python 3.6.3. Pin-code: 123-45-678 On HA 0.64.3, the pairing was working properly.
2018-03-12 17:51:27 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Import type files.
2018-03-12 17:51:27 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Start adding accessories.
2018-03-12 17:51:27 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "switch.playstation" as "Switch"
2018-03-12 17:51:27 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "switch.denon" as "Switch"
2018-03-12 17:51:27 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "switch.light_leds_przedpokoj" as "Switch"
2018-03-12 17:51:27 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "switch.light_lamp_salon" as "Switch"
2018-03-12 17:51:27 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "switch.stacjonarny" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "switch.flux" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "switch.sonoff_single" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "switch.sonoff_triple" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.gaming_timer" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.harmony_command" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_indoor" as "TemperatureSensor"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_kuchnia" as "TemperatureSensor"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.heating_salon_kuchnia_night" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.salon_light_scene_turn_on" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.raspberry_cpu_temp" as "TemperatureSensor"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.heating_night" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.heating_airing" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.edyta_far_from_home" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.guests" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.maciek_far_from_home" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.away_mode" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.antresola_lamp_motion_on" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.salon_lamp_motion_on" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.sypialnia_lamp_motion_on" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.antek_lamp_motion_on" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.heating_season" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "input_boolean.antek_lamp_night" as "Switch"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_salon" as "TemperatureSensor"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_sypialnia" as "TemperatureSensor"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_antek" as "TemperatureSensor"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_lazienka" as "TemperatureSensor"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_antresola" as "TemperatureSensor"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_gabinet" as "TemperatureSensor"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_goscinny" as "TemperatureSensor"
2018-03-12 17:51:28 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_pracownia" as "TemperatureSensor"
2018-03-12 17:51:29 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "sensor.temperature_outdoor" as "TemperatureSensor"
2018-03-12 17:51:29 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "remote.salon" as "Switch"
2018-03-12 17:51:29 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "climate.thermostat_salon" as "Thermostat"
2018-03-12 17:51:29 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Add "climate.thermostat_antek" as "Thermostat"
2018-03-12 17:51:29 INFO (SyncWorker_6) [pyhap.accessory_driver] Loading Accessory state from `/home/homeassistant/.homeassistant/.homekit.state`
2018-03-12 17:51:29 DEBUG (SyncWorker_6) [homeassistant.components.homekit] Driver started
2018-03-12 17:51:29 INFO (SyncWorker_6) [pyhap.accessory_driver] Starting accessory 'Home Assistant' on address '192.168.2.20', port '51826'.
2018-03-12 17:51:29 DEBUG (Thread-7) [homeassistant.components.homekit.switches] switch.playstation: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-9) [homeassistant.components.homekit.switches] switch.denon: Set current state to True
2018-03-12 17:51:29 DEBUG (Thread-11) [homeassistant.components.homekit.switches] switch.light_leds_przedpokoj: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-12) [homeassistant.components.homekit.switches] switch.light_lamp_salon: Set current state to True
2018-03-12 17:51:29 DEBUG (Thread-13) [homeassistant.components.homekit.switches] switch.stacjonarny: Set current state to True
2018-03-12 17:51:29 DEBUG (Thread-14) [homeassistant.components.homekit.switches] switch.flux: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-15) [homeassistant.components.homekit.switches] switch.sonoff_single: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-16) [homeassistant.components.homekit.switches] switch.sonoff_triple: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-17) [homeassistant.components.homekit.switches] input_boolean.gaming_timer: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-18) [homeassistant.components.homekit.switches] input_boolean.harmony_command: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-19) [homeassistant.components.homekit.sensors] sensor.temperature_indoor: Current temperature set to 22°C
2018-03-12 17:51:29 DEBUG (Thread-20) [homeassistant.components.homekit.sensors] sensor.temperature_kuchnia: Current temperature set to 22°C
2018-03-12 17:51:29 DEBUG (Thread-21) [homeassistant.components.homekit.switches] input_boolean.heating_salon_kuchnia_night: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-22) [homeassistant.components.homekit.switches] input_boolean.salon_light_scene_turn_on: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-23) [homeassistant.components.homekit.sensors] sensor.raspberry_cpu_temp: Current temperature set to 58°C
2018-03-12 17:51:29 DEBUG (Thread-24) [homeassistant.components.homekit.switches] input_boolean.heating_night: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-25) [homeassistant.components.homekit.switches] input_boolean.heating_airing: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-26) [homeassistant.components.homekit.switches] input_boolean.edyta_far_from_home: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-27) [homeassistant.components.homekit.switches] input_boolean.guests: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-28) [homeassistant.components.homekit.switches] input_boolean.maciek_far_from_home: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-29) [homeassistant.components.homekit.switches] input_boolean.away_mode: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-30) [homeassistant.components.homekit.switches] input_boolean.antresola_lamp_motion_on: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-31) [homeassistant.components.homekit.switches] input_boolean.salon_lamp_motion_on: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-32) [homeassistant.components.homekit.switches] input_boolean.sypialnia_lamp_motion_on: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-33) [homeassistant.components.homekit.switches] input_boolean.antek_lamp_motion_on: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-34) [homeassistant.components.homekit.switches] input_boolean.heating_season: Set current state to True
2018-03-12 17:51:29 DEBUG (Thread-35) [homeassistant.components.homekit.switches] input_boolean.antek_lamp_night: Set current state to False
2018-03-12 17:51:29 DEBUG (Thread-36) [homeassistant.components.homekit.sensors] sensor.temperature_salon: Current temperature set to 22°C
2018-03-12 17:51:29 DEBUG (Thread-37) [homeassistant.components.homekit.sensors] sensor.temperature_sypialnia: Current temperature set to 20°C
2018-03-12 17:51:29 DEBUG (Thread-38) [homeassistant.components.homekit.sensors] sensor.temperature_antek: Current temperature set to 21°C
2018-03-12 17:51:29 DEBUG (Thread-39) [homeassistant.components.homekit.sensors] sensor.temperature_lazienka: Current temperature set to 22°C
2018-03-12 17:51:29 DEBUG (Thread-40) [homeassistant.components.homekit.sensors] sensor.temperature_antresola: Current temperature set to 22°C
2018-03-12 17:51:29 DEBUG (Thread-41) [homeassistant.components.homekit.sensors] sensor.temperature_gabinet: Current temperature set to 22°C
2018-03-12 17:51:29 DEBUG (Thread-42) [homeassistant.components.homekit.sensors] sensor.temperature_goscinny: Current temperature set to 21°C
2018-03-12 17:51:29 DEBUG (Thread-43) [homeassistant.components.homekit.sensors] sensor.temperature_pracownia: Current temperature set to 22°C
2018-03-12 17:51:29 DEBUG (Thread-44) [homeassistant.components.homekit.sensors] sensor.temperature_outdoor: Current temperature set to 14°C
2018-03-12 17:51:29 DEBUG (Thread-45) [homeassistant.components.homekit.switches] remote.salon: Set current state to True
2018-03-12 17:51:35 DEBUG (SyncWorker_0) [homeassistant.components.homekit.switches] switch.light_lamp_salon: Set current state to False
2018-03-12 17:51:43 DEBUG (SyncWorker_17) [homeassistant.components.homekit.switches] input_boolean.antresola_lamp_motion_on: Set current state to True
2018-03-12 17:53:47 DEBUG (SyncWorker_5) [homeassistant.components.homekit.switches] input_boolean.antresola_lamp_motion_on: Set current state to False
2018-03-12 17:55:03 DEBUG (SyncWorker_4) [homeassistant.components.homekit.sensors] sensor.raspberry_cpu_temp: Current temperature set to 54°C
2018-03-12 17:58:08 DEBUG (SyncWorker_8) [homeassistant.components.homekit.sensors] sensor.temperature_outdoor: Current temperature set to 13°C
2018-03-12 17:58:09 DEBUG (SyncWorker_1) [homeassistant.components.homekit.switches] input_boolean.antresola_lamp_motion_on: Set current state to True
2018-03-12 17:59:00 DEBUG (SyncWorker_3) [homeassistant.components.homekit.switches] input_boolean.antek_lamp_motion_on: Set current state to True
2018-03-12 17:59:18 DEBUG (SyncWorker_2) [homeassistant.components.homekit.sensors] sensor.temperature_salon: Current temperature set to 22°C
2018-03-12 17:59:18 DEBUG (SyncWorker_12) [homeassistant.components.homekit.sensors] sensor.temperature_indoor: Current temperature set to 22°C
2018-03-12 17:59:18 DEBUG (SyncWorker_12) [homeassistant.components.homekit.sensors] sensor.temperature_kuchnia: Current temperature set to 22°C
2018-03-12 17:59:33 DEBUG (SyncWorker_12) [homeassistant.components.homekit.sensors] sensor.temperature_sypialnia: Current temperature set to 20°C
2018-03-12 17:59:33 DEBUG (SyncWorker_18) [homeassistant.components.homekit.sensors] sensor.temperature_indoor: Current temperature set to 22°C
2018-03-12 18:00:04 DEBUG (SyncWorker_7) [homeassistant.components.homekit.sensors] sensor.raspberry_cpu_temp: Current temperature set to 53°C
2018-03-12 18:00:12 DEBUG (SyncWorker_3) [homeassistant.components.homekit.switches] input_boolean.antresola_lamp_motion_on: Set current state to False
2018-03-12 18:00:17 DEBUG (SyncWorker_11) [homeassistant.components.homekit.switches] input_boolean.antresola_lamp_motion_on: Set current state to True
2018-03-12 18:00:20 DEBUG (SyncWorker_9) [homeassistant.components.homekit.switches] input_boolean.sypialnia_lamp_motion_on: Set current state to True
2018-03-12 18:00:59 DEBUG (SyncWorker_1) [homeassistant.components.homekit.switches] input_boolean.antek_lamp_motion_on: Set current state to False
2018-03-12 18:02:20 DEBUG (SyncWorker_15) [homeassistant.components.homekit.switches] input_boolean.sypialnia_lamp_motion_on: Set current state to False
2018-03-12 18:02:30 DEBUG (SyncWorker_1) [homeassistant.components.homekit.switches] input_boolean.antresola_lamp_motion_on: Set current state to False
2018-03-12 18:04:59 DEBUG (SyncWorker_17) [homeassistant.components.homekit.sensors] sensor.temperature_lazienka: Current temperature set to 22°C
2018-03-12 18:04:59 DEBUG (SyncWorker_6) [homeassistant.components.homekit.sensors] sensor.temperature_indoor: Current temperature set to 22°C
2018-03-12 18:05:05 DEBUG (SyncWorker_8) [homeassistant.components.homekit.sensors] sensor.raspberry_cpu_temp: Current temperature set to 54°C
2018-03-12 18:10:06 DEBUG (SyncWorker_9) [homeassistant.components.homekit.sensors] sensor.raspberry_cpu_temp: Current temperature set to 53°C
2018-03-12 18:12:31 INFO (Thread-49) [pyhap.accessory_driver] Paired with 50e27357-55de-4c6c-970a-b2cbf5174533.
2018-03-12 18:14:40 DEBUG (SyncWorker_9) [homeassistant.components.homekit.switches] input_boolean.antresola_lamp_motion_on: Set current state to True
2018-03-12 18:16:46 DEBUG (SyncWorker_5) [homeassistant.components.homekit.switches] input_boolean.antresola_lamp_motion_on: Set current state to False
@bieniu Could you try a basic config as well? Just:
homeassistant:
homekit:
There shouldn't have been any breaking changes between 0.64
and 0.65
, just additional component support and bugfixes have been added.
@cdce8p I removed the Z-Wave component from my configuration and there were no problems with the pair process. I have Z-Wave thermostats and switches in my system. After restoration of the Z-Wave component and system reboot, Homekit works, but Z-Wave thermostats and switches havn't appeared in the Home application.
@bieniu Z-Wave shouldn't be the issue here. Can you locate which thermostat or switch is causing the issue (https://home-assistant.io/docs/z-wave/installation/#ignored)?
@bieniu You might need to repair due to another issue #13105
@cdce8p When I ignored all my Z-Wave thermostats (Danfoss 014G0013), the pairing was successful.
Earlier this didn't appear, now in the log every few minutes I have:
Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/homekit/thermostats.py", line 161, in update_thermostat
self.char_current_temp.set_value(current_temp)
File "/srv/homeassistant/lib/python3.6/site-packages/pyhap/characteristic.py", line 155, in set_value
self.notify()
File "/srv/homeassistant/lib/python3.6/site-packages/pyhap/characteristic.py", line 193, in notify
"value": self.get_hap_value(),
File "/srv/homeassistant/lib/python3.6/site-packages/pyhap/characteristic.py", line 172, in get_hap_value
val = min(self.properties["maxValue"], val)
TypeError: '<' not supported between instances of 'str' and 'int'
@bieniu Thanks that really helped a lot. Would you feel comfortable trying if my fix worked?
If so, please open the file /srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/homekit/thermostats.py
and replace the if
statements in the flowing lines:
if isinstance(current_temp, (int, float)):
if isinstance(target_temp, (int, float)):
Save the file and restart Home Assistant.
Please try all functions of the device and stop Home Assistant afterward. Only then will the error be logged. Unfortunately I can't test it myself since I don't have any climate
device.
@cdce8p The fix works! I have paired HA with the Home application without problems. Thermostats have appeared in the application. Unfortunately, they can't be controlled from the application. These thermostats don't have off/auto/heat modes, in HA their states is always "unknown" and they work completely autonomously. The user can only change target_temperature. I think that this is the reason why it's not controllable from Home app. Thank you for your help.
@bieniu Good to here, that it helped. I will include the fix with the next release so that you don't have do change it manually every time. Can you send me a screen shot of the entry in the states panel for the thermostat (especially with the state and attributes listed)? If I know these infos, I might be able to tell you if there are other options.
@cdce8p There is a screenshot with thermostat attributes: Some peoples use scripts to update current_temperature from external sensor and change thermostat state. In that case thermostat's attributes look like this:
@bieniu current_temperature: null
was the problem, since Home Assistant tried to set a string for a float value. You should however be able to set the target temperature
in the Home app.
@iditude Any progress with your problem?
Hello,
I just tested 0.65.5 and still face the same issue. I ordered an additional SD card to test your solution / setup.
I'll update on the issue.
Thanks
Still no luck with your setup. I don't know what's up but seems related to my setup somehow. The only difference is that I don't use wifi but ethernet on the Pi.
I get the exact same error with your configuration in its most basic form
homeassistant: homekit: logger: default: critical logs: homeassistant.components.homekit: debug pyhap.accessory_driver: debug pyhap.hap_server: debug
I'm running out of options :-(
Actually just discovered a bunch of new errors with zeroconf (which I believe drives homekit)?
2018-03-17 12:56:15 ERROR (MainThread) [homeassistant.setup] Error during setup of component zeroconf
Traceback (most recent call last):
File "/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
component.setup, hass, processed_config)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/components/zeroconf.py", line 54, in setup
zeroconf.register_service(info)
File "/home/pi/homeassistant/lib/python3.5/site-packages/zeroconf.py", line 1754, in register_service
self.check_service(info, allow_name_change)
File "/home/pi/homeassistant/lib/python3.5/site-packages/zeroconf.py", line 1870, in check_service
raise NonUniqueNameException
zeroconf.NonUniqueNameException
2018-03-17 12:56:15 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of ios. Setup failed for dependencies: zeroconf
2018-03-17 12:56:15 ERROR (MainThread) [homeassistant.setup] Setup failed for ios: Could not setup all dependencies.
Maybe that is related?
EDIT: a reboot of everything solved this.
I also tried to upgrade to dev (0.66) with the new implementation of Homekit (dynamic pin, port correction, etc) and the problem remains.
You can try to change pincode to some random number that should not be like 555-55-55 or 456-78-901. In case it will not help you can try to remove all other accessories from homekit on iOS device and add only homebridge. You need to remove .homekit.state
file and restart home-assistant before each try.
I might be having the same or similar issue. If I delete the .homekit.state file, I can see it show in the Home App... when I try to add Home Assistant however it just spins forever and ever.
Watching the log shows nothing. The .homekit.state file is recreated.
Any way to get more debug?
@raccettura Try follow the description here: https://github.com/home-assistant/home-assistant.github.io/blob/next/source/_components/homekit.markdown#-linkable_title-error-reporting- It will be part of the official HomeKit documentation with 0.66. If you still have issues afterwards, please open a new issue an tag me (this one is already quite long).
@iditude I only encountered this problem ones, when I was first started with the development of the component. However it was quickely resolved by an iOS Upgrade. Since you mentioned that your devices where up to date, I didn't investigated it any further.
Ethernet shouldn't be an issue and the zeroconf
exception seams to be related to the ios component, although HomeKit uses it as well.
I honestly don't know how I can help you any more. There are bugs in the component (I know about) an might cause issues, but not if you use the barebone config with no other components.
@condemil suggestions might sound like an idea, but I can't garanty that it will solve the issue. Otherwise I would suggest googleing for reasons an accessory failed to be added to HomeKit and go from there.
Nevertheless if there is anything I still can help you with, let me know (also if you find a solution).
@cdce8p Tried that tonight. Nothing interesting in the log (just sensor values being set, no errors/warnings/exceptions). Add Accessory page never advances.
@raccettura Have you tried the barebone config I suggested to iditude
above?
Thanks to all. There isn't much we can do to further deep dive this issue.
I'll keep testing and monitoring as new functionalities come along with Homekit. Maybe another issue will fix the underlying root cause of this one.
Not sure in this case if we keep this open.
Cheers
@iditude Could you try apt list --installed | grep 'libavahi*'
?
It might be that the dependencies aren't installed jet.
Or try following: https://github.com/ikalchev/HAP-python#installation-
Thanks for your continued support. Much appreciated.
So this was a good call (still not working, but things are evolving). Out of the box, raspian had this installed:
libavahi-client3/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-common-data/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-common3/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-core7/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-glib1/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-gobject0/stable,now 0.6.32-2 armhf [installé, automatique]
After running sudo apt-get install libavahi-compat-libdnssd-dev
I moved to this
libavahi-client-dev/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-client3/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-common-data/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-common-dev/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-common3/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-compat-libdnssd-dev/stable,now 0.6.32-2 armhf [installé]
libavahi-compat-libdnssd1/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-core7/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-glib1/stable,now 0.6.32-2 armhf [installé, automatique]
libavahi-gobject0/stable,now 0.6.32-2 armhf [installé, automatique]
I also followed your link and added Hap-Python with sudo pip3 install HAP-python
Note for readers in case you encounter issues. I had errors during this install that were solved by running sudo apt-get install python-virtualenv
and then rerunning Hap-pyhton install command.
Still no luck in pairing, but I get a lot of new errors:
2018-03-24 12:19:23 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 222, in async_update_ha_state
attr = self.state_attributes or {}
File "/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/__init__.py", line 494, in state_attributes
value = getattr(self, prop)
File "/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/hue.py", line 248, in hs_color
self.light.state.get('hue') / 65535 * 360,
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
Does that provide some help?
I wasn't sure if that would change anything either, since I didn't remember installing anything. Just read the install docs a few days ago and though that might change something.
sudo pip3 install HAP-python
shouldn't be necessary since this package is already installed by Home Assistant.
The error seems to be related to the hue lights
component not HomeKit. Which version of HA are you running? The latest is 0.66.0b0. Would you mind trying the bare bone config ones more?
Hello,
I tried the latest dev version 0.67.0.dev0.
Still no luck. I tried the barebone configuration and put everything in debug and got this. It shows successful pairing and even suppression of the UI notification for the pairing code.
2018-03-24 15:12:52 INFO (Thread-5) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2018-03-24 15:12:52 DEBUG (Thread-5) [homeassistant.components.homekit] Driver start
2018-03-24 15:12:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service_data=title=HomeKit Setup, message=To setup Home Assistant in the Home App, enter the following code:
### 708-71-066, notification_id=4663548, service_call_id=1976405872-1, service=create>
2018-03-24 15:12:52 INFO (Thread-5) [pyhap.accessory_driver] Starting accessory 'Home Assistant' on address '192.168.253.5', port '51827'.
2018-03-24 15:12:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=persistent_notification.4663548, new_state=<state persistent_notification.4663548=notifying; title=HomeKit Setup, message=To setup Home Assistant in the Home App, enter the following code:
### 708-71-066 @ 2018-03-24T15:12:52.687463+01:00>>
2018-03-24 15:12:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1976405872-1>
2018-03-24 15:13:54 INFO (Thread-11) [pyhap.hap_server] Got connection with ('192.168.253.156', 52530).
2018-03-24 15:13:54 DEBUG (Thread-12) [pyhap.hap_server] Request POST from address '('192.168.253.156', 52530)' for path '/pair-setup'.
2018-03-24 15:13:54 DEBUG (Thread-12) [pyhap.hap_server] Pairing [1/5]
2018-03-24 15:13:55 INFO (Thread-12) [pyhap.hap_server] 192.168.253.156 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-24 15:14:01 DEBUG (Thread-12) [pyhap.hap_server] Request POST from address '('192.168.253.156', 52530)' for path '/pair-setup'.
2018-03-24 15:14:01 DEBUG (Thread-12) [pyhap.hap_server] Pairing [2/5]
2018-03-24 15:14:03 INFO (Thread-12) [pyhap.hap_server] 192.168.253.156 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-24 15:14:03 DEBUG (Thread-12) [pyhap.hap_server] Request POST from address '('192.168.253.156', 52530)' for path '/pair-setup'.
2018-03-24 15:14:03 DEBUG (Thread-12) [pyhap.hap_server] Pairing [3/5]
2018-03-24 15:14:03 DEBUG (Thread-12) [pyhap.hap_server] Pairing [4/5]
2018-03-24 15:14:03 DEBUG (Thread-12) [pyhap.hap_server] Pairing [5/5]
2018-03-24 15:14:03 INFO (Thread-12) [pyhap.accessory_driver] Paired with ae34e34e-aa37-4e8c-9e5e-f6e23b016293.
2018-03-24 15:14:03 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service_data=notification_id=4663548, service_call_id=1976405872-2, service=dismiss>
2018-03-24 15:14:03 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state persistent_notification.4663548=notifying; title=HomeKit Setup, message=To setup Home Assistant in the Home App, enter the following code:
### 708-71-066 @ 2018-03-24T15:12:52.687463+01:00>, entity_id=persistent_notification.4663548, new_state=None>
2018-03-24 15:14:03 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1976405872-2>
Cheers
@iditude I was talking to @ikalchev and the issue could be in the accessory_driver.py
file. Since the current logging level doen't cover your case, would you mind replacing this file against with one I prepared which includes many more log statements?
The file location should be either:
/home/pi/homeassistant/lib/python3.5/site-packages/pyhap/accessory_driver.py
for your Raspbian Stretch setup/srv/homeassistant/lib/python3.5/site-packages/pyhap/accessory_driver.py
for the Hassbian setupYou can find the new file here: github: accessory_driver.py
Hello,
Thanks for the updated file. It provides indeed additional messages. I didn't use a barebone config but pairing behaves the same.
Here's the new output:
2018-03-25 18:18:19 DEBUG (MainThread) [homeassistant.components.homekit] Begin setup HomeKit
2018-03-25 18:18:20 INFO (MainThread) [pyhap.accessory_driver] Loading Accessory state from `/home/pi/.homeassistant/.homekit.state`
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.weather_low_clouds" as HumiditySensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.weather_dewpoint_temperature" as "TemperatureSensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "switch.sdb_vmc" as "Switch"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.temperature_cuisine" as "TemperatureSensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.weather_fog" as HumiditySensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.owm_humidity" as HumiditySensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.weather_cloudiness" as HumiditySensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "climate.heater" as "Thermostat"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.processor_use" as HumiditySensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.weather_medium_clouds" as HumiditySensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "switch.wc_vmc" as "Switch"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "switch.chevet_charles" as "Switch"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.weather_temperature" as "TemperatureSensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.weather_humidity" as HumiditySensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.weather_high_clouds" as HumiditySensor"
2018-03-25 18:18:43 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.disk_use_percent_" as HumiditySensor"
2018-03-25 18:18:44 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.owm_cloud_coverage" as HumiditySensor"
2018-03-25 18:18:44 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.iphone_guillaume_battery_level" as HumiditySensor"
2018-03-25 18:18:44 DEBUG (Thread-3) [homeassistant.components.homekit] Add "switch.chevet_alexandre" as "Switch"
2018-03-25 18:18:44 DEBUG (Thread-3) [homeassistant.components.homekit] Add "sensor.owm_temperature" as "TemperatureSensor"
2018-03-25 18:18:44 DEBUG (Thread-3) [homeassistant.components.homekit] Add "switch.alloff" as "Switch"
2018-03-25 18:18:44 DEBUG (Thread-3) [homeassistant.components.homekit] Driver start
2018-03-25 18:18:44 INFO (Thread-3) [pyhap.accessory_driver] Starting accessory 'Home Assistant' on address '192.168.253.5', port '51827'.
2018-03-25 18:18:44 DEBUG (Thread-3) [pyhap.accessory_driver] start: accessory_thread
2018-03-25 18:18:44 DEBUG (Thread-3) [pyhap.accessory_driver] start: accessory_thread started
2018-03-25 18:18:44 DEBUG (Thread-36) [homeassistant.components.homekit.type_switches] switch.wc_vmc: Set current state to False
2018-03-25 18:18:44 DEBUG (Thread-37) [homeassistant.components.homekit.type_switches] switch.chevet_charles: Set current state to False
2018-03-25 18:18:44 DEBUG (Thread-3) [pyhap.accessory_driver] start: send_event_thread
2018-03-25 18:18:44 DEBUG (Thread-38) [homeassistant.components.homekit.type_sensors] sensor.weather_medium_clouds: Current humidity set to 90%
2018-03-25 18:18:44 DEBUG (Thread-40) [homeassistant.components.homekit.type_sensors] sensor.weather_humidity: Current humidity set to 88%
2018-03-25 18:18:44 DEBUG (Thread-3) [pyhap.accessory_driver] start: send_event_thread started
2018-03-25 18:18:44 DEBUG (Thread-41) [homeassistant.components.homekit.type_sensors] sensor.temperature_cuisine: Current temperature set to 21°C
2018-03-25 18:18:44 DEBUG (Thread-3) [pyhap.accessory_driver] start: http_server_thread
2018-03-25 18:18:44 DEBUG (Thread-3) [pyhap.accessory_driver] start: http_server_thread started
2018-03-25 18:18:44 DEBUG (Thread-45) [homeassistant.components.homekit.type_sensors] sensor.weather_dewpoint_temperature: Current temperature set to 5°C
2018-03-25 18:18:44 DEBUG (Thread-3) [pyhap.accessory_driver] start: mdns_service_info
2018-03-25 18:18:44 DEBUG (Thread-46) [homeassistant.components.homekit.type_sensors] sensor.weather_cloudiness: Current humidity set to 97%
2018-03-25 18:18:44 DEBUG (Thread-3) [pyhap.accessory_driver] start: register_service
2018-03-25 18:18:44 DEBUG (Thread-47) [homeassistant.components.homekit.type_switches] switch.chevet_alexandre: Set current state to False
2018-03-25 18:18:44 DEBUG (Thread-48) [homeassistant.components.homekit.type_sensors] sensor.weather_low_clouds: Current humidity set to 92%
2018-03-25 18:18:44 DEBUG (Thread-49) [homeassistant.components.homekit.type_sensors] sensor.processor_use: Current humidity set to 25%
2018-03-25 18:18:44 DEBUG (Thread-52) [homeassistant.components.homekit.type_sensors] sensor.disk_use_percent_: Current humidity set to 9%
2018-03-25 18:18:44 DEBUG (Thread-55) [homeassistant.components.homekit.type_switches] switch.sdb_vmc: Set current state to False
2018-03-25 18:18:44 DEBUG (Thread-59) [homeassistant.components.homekit.type_sensors] sensor.owm_humidity: Current humidity set to 44%
2018-03-25 18:18:44 DEBUG (Thread-60) [homeassistant.components.homekit.type_sensors] sensor.owm_temperature: Current temperature set to 13°C
2018-03-25 18:18:44 DEBUG (Thread-64) [homeassistant.components.homekit.type_sensors] sensor.weather_temperature: Current temperature set to 7°C
2018-03-25 18:18:44 DEBUG (Thread-65) [homeassistant.components.homekit.type_sensors] sensor.iphone_guillaume_battery_level: Current humidity set to 39%
2018-03-25 18:18:44 DEBUG (Thread-71) [homeassistant.components.homekit.type_switches] switch.alloff: Set current state to False
2018-03-25 18:18:44 DEBUG (Thread-3) [pyhap.accessory_driver] start: done
2018-03-25 18:18:55 DEBUG (Thread-2) [homeassistant.components.homekit.type_sensors] sensor.processor_use: Current humidity set to 5%
2018-03-25 18:19:11 INFO (http_server) [pyhap.hap_server] Got connection with ('192.168.253.156', 59338).
2018-03-25 18:19:11 DEBUG (Thread-72) [pyhap.hap_server] Request POST from address '('192.168.253.156', 59338)' for path '/pair-setup'.
2018-03-25 18:19:11 DEBUG (Thread-72) [pyhap.hap_server] Pairing [1/5]
2018-03-25 18:19:12 INFO (Thread-72) [pyhap.hap_server] 192.168.253.156 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-25 18:19:16 DEBUG (Thread-72) [pyhap.hap_server] Request POST from address '('192.168.253.156', 59338)' for path '/pair-setup'.
2018-03-25 18:19:16 DEBUG (Thread-72) [pyhap.hap_server] Pairing [2/5]
2018-03-25 18:19:18 INFO (Thread-72) [pyhap.hap_server] 192.168.253.156 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.hap_server] Request POST from address '('192.168.253.156', 59338)' for path '/pair-setup'.
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.hap_server] Pairing [3/5]
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.hap_server] Pairing [4/5]
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.hap_server] Pairing [5/5]
2018-03-25 18:19:18 INFO (Thread-72) [pyhap.accessory_driver] Paired with ae34e34e-aa37-4e8c-9e5e-f6e23b016293.
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.accessory_driver] pair: add_paired_client
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.accessory_driver] pair: persist
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.accessory_driver] pair: update_advertisment
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: unregister_service
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: mdns_service_info
2018-03-25 18:19:18 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: sleep
2018-03-25 18:19:19 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: register_service
Thanks
That helps a lot! It seems to be an issue with the pyhap
module together with the zeroconf
module. I will prepare another file to isolate the issue even further.
Here are the new files:
.../python3.5/site-packages/
)Please set the logger config to:
logger:
default: warn
logs:
pyhap: debug
homeassistant.components.homekit: debug
(Default to warn
, otherwise the log will just be spammed)
Please delete the .homekit.state
file as well.
Hello,
Thanks for your fast update. Here is the new debug file. Just to be clear I didn't go to 'Warn' for all logs as Hue is spamming quite a bit so I used 'critical' for the rest and debug for zeroconf and Pyhap.
2018-03-25 20:25:32 DEBUG (MainThread) [homeassistant.components.homekit] Begin setup HomeKit
2018-03-25 20:25:33 INFO (MainThread) [pyhap.accessory_driver] Storing Accessory state in `/home/pi/.homeassistant/.homekit.state`
2018-03-25 20:25:37 WARNING (Thread-15) [zeroconf] register_service
2018-03-25 20:25:37 WARNING (Thread-15) [zeroconf] register_service: check_service
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: current_time_millis
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(0)
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(0)
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(0) DNSOutgoing
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(0) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(0) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(0) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(0) info.address b'\xc0\xa8\xfd\x05'
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(0) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(0) self.send(out)
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(1)
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(1)
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(1) DNSOutgoing
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(1) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(1) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(1) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(1) info.address b'\xc0\xa8\xfd\x05'
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(1) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(1) self.send(out)
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(2)
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(2) DNSOutgoing
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(2) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(2) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(2) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(2) info.address b'\xc0\xa8\xfd\x05'
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(2) add_answer_at_time
2018-03-25 20:25:38 WARNING (Thread-15) [zeroconf] register_service: while i(2) self.send(out)
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.iphone_guillaume_battery_level" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.owm_cloud_coverage" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.owm_humidity" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.weather_fog" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "switch.alloff" as "Switch"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.weather_humidity" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.weather_dewpoint_temperature" as "TemperatureSensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "switch.sdb_vmc" as "Switch"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.temperature_cuisine" as "TemperatureSensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "switch.chevet_charles" as "Switch"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.disk_use_percent_" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.weather_temperature" as "TemperatureSensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.weather_low_clouds" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "remote.rigaud" as "Switch"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.weather_high_clouds" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.weather_medium_clouds" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "climate.heater" as "Thermostat"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "switch.wc_vmc" as "Switch"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.weather_cloudiness" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.owm_temperature" as "TemperatureSensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "switch.chevet_alexandre" as "Switch"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Add "sensor.processor_use" as HumiditySensor"
2018-03-25 20:25:40 DEBUG (Thread-21) [homeassistant.components.homekit] Driver start
2018-03-25 20:25:40 INFO (Thread-21) [pyhap.accessory_driver] Starting accessory 'Home Assistant' on address '192.168.253.5', port '51827'.
2018-03-25 20:25:40 DEBUG (Thread-21) [pyhap.accessory_driver] start: accessory_thread
2018-03-25 20:25:40 DEBUG (Thread-36) [homeassistant.components.homekit.type_switches] switch.wc_vmc: Set current state to False
2018-03-25 20:25:40 DEBUG (Thread-21) [pyhap.accessory_driver] start: accessory_thread started
2018-03-25 20:25:40 DEBUG (Thread-37) [homeassistant.components.homekit.type_sensors] sensor.iphone_guillaume_battery_level: Current humidity set to 39%
2018-03-25 20:25:40 DEBUG (Thread-21) [pyhap.accessory_driver] start: send_event_thread
2018-03-25 20:25:40 DEBUG (Thread-38) [homeassistant.components.homekit.type_sensors] sensor.weather_medium_clouds: Current humidity set to 97%
2018-03-25 20:25:40 DEBUG (Thread-40) [homeassistant.components.homekit.type_sensors] sensor.weather_humidity: Current humidity set to 88%
2018-03-25 20:25:40 DEBUG (Thread-21) [pyhap.accessory_driver] start: send_event_thread started
2018-03-25 20:25:40 DEBUG (Thread-43) [homeassistant.components.homekit.type_switches] switch.chevet_charles: Set current state to False
2018-03-25 20:25:40 DEBUG (Thread-21) [pyhap.accessory_driver] start: http_server_thread
2018-03-25 20:25:40 DEBUG (Thread-45) [homeassistant.components.homekit.type_sensors] sensor.weather_dewpoint_temperature: Current temperature set to 5°C
2018-03-25 20:25:40 DEBUG (Thread-21) [pyhap.accessory_driver] start: http_server_thread started
2018-03-25 20:25:40 DEBUG (Thread-47) [homeassistant.components.homekit.type_sensors] sensor.weather_cloudiness: Current humidity set to 100%
2018-03-25 20:25:40 DEBUG (Thread-48) [homeassistant.components.homekit.type_switches] switch.chevet_alexandre: Set current state to False
2018-03-25 20:25:40 DEBUG (Thread-21) [pyhap.accessory_driver] start: mdns_service_info
2018-03-25 20:25:40 DEBUG (Thread-49) [homeassistant.components.homekit.type_sensors] sensor.weather_low_clouds: Current humidity set to 99%
2018-03-25 20:25:40 DEBUG (Thread-50) [homeassistant.components.homekit.type_sensors] sensor.processor_use: Current humidity set to 29%
2018-03-25 20:25:40 DEBUG (Thread-21) [pyhap.accessory_driver] start: register_service
2018-03-25 20:25:40 DEBUG (Thread-54) [homeassistant.components.homekit.type_sensors] sensor.disk_use_percent_: Current humidity set to 9%
2018-03-25 20:25:40 WARNING (Thread-21) [zeroconf] register_service
2018-03-25 20:25:40 DEBUG (Thread-57) [homeassistant.components.homekit.type_switches] switch.sdb_vmc: Set current state to False
2018-03-25 20:25:40 DEBUG (Thread-58) [homeassistant.components.homekit.type_switches] remote.rigaud: Set current state to False
2018-03-25 20:25:40 WARNING (Thread-21) [zeroconf] register_service: check_service
2018-03-25 20:25:40 DEBUG (Thread-61) [homeassistant.components.homekit.type_sensors] sensor.owm_humidity: Current humidity set to 58%
2018-03-25 20:25:40 DEBUG (Thread-62) [homeassistant.components.homekit.type_sensors] sensor.owm_temperature: Current temperature set to 12°C
2018-03-25 20:25:40 DEBUG (Thread-64) [homeassistant.components.homekit.type_sensors] sensor.weather_temperature: Current temperature set to 6°C
2018-03-25 20:25:40 DEBUG (Thread-66) [homeassistant.components.homekit.type_switches] switch.alloff: Set current state to False
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: current_time_millis
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(0)
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(0)
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(0) DNSOutgoing
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(0) add_answer_at_time
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(0) add_answer_at_time
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(0) add_answer_at_time
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(0) info.address b'\xc0\xa8\xfd\x05'
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(0) add_answer_at_time
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(0) self.send(out)
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(1)
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(1)
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(1) DNSOutgoing
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(1) add_answer_at_time
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(1) add_answer_at_time
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(1) add_answer_at_time
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(1) info.address b'\xc0\xa8\xfd\x05'
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(1) add_answer_at_time
2018-03-25 20:25:41 WARNING (Thread-21) [zeroconf] register_service: while i(1) self.send(out)
2018-03-25 20:25:42 WARNING (Thread-21) [zeroconf] register_service: while i(2)
2018-03-25 20:25:42 WARNING (Thread-21) [zeroconf] register_service: while i(2)
2018-03-25 20:25:42 WARNING (Thread-21) [zeroconf] register_service: while i(2) DNSOutgoing
2018-03-25 20:25:42 WARNING (Thread-21) [zeroconf] register_service: while i(2) add_answer_at_time
2018-03-25 20:25:42 WARNING (Thread-21) [zeroconf] register_service: while i(2) add_answer_at_time
2018-03-25 20:25:42 WARNING (Thread-21) [zeroconf] register_service: while i(2) add_answer_at_time
2018-03-25 20:25:42 WARNING (Thread-21) [zeroconf] register_service: while i(2) info.address b'\xc0\xa8\xfd\x05'
2018-03-25 20:25:42 WARNING (Thread-21) [zeroconf] register_service: while i(2) add_answer_at_time
2018-03-25 20:25:42 WARNING (Thread-21) [zeroconf] register_service: while i(2) self.send(out)
2018-03-25 20:25:42 DEBUG (Thread-21) [pyhap.accessory_driver] start: done
2018-03-25 20:25:43 DEBUG (Thread-22) [homeassistant.components.homekit.type_sensors] sensor.temperature_cuisine: Current temperature set to 22°C
2018-03-25 20:25:45 DEBUG (Thread-5) [homeassistant.components.homekit.type_switches] switch.chevet_alexandre: Set current state to True
2018-03-25 20:26:05 DEBUG (Thread-3) [homeassistant.components.homekit.type_sensors] sensor.processor_use: Current humidity set to 11%
2018-03-25 20:26:06 INFO (http_server) [pyhap.hap_server] Got connection with ('192.168.253.156', 60586).
2018-03-25 20:26:06 DEBUG (Thread-72) [pyhap.hap_server] Request POST from address '('192.168.253.156', 60586)' for path '/pair-setup'.
2018-03-25 20:26:06 DEBUG (Thread-72) [pyhap.hap_server] Pairing [1/5]
2018-03-25 20:26:08 INFO (Thread-72) [pyhap.hap_server] 192.168.253.156 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-25 20:26:11 DEBUG (Thread-72) [pyhap.hap_server] Request POST from address '('192.168.253.156', 60586)' for path '/pair-setup'.
2018-03-25 20:26:11 DEBUG (Thread-72) [pyhap.hap_server] Pairing [2/5]
2018-03-25 20:26:13 INFO (Thread-72) [pyhap.hap_server] 192.168.253.156 - "POST /pair-setup HTTP/1.1" 200 -
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.hap_server] Request POST from address '('192.168.253.156', 60586)' for path '/pair-setup'.
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.hap_server] Pairing [3/5]
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.hap_server] Pairing [4/5]
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.hap_server] Pairing [5/5]
2018-03-25 20:26:13 INFO (Thread-72) [pyhap.accessory_driver] Paired with ae34e34e-aa37-4e8c-9e5e-f6e23b016293.
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] pair: add_paired_client
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] pair: persist
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] pair: update_advertisment
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: unregister_service
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: mdns_service_info
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: accessory <homeassistant.components.homekit.accessories.HomeBridge object at 0x6d5b69d0>
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: address 192.168.253.5
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: port 51827
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: sleep
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] update_advertisment: register_service
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.accessory_driver] AccessoryMDNSServiceInfo(type='_hap._tcp.local.', name='Home Assistant._hap._tcp.local.', address=b'\xc0\xa8\xfd\x05', port=51827, weight=0, priority=0, server='raspberrypi.local.', properties={'s#': '1', 'sh': b'f5IfnA==', 'ff': '0', 'pv': '1.0', 'c#': '2', 'md': 'Home Assistant', 'sf': '0', 'ci': '2', 'id': '81:C8:36:F9:BA:B8'})
2018-03-25 20:26:13 WARNING (Thread-72) [zeroconf] register_service
2018-03-25 20:26:13 WARNING (Thread-72) [zeroconf] register_service: check_service
2018-03-25 20:26:36 DEBUG (Thread-11) [homeassistant.components.homekit.type_sensors] sensor.processor_use: Current humidity set to 3%
I hope this helps
That works as well. We are getting there. Could you try zeroconf.py now?
It's enough to post the logs after
2018-03-25 20:26:13 DEBUG (Thread-72) [pyhap.hap_server] Pairing [5/5]
Here you go. Getting there indeed!
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] pair: add_paired_client
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] pair: persist
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] pair: update_advertisment
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] update_advertisment
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] update_advertisment: unregister_service
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] update_advertisment: mdns_service_info
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] update_advertisment: accessory <homeassistant.components.homekit.accessories.HomeBridge object at 0x68d11610>
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] update_advertisment: address 192.168.253.5
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] update_advertisment: port 51827
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] update_advertisment: sleep
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] update_advertisment: register_service
2018-03-25 21:22:44 DEBUG (Thread-73) [pyhap.accessory_driver] AccessoryMDNSServiceInfo(type='_hap._tcp.local.', name='Home Assistant._hap._tcp.local.', address=b'\xc0\xa8\xfd\x05', port=51827, weight=0, priority=0, server='raspberrypi.local.', properties={'md': 'Home Assistant', 'pv': '1.0', 'c#': '2', 'ci': '2', 'ff': '0', 'sh': b'29/4kg==', 'sf': '0', 'id': 'F0:3C:6A:E1:A8:BD', 's#': '1'})
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] register_service
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] register_service: check_service
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] check_service: allow_name_change False
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] check_service: service_type_name
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] check_service: endswith
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] check_service: instance_name
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] check_service: while 0
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] current_entry_with_name_and_alias
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] name _hap._tcp.local., alias Home Assistant._hap._tcp.local.
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] record[ptr,in,_hap._tcp.local.,4500/4488.522344238281,Philips hue - 6952CA-14._hap._tcp.local.]
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] record[ptr,in,_hap._tcp.local.,4500/4488.517639160156,Philips hue - 6952CA-5._hap._tcp.local.]
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] record[ptr,in,_hap._tcp.local.,4500/4488.513065185547,Philips hue - 6952CA-1._hap._tcp.local.]
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] record[ptr,in,_hap._tcp.local.,4500/4488.508140625,Philips hue - 6952CA-2._hap._tcp.local.]
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] record[ptr,in,_hap._tcp.local.,4500/4474.726696533203,Philips hue - 6952CA-3._hap._tcp.local.]
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] record[ptr,in,_hap._tcp.local.,4500/4488.498926513672,Philips hue - 6952CA._hap._tcp.local.]
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] check_service: wait
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] check_service: DNSOutgoing
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] check_service: while 1
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] current_entry_with_name_and_alias
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] name _hap._tcp.local., alias Home Assistant._hap._tcp.local.
2018-03-25 21:22:44 WARNING (Thread-73) [zeroconf] record[ptr,in,_hap._tcp.local.,3600/3599.9800270996093,Home Assistant._hap._tcp.local.]
2018-03-25 21:22:45 WARNING (Thread-73) [zeroconf] return record
2018-03-25 21:22:45 WARNING (Thread-73) [zeroconf] check_service: name conflict
2018-03-25 21:22:45 WARNING (Thread-73) [zeroconf] check_service: NonUniqueNameException
Home Assistant release (
hass --version
): 0.65.0.dev0Python release (
python3 --version
): Python 3.5.3Component/platform: Homekit
Description of problem: Homekit won't pair. When initiating a pair process, iOS sees Home assistant. Logs show pairing on HASS side but IOS hangs there until it errors out (message "Impossible to add Home Assistant, Home wasn't able to connect to this accessory").
Logs report this:
Expected: Successful Pairing in IOS
Problem-relevant
configuration.yaml
entries and steps to reproduce: