This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 2configs / hass / zigbee.nix
2.3 kB 67 lines
1{ 2 # symlink the zigbee controller 3 services.udev.extraRules = '' 4 SUBSYSTEM=="tty", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a8", SYMLINK+="cc2531", MODE="0660", GROUP="dialout" 5 SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="cc2652", MODE="0660", GROUP="dialout" 6 ''; 7 8 # needed to use unstable package 9 systemd.services.zigbee2mqtt.environment.ZIGBEE2MQTT_DATA = "/var/lib/zigbee2mqtt"; 10 11 services.zigbee2mqtt = { 12 enable = true; 13 settings = { 14 homeassistant = true; 15 frontend.port = 1337; 16 experimental.new_api = true; 17 permit_join = false; 18 mqtt = { 19 discovery = true; 20 base_topic = "zigbee"; 21 server = "mqtt://10.42.0.1"; 22 user = "gg23"; 23 password = "gg23-mqtt"; 24 }; 25 serial = { 26 port = "/dev/cc2652"; 27 # disable_led = true; 28 }; 29 advanced = { 30 pan_id = 4222; 31 }; 32 devices = { 33 # lights https://www.zigbee2mqtt.io/devices/9290022166.html#philips-9290022166 34 "0x0017880106ed3bd8".friendly_name = "l_bett"; 35 "0x0017880108327622".friendly_name = "l_essen"; 36 "0x0017880106ee2865".friendly_name = "l_arbeit"; 37 "0x00178801082e9f2f".friendly_name = "l_nass"; 38 39 # switches https://www.zigbee2mqtt.io/devices/324131092621.html#philips-324131092621 40 "0x00178801086ac38c".friendly_name = "i_bett"; 41 "0x00178801086ad1fb".friendly_name = "i_essen"; 42 "0x00178801086ac373".friendly_name = "i_nass"; 43 44 # sensors https://www.zigbee2mqtt.io/devices/9290012607.html#philips-9290012607 45 "0x0017880106f772f2".friendly_name = "s_essen"; 46 "0x0017880106f77f30".friendly_name = "s_nass"; 47 48 # heat https://www.zigbee2mqtt.io/devices/701721.html#popp-701721 49 "0x842e14fffe27109a".friendly_name = "t_bett"; 50 "0x842e14fffe269a73".friendly_name = "t_nass"; 51 "0x842e14fffe269a56".friendly_name = "t_arbeit"; 52 53 # rotation https://www.zigbee2mqtt.io/devices/E1744.html 54 "0x8cf681fffe065493" = { 55 friendly_name = "r_test"; 56 device_id = "r_test"; 57 simulated_brightness = { 58 delta = 2; 59 interval = 100; 60 }; 61 }; 62 63 }; 64 }; 65 }; 66} 67