summaryrefslogtreecommitdiffstats
path: root/2configs/bureautomation/light/statuslight.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-10-30 08:01:44 +0100
committerJeschli <jeschli@gmail.com>2019-11-14 15:36:11 +0100
commitcc8d599e1ca3b1b2d50ff52147893f5dd783f87c (patch)
treefaf1ce068c6431185101225af07974c1483f2efc /2configs/bureautomation/light/statuslight.nix
parent5ad2e261d3def7e949d585ce36b4ece850dbba27 (diff)
ma bureautomation: fix all the regression, add openwrt-luci-rpc as dependency
Diffstat (limited to '2configs/bureautomation/light/statuslight.nix')
-rw-r--r--2configs/bureautomation/light/statuslight.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/2configs/bureautomation/light/statuslight.nix b/2configs/bureautomation/light/statuslight.nix
index 31f52f492..c9d301758 100644
--- a/2configs/bureautomation/light/statuslight.nix
+++ b/2configs/bureautomation/light/statuslight.nix
@@ -24,13 +24,13 @@ let
brightness_command_topic = "/bam/${topic}/cmnd/Dimmer";
brightness_scale = 100;
# color
- rgb_state_topic = "/bam/${topic}/stat/Color";
+ rgb_state_topic = "/bam/${topic}/stat/RESULT";
rgb_command_topic = "/bam/${topic}/cmnd/Color2";
- rgb_command_mode = "hex";
- rgb_command_template = "{{ '%02x%02x%02x' | format(red, green, blue)}}";
+ rgb_value_template = "{{(value_json.Channel[0]*2.55)|int}},{{(value_json.Channel[1]*2.55)|int}},{{(value_json.Channel[2]*2.55)|int}}";
+
# effects
effect_state_topic = "/bam/${topic}/tele/STATE";
- effects_value_template = "{{value_json.Scheme|default(0)}}";
+ effect_value_template = "{{value_json.Scheme|default(0)}}";
effect_command_topic = "/bam/${topic}/cmnd/Scheme";
effect_list = [
0 # single color for LED light
[cgit] Unable to lock slot /tmp/cgit/99000000.lock: No such file or directory (2)