Boas pessoal,
Estou em processo de automatização da minha casa através do HomeKit da Apple e o HA surgiu como uma das opções para a integração dos interruptores Shelly (Fimware de fábrica).
Estou a utilizar a ultima versão do HA, 0.103.5 instalada num Raspberry Pi 3B+ e já tenho o Shelly a funcionar corretamente, no entanto falta-me o ultimo passo que é a integração no HomeKit. Já fiz tudo que consegui encontrar na internet mas não consigo apanhar o HA. Consigo obter o código por parte do HA mas ao colocar não surge nada. Alguém tem esta integração a funcionar?
Deixo aqui o código do meu configuration.yaml
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt:
broker: xxx.xxx.xxx.xxx
username: xxxxxxxx
password: xxxxxxxx
homekit:
auto_start: false
#safe_mode: true
#ip_address: xxx.xxx.xxx.xxx
filter:
include_domains:
- light
- switch
- sensor
- alarm_control_panel
switch:
- platform: mqtt
name: "Luz Sala 1"
state_topic: "shellies/shellyswitch25-C4C881/relay/0"
command_topic: "shellies/shellyswitch25-C4C881/relay/0/command"
payload_on: "on"
payload_off: "off"
- platform: mqtt
name: "Luz Sala 2"
state_topic: "shellies/shellyswitch25-C4C881/relay/1"
command_topic: "shellies/shellyswitch25-C4C881/relay/1/command"
payload_on: "on"
payload_off: "off"
logger:
default: warning
logs:
homeassistant.components.homekit: debug
pyhap: debug
discovery:
Deixo também o LOG
2020-01-04 11:23:57 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=9 from 2020-01-03 23:57:34.957221)
2020-01-04 11:24:08 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2020-01-04 11:24:08 DEBUG (MainThread) [homeassistant.components.homekit] Begin setup HomeKit
2020-01-04 11:24:11 DEBUG (SyncWorker_8) [pyhap.characteristic] set_value: Name to Home Assistant Bridge
2020-01-04 11:24:11 DEBUG (SyncWorker_8) [pyhap.characteristic] set_value: SerialNumber to default
2020-01-04 11:24:11 DEBUG (SyncWorker_8) [pyhap.characteristic] set_value: FirmwareRevision to 0.103.5
2020-01-04 11:24:11 DEBUG (SyncWorker_8) [pyhap.characteristic] set_value: Manufacturer to Home Assistant
2020-01-04 11:24:11 DEBUG (SyncWorker_8) [pyhap.characteristic] set_value: Model to Bridge
2020-01-04 11:24:11 DEBUG (SyncWorker_8) [pyhap.characteristic] set_value: SerialNumber to homekit.bridge
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [homeassistant.components.homekit] Add "switch.luz_sala_2" as "Switch"
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: Name to Luz Sala 2
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: SerialNumber to default
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: FirmwareRevision to 0.103.5
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: Manufacturer to Home Assistant
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: Model to Switch
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: SerialNumber to switch.luz_sala_2
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [homeassistant.components.homekit] Add "switch.luz_sala_1" as "Switch"
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: Name to Luz Sala 1
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: SerialNumber to default
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: FirmwareRevision to 0.103.5
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: Manufacturer to Home Assistant
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: Model to Switch 2020-01-04 11:27:24 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: SerialNumber to switch.luz_sala_1
2020-01-04 11:27:24 INFO (SyncWorker_17) [pyhap.accessory_driver] Loading Accessory state from `/config/.homekit.state`
2020-01-04 11:27:24 INFO (SyncWorker_17) [homeassistant.components.homekit.util] Pincode: 774-98-402
2020-01-04 11:27:24 DEBUG (SyncWorker_17) [homeassistant.components.homekit] Driver start
2020-01-04 11:27:24 INFO (SyncWorker_5) [pyhap.accessory_driver] Starting the event loop
2020-01-04 11:27:24 DEBUG (SyncWorker_5) [pyhap.accessory_driver] Not setting a child watcher. Set one if subprocesses will be started outside the main thread.
2020-01-04 11:27:24 INFO (SyncWorker_0) [pyhap.accessory_driver] Starting accessory Home Assistant Bridge on address xxx.xxx.xxx.xxx, port xxxxx.
2020-01-04 11:27:24 DEBUG (SyncWorker_0) [pyhap.accessory_driver] Starting event thread.
2020-01-04 11:27:24 DEBUG (SyncWorker_0) [pyhap.accessory_driver] Starting server.
2020-01-04 11:27:24 DEBUG (SyncWorker_0) [pyhap.accessory_driver] Starting mDNS.
2020-01-04 11:27:25 DEBUG (SyncWorker_0) [pyhap.accessory_driver] Starting accessory.
2020-01-04 11:27:25 DEBUG (SyncWorker_0) [pyhap.accessory_driver] AccessoryDriver started successfully
2020-01-04 11:27:29 DEBUG (MainThread) [homeassistant.components.homekit_controller.config_flow] Discovered device Home Assistant Bridge (Home Assistant Bridge - XX:XX:XX:XX:XX:XX)
2020-01-04 11:27:29 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state switch.luz_sala_2=off; friendly_name=Luz Sala 2 @ 2020-01-04T11:24:14.859417+00:00>
2020-01-04 11:27:29 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state switch.luz_sala_1=off; friendly_name=Luz Sala 1 @ 2020-01-04T11:24:14.917589+00:00>
2020-01-04 11:27:29 DEBUG (SyncWorker_1) [homeassistant.components.homekit.type_switches] switch.luz_sala_2: Set current state to False
2020-01-04 11:27:29 DEBUG (SyncWorker_16) [homeassistant.components.homekit.type_switches] switch.luz_sala_1: Set current state to False
2020-01-04 11:27:29 DEBUG (SyncWorker_1) [pyhap.characteristic] set_value: On to False
2020-01-04 11:27:29 DEBUG (SyncWorker_16) [pyhap.characteristic] set_value: On to False
Obrigado desde já pela ajuda.
cumps
BP