2025-02-12 13:09:20 +01:00
|
|
|
blueprint:
|
|
|
|
|
name: Example blueprint
|
|
|
|
|
domain: automation
|
|
|
|
|
input:
|
|
|
|
|
brightness:
|
|
|
|
|
selector:
|
|
|
|
|
number:
|
|
|
|
|
min: 1
|
|
|
|
|
max: 100
|
|
|
|
|
name: Luminosità
|
2025-02-12 14:41:12 +01:00
|
|
|
# required: true
|
2025-02-12 13:09:20 +01:00
|
|
|
mode:
|
|
|
|
|
selector:
|
|
|
|
|
select:
|
|
|
|
|
options:
|
|
|
|
|
- always
|
|
|
|
|
- if_lower
|
|
|
|
|
- if_higher
|
2025-02-12 14:41:12 +01:00
|
|
|
name: Condizione
|
|
|
|
|
default: always
|
2025-02-12 13:09:20 +01:00
|
|
|
current_brightness:
|
|
|
|
|
selector:
|
|
|
|
|
number:
|
|
|
|
|
min: 0
|
|
|
|
|
max: 100
|
|
|
|
|
name: Intesità corrente
|
|
|
|
|
ip_address:
|
|
|
|
|
selector:
|
|
|
|
|
text: {}
|
|
|
|
|
name: Indirizzo IP
|
2025-02-12 14:41:12 +01:00
|
|
|
# required: true
|
2025-02-12 13:09:20 +01:00
|
|
|
sequence:
|
|
|
|
|
- if:
|
|
|
|
|
- condition: template
|
2025-02-12 14:34:01 +01:00
|
|
|
value_template: >-
|
2025-02-12 13:09:20 +01:00
|
|
|
{{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 }}"
|
|
|
|
|
|