summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bureautomation/light
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-10-31 08:43:51 +0100
committerlassulus <lassulus@lassul.us>2019-10-31 08:43:51 +0100
commit36fb248f88224490a4bdebe2d401d81f1c9875ae (patch)
treefcb413cc9545bbb6d538e6a86efaa1f4de94480b /makefu/2configs/bureautomation/light
parent2e4841969a0e10be10bae5f2b937aa74c5311de1 (diff)
parentdc543a7d507bd431dae20c77800ec877205f5108 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/bureautomation/light')
-rw-r--r--makefu/2configs/bureautomation/light/statuslight.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/makefu/2configs/bureautomation/light/statuslight.nix b/makefu/2configs/bureautomation/light/statuslight.nix
index 31f52f492..c9d301758 100644
--- a/makefu/2configs/bureautomation/light/statuslight.nix
+++ b/makefu/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