diff options
author | makefu <github@syntax-fehler.de> | 2019-04-17 20:46:58 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-04-17 20:46:58 +0200 |
commit | bccb2fd4e51448a2e9794acd47e7df16339f64aa (patch) | |
tree | 7ab3b753abc25989d8c75cda3d9c52ecbb7520ba /makefu/2configs/bureautomation/light/statuslight.nix | |
parent | 6fa6659b8fc5d2e00131aa470408a17c9002ac75 (diff) |
ma bureautomation: refactor
Diffstat (limited to 'makefu/2configs/bureautomation/light/statuslight.nix')
-rw-r--r-- | makefu/2configs/bureautomation/light/statuslight.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/makefu/2configs/bureautomation/light/statuslight.nix b/makefu/2configs/bureautomation/light/statuslight.nix index 0acab7281..31f52f492 100644 --- a/makefu/2configs/bureautomation/light/statuslight.nix +++ b/makefu/2configs/bureautomation/light/statuslight.nix @@ -20,7 +20,7 @@ let payload_not_available= "Offline"; # brightness brightness_state_topic = "/bam/${topic}/tele/STATE"; - brightness_value_template = "{{value_json.Dimmer}}"; + brightness_value_template = "{{value_json.Dimmer|default(100)}}"; brightness_command_topic = "/bam/${topic}/cmnd/Dimmer"; brightness_scale = 100; # color @@ -30,9 +30,8 @@ let rgb_command_template = "{{ '%02x%02x%02x' | format(red, green, blue)}}"; # effects effect_state_topic = "/bam/${topic}/tele/STATE"; - effects_value_template = "{{value_json.Scheme}}"; + effects_value_template = "{{value_json.Scheme|default(0)}}"; effect_command_topic = "/bam/${topic}/cmnd/Scheme"; - effect_value_template = "{{ value_json.Scheme }}"; effect_list = [ 0 # single color for LED light 1 # start wake up sequence (same as Wakeup) |