diff options
author | tv <tv@krebsco.de> | 2019-04-17 22:04:03 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-04-17 22:04:03 +0200 |
commit | ffd36f5554256f74beb6ade469666b00f72b22a9 (patch) | |
tree | 51e77c75388d9f9e032bdb09427bcaace2b846c7 /makefu/2configs/bureautomation/light | |
parent | e051fecf9c19d446d6588bd21070fd1a799b97a3 (diff) | |
parent | 1314eb9284697b46d8208c138cf2349816e15c5f (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/bureautomation/light')
-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) |