This repository has no description
0

Configure Feed

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

superconfig / configs / hass / zigbee.nix
3.6 kB 92 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.enabled = 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://127.0.0.1"; 22 user = "gg23"; 23 password = "gg23-mqtt"; 24 }; 25 serial = { 26 port = "/dev/cc2652"; 27 adapter = "zstack"; 28 # disable_led = true; 29 }; 30 advanced = { 31 pan_id = 4222; 32 }; 33 devices = { 34 # lights https://www.zigbee2mqtt.io/devices/9290022166.html#philips-9290022166 35 "0x0017880106ed3bd8".friendly_name = "l_wohn"; 36 "0x0017880108327622".friendly_name = "l_essen"; 37 "0x0017880106ee2865".friendly_name = "l_bett"; 38 "0x00178801082e9f2f".friendly_name = "l_nass"; 39 40 # lights https://www.zigbee2mqtt.io/devices/9290024688.html#philips-9290024688 41 "0x001788010c0b9a7b".friendly_name = "l_flur"; 42 43 # switches https://www.zigbee2mqtt.io/devices/324131092621.html#philips-324131092621 44 "0x00178801086ac38c".friendly_name = "i_wohn"; 45 "0x00178801086ad1fb".friendly_name = "i_essen"; 46 "0x00178801086ac373".friendly_name = "i_nass"; 47 48 # motion sensors https://www.zigbee2mqtt.io/devices/9290012607.html#philips-9290012607 49 "0x0017880106f772f2".friendly_name = "s_essen"; 50 "0x0017880106f77f30".friendly_name = "s_nass"; 51 52 # motion sensors https://www.zigbee2mqtt.io/devices/SNZB-03.html#sonoff-snzb-03 53 "0x00124b002a68be83".friendly_name = "s_wohn"; 54 "0x00124b002a6890ef".friendly_name = "s_nass2"; 55 56 # motion sensors https://www.zigbee2mqtt.io/devices/RTCGQ11LM.html#aqara-rtcgq11lm 57 "0x00158d0005468b98".friendly_name = "s_flur"; 58 59 # heat https://www.zigbee2mqtt.io/devices/701721.html#popp-701721 60 "0x842e14fffe27109a".friendly_name = "t_wohn"; 61 "0x842e14fffe269a73".friendly_name = "t_nass"; 62 "0x842e14fffe269a56".friendly_name = "t_bett"; 63 64 # door sensor https://www.zigbee2mqtt.io/devices/SNZB-04.html#sonoff-snzb-04 65 "0x00124b002a62eb66".friendly_name = "main_door"; 66 "0x00124b002a6306fd".friendly_name = "window_essen"; 67 "0x00124b0022cd2b1d".friendly_name = "window_nass"; 68 "0x00124b002932d7c2".friendly_name = "window_wohn"; 69 "0x00124b002a62fd46".friendly_name = "window_bett"; 70 71 "0x00124b002a62ee91".friendly_name = "door_essen"; 72 "0x00124b002a6301df".friendly_name = "door_nass"; 73 "0x00124b002932f2bf".friendly_name = "door_bett"; 74 "0x00124b002a62f231".friendly_name = "door_wohn"; 75 76 # button https://www.zigbee2mqtt.io/devices/8718699693985.html#philips-8718699693985 77 "0x0017880108016e3e".friendly_name = "going_out_button"; 78 79 # rotation https://www.zigbee2mqtt.io/devices/E1744.html 80 "0x8cf681fffe065493" = { 81 friendly_name = "r_test"; 82 device_id = "r_test"; 83 simulated_brightness = { 84 delta = 2; 85 interval = 100; 86 }; 87 }; 88 89 }; 90 }; 91 }; 92}