forked from
lass.pds.lassul.us/superconfig
This repository has no description
3.5 kB
91 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_wohn";
35 "0x0017880108327622".friendly_name = "l_essen";
36 "0x0017880106ee2865".friendly_name = "l_bett";
37 "0x00178801082e9f2f".friendly_name = "l_nass";
38
39 # lights https://www.zigbee2mqtt.io/devices/9290024688.html#philips-9290024688
40 "0x001788010c0b9a7b".friendly_name = "l_flur";
41
42 # switches https://www.zigbee2mqtt.io/devices/324131092621.html#philips-324131092621
43 "0x00178801086ac38c".friendly_name = "i_wohn";
44 "0x00178801086ad1fb".friendly_name = "i_essen";
45 "0x00178801086ac373".friendly_name = "i_nass";
46
47 # motion sensors https://www.zigbee2mqtt.io/devices/9290012607.html#philips-9290012607
48 "0x0017880106f772f2".friendly_name = "s_essen";
49 "0x0017880106f77f30".friendly_name = "s_nass";
50
51 # motion sensors https://www.zigbee2mqtt.io/devices/SNZB-03.html#sonoff-snzb-03
52 "0x00124b002a68be83".friendly_name = "s_wohn";
53 "0x00124b002a6890ef".friendly_name = "s_nass2";
54
55 # motion sensors https://www.zigbee2mqtt.io/devices/RTCGQ11LM.html#aqara-rtcgq11lm
56 "0x00158d0005468b98".friendly_name = "s_flur";
57
58 # heat https://www.zigbee2mqtt.io/devices/701721.html#popp-701721
59 "0x842e14fffe27109a".friendly_name = "t_wohn";
60 "0x842e14fffe269a73".friendly_name = "t_nass";
61 "0x842e14fffe269a56".friendly_name = "t_bett";
62
63 # door sensor https://www.zigbee2mqtt.io/devices/SNZB-04.html#sonoff-snzb-04
64 "0x00124b002a62eb66".friendly_name = "main_door";
65 "0x00124b002a6306fd".friendly_name = "window_essen";
66 "0x00124b0022cd2b1d".friendly_name = "window_nass";
67 "0x00124b002932d7c2".friendly_name = "window_wohn";
68 "0x00124b002a62fd46".friendly_name = "window_bett";
69
70 "0x00124b002a62ee91".friendly_name = "door_essen";
71 "0x00124b002a6301df".friendly_name = "door_nass";
72 "0x00124b002932f2bf".friendly_name = "door_bett";
73 "0x00124b002a62f231".friendly_name = "door_wohn";
74
75 # button https://www.zigbee2mqtt.io/devices/8718699693985.html#philips-8718699693985
76 "0x0017880108016e3e".friendly_name = "going_out_button";
77
78 # rotation https://www.zigbee2mqtt.io/devices/E1744.html
79 "0x8cf681fffe065493" = {
80 friendly_name = "r_test";
81 device_id = "r_test";
82 simulated_brightness = {
83 delta = 2;
84 interval = 100;
85 };
86 };
87
88 };
89 };
90 };
91}