|
发表于 2019-3-5 14:27:25
|
显示全部楼层
環境0.84.6 ,依照網頁下載檔案baidu_face.py放置到custom_components/sensor資料夾˙內,
configuration.yaml在sensor:下面加入
- platform: baidu_face
#从百度ai开放平台人脸识别应用中获取
api_key: 'Qxxxxxxxxxxxx8llKj'
secret_key: 'Iy0xxxxxxxxxxwaa'
group_id: 'normal_group'
#摄像头entity_id
camera_entity_id: camera.garage_camera
# token
token: eyJ0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxL4
scan_interval: 1
================================================================
重啟ha 出現了一個警告和一個錯誤
2019-03-05 06:01:04 WARNING (MainThread) [homeassistant.loader] You are using a custom component for sensor.baidu_face which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-03-05 06:01:04 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 336, in _async_add_entity
'Invalid entity id: {}'.format(entity.entity_id))
homeassistant.exceptions.HomeAssistantError: Invalid entity id: sensor.
================================================
ha的總覽內沒有出現人臉辨識的框框和內容
請問以上操作是否還有哪邊有問題
感謝 |
|