From 72395e11c58a08a929f6dd5e440ad9f82a057c64 Mon Sep 17 00:00:00 2001 From: Alberto Bettin Date: Wed, 12 Feb 2025 13:09:20 +0100 Subject: [PATCH] Shelly_rgbw_brightness.yaml --- Shelly_rgbw_brightness.yaml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Shelly_rgbw_brightness.yaml diff --git a/Shelly_rgbw_brightness.yaml b/Shelly_rgbw_brightness.yaml new file mode 100644 index 0000000..96a3627 --- /dev/null +++ b/Shelly_rgbw_brightness.yaml @@ -0,0 +1,45 @@ +blueprint: + name: Example blueprint + domain: automation + input: + brightness: + selector: + number: + min: 1 + max: 100 + name: Luminosità + required: true + mode: + selector: + select: + options: + - always + - if_lower + - if_higher + name: Condizione + default: always + current_brightness: + selector: + number: + min: 0 + max: 100 + name: Intesità corrente + ip_address: + selector: + text: {} + name: Indirizzo IP + required: true +sequence: + - if: + - condition: template + value_template: >- + {{mode == 'always' or (mode == 'if_lower' and current_brighness < + brightness) or (mode == 'if_higher' and current_brighness > + brightness)}} + then: + - action: rest_command.shelly_rgbw_brightness + metadata: {} + data: + ip_address: "{{ ip_address }}" + brightness: "{{ brightness }}" +