https://github.com/flipdot/sternenhimmel
Connects switches with lights via zigbee2mqtt
https://github.com/flipdot/sternenhimmel
Last synced: 4 months ago
JSON representation
Connects switches with lights via zigbee2mqtt
- Host: GitHub
- URL: https://github.com/flipdot/sternenhimmel
- Owner: flipdot
- Created: 2022-01-21T00:31:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T01:56:13.000Z (almost 2 years ago)
- Last Synced: 2024-07-06T04:40:26.888Z (almost 2 years ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sternenhimmel
Influence the light when the script is running:
mosquitto_pub -t "sternenhimmel/group/b" -m '{"on": true, "amplitude": 1, "frequency": 0.5}' -r
## Deployment
ssh pi@raspbee2.fd
cd sternenhimmel
git pull
sudo systemctl restart sternenhimmel
## Pair device
Enable logging output
sudo vim /etc/systemd/system/zigbee2mqtt.service
sudo systemctl daemon-reload
sudo systemctl restart zigbee2mqtt
journalctl -fu zigbee2mqtt
Allow devices to join within 120 seconds:
mosquitto_pub -t "zigbee2mqtt/bridge/request/permit_join" -m '{"value": true, "time": 120}'
You should see the device ID. Use it to give your device a friendly name.
More details: https://www.zigbee2mqtt.io/guide/usage/pairing_devices.html
## Friendly names
Switches need to be named `switch/XXX`, whereby each X corresponds to a group named by letter X.
Brightness switches are named `switch/brightness/XXX`.
Frequency switches are named `switch/frequency/XXX`.
Lights need to be named `light/XN`, whereby X is the group (single letter) and N a number.
You can adjust the friendly names by editing the file `/opt/zigbee2mqtt/data/configuration.yaml`
OR, to avoid restarting the service, rename on the fly.
"from" can be friendly name or IEEE ID.
Change will be persisted to configuration file automatically.
mosquitto_pub -t "zigbee2mqtt/bridge/request/device/rename" -m '{"from": "switch/c", "to": "switch/brightness/cd"}'
# OR, use device ID
mosquitto_pub -t "zigbee2mqtt/bridge/request/device/rename" -m '{"from": "0xec1bbdfffe59bc53", "to": "switch/frequency/ab"}'