aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/home-assistant/light.nix
blob: a9d158b3580119d2bbf9b39cd90b406b1fbeb000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[
  {
    name = "RGB Osvětlení";
    command_topic = "homeassistant/led-strip";
    brightness_scale = 100;
    brightness_command_topic = "bigclown/node/power-controller:0/led-strip/-/brightness/set";
    #brightness_state_topic = "bigclown/node/power-controller:0/led-strip/-/brightness/set";
    rgb_command_template = ''"#{{"%02x" % red}}{{"%02x" % green}}{{"%02x" % blue}}"'';
    rgb_command_topic = "bigclown/node/power-controller:0/led-strip/-/color/set";
    #rgb_value_template = ''{{int(value[2:4],16)}},{{int(value[5:7],16)}},{{int(value[8:10],16)}}'';
    #rgb_state_topic = "bigclown/node/power-controller:0/led-strip/-/color/set";
  }
]