configuration.yaml:
light:
- platform: yeelight
devices:
192.168.1.5:
name: 书房灯
transition: 1000
customize.yaml:
light.yeelight_ceiling_7812dcaa6b9e:
friendly_name: 书房灯
groups.yaml:
lights1: #OK
name: 灯
view: no
entities:
- light.yeelight_ceiling_7812dcaa6b9e
HB 的 config.json :
"supported_types": ["fan", "garage_door", "input_boolean", "light", "lock", "script", "automation", "media_player", "rollershutter", "scene", "sensor", "switch", "vacuum"]
直接树莓派 运行
pi@hassbian:~ $ homebridge 在 iPhone 上连接桥后有找到 这个灯
改用下面开机自动启动 HB 后,其他设备都能找到,就缺这个灯, HA 上都正常 ,请大神帮看一下,哪里出了问题!
cd /etc/default
sudo nano /etc/default/homebridge
HOMEBRIDGE_OPTS= /home/pi/.homebridge
Ctrl + X, Y
---------- cd /etc/systemd/system
sudo nano homebridge.service
[Unit] Description=Node.js HomeKit Server After=syslog.target network-online.target [Service] Type=simple User=pi EnvironmentFile=/etc/default/homebridge ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS Restart=on-failure RestartSec=10 KillMode=process [Install] WantedBy=multi-user.target
Ctrl + x 然后 y 退出
cd / sudo systemctl daemon-reload sudo systemctl enable homebridge
|