commit 72395e11c58a08a929f6dd5e440ad9f82a057c64 Author: Alberto Bettin Date: Wed Feb 12 13:09:20 2025 +0100 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 }}" +