|
|
|
@ -9,7 +9,13 @@ blueprint:
|
|
|
|
selector:
|
|
|
|
selector:
|
|
|
|
device:
|
|
|
|
device:
|
|
|
|
integration: esphome
|
|
|
|
integration: esphome
|
|
|
|
mode:
|
|
|
|
trigger_sensor:
|
|
|
|
|
|
|
|
name: which state to show
|
|
|
|
|
|
|
|
description: This sensor state will be displayed
|
|
|
|
|
|
|
|
selector:
|
|
|
|
|
|
|
|
entity:
|
|
|
|
|
|
|
|
domain: sensor
|
|
|
|
|
|
|
|
screen_mode:
|
|
|
|
name: the mode
|
|
|
|
name: the mode
|
|
|
|
selector:
|
|
|
|
selector:
|
|
|
|
select:
|
|
|
|
select:
|
|
|
|
@ -50,84 +56,18 @@ blueprint:
|
|
|
|
selector:
|
|
|
|
selector:
|
|
|
|
color_rgb:
|
|
|
|
color_rgb:
|
|
|
|
default: [40, 240, 40]
|
|
|
|
default: [40, 240, 40]
|
|
|
|
high_value:
|
|
|
|
|
|
|
|
name: upper limit
|
|
|
|
|
|
|
|
selector:
|
|
|
|
|
|
|
|
number:
|
|
|
|
|
|
|
|
mode: box
|
|
|
|
|
|
|
|
min: -10000
|
|
|
|
|
|
|
|
max: +10000
|
|
|
|
|
|
|
|
high_color:
|
|
|
|
|
|
|
|
name: High Color
|
|
|
|
|
|
|
|
description: Text color for values above the defined value
|
|
|
|
|
|
|
|
selector:
|
|
|
|
|
|
|
|
color_rgb:
|
|
|
|
|
|
|
|
default: [240, 40, 40]
|
|
|
|
|
|
|
|
default_font:
|
|
|
|
|
|
|
|
name: true uses the default, false the specialer font
|
|
|
|
|
|
|
|
selector:
|
|
|
|
|
|
|
|
boolean:
|
|
|
|
|
|
|
|
default: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variables:
|
|
|
|
variables:
|
|
|
|
display: !input ehmtx_device
|
|
|
|
display: !input ehmtx_device
|
|
|
|
def_color: !input default_color
|
|
|
|
|
|
|
|
lo_color: !input low_color
|
|
|
|
|
|
|
|
hi_color: !input high_color
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
- platform: state
|
|
|
|
entity_id: !input trigger_sensor
|
|
|
|
entity_id: !input trigger_sensor
|
|
|
|
|
|
|
|
|
|
|
|
action:
|
|
|
|
action:
|
|
|
|
- choose:
|
|
|
|
|
|
|
|
- conditions:
|
|
|
|
|
|
|
|
- condition: numeric_state
|
|
|
|
|
|
|
|
entity_id: !input trigger_sensor
|
|
|
|
|
|
|
|
below: !input low_value
|
|
|
|
|
|
|
|
sequence:
|
|
|
|
|
|
|
|
- service: esphome.{{ device_attr(display, "name") }}_icon_screen
|
|
|
|
|
|
|
|
data:
|
|
|
|
|
|
|
|
icon_name: !input icon_name
|
|
|
|
|
|
|
|
screen_time: !input screen_time
|
|
|
|
|
|
|
|
lifetime: !input lifetime
|
|
|
|
|
|
|
|
text: "{{trigger.to_state.state}} {{trigger.to_state.attributes.unit_of_measurement}}"
|
|
|
|
|
|
|
|
default_font: !input default_font
|
|
|
|
|
|
|
|
r: |-
|
|
|
|
|
|
|
|
{{ lo_color[0] }}
|
|
|
|
|
|
|
|
g: |-
|
|
|
|
|
|
|
|
{{ lo_color[1] }}
|
|
|
|
|
|
|
|
b: |-
|
|
|
|
|
|
|
|
{{ lo_color[2] }}
|
|
|
|
|
|
|
|
- conditions:
|
|
|
|
|
|
|
|
- condition: numeric_state
|
|
|
|
|
|
|
|
entity_id: !input trigger_sensor
|
|
|
|
|
|
|
|
above: !input high_value
|
|
|
|
|
|
|
|
sequence:
|
|
|
|
sequence:
|
|
|
|
- service: esphome.{{ device_attr(display, "name") }}_icon_screen
|
|
|
|
- service: esphome.{{ device_attr(display, "name") }}_del_screen
|
|
|
|
data:
|
|
|
|
|
|
|
|
icon_name: !input icon_name
|
|
|
|
|
|
|
|
screen_time: !input screen_time
|
|
|
|
|
|
|
|
lifetime: !input lifetime
|
|
|
|
|
|
|
|
text: "{{trigger.to_state.state}} {{trigger.to_state.attributes.unit_of_measurement}}"
|
|
|
|
|
|
|
|
default_font: !input default_font
|
|
|
|
|
|
|
|
r: |-
|
|
|
|
|
|
|
|
{{ hi_color[0] }}
|
|
|
|
|
|
|
|
g: |-
|
|
|
|
|
|
|
|
{{ hi_color[1] }}
|
|
|
|
|
|
|
|
b: |-
|
|
|
|
|
|
|
|
{{ hi_color[2] }}
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
- service: esphome.{{ device_attr(display, "name") }}_icon_screen
|
|
|
|
|
|
|
|
data:
|
|
|
|
data:
|
|
|
|
icon_name: !input icon_name
|
|
|
|
icon_name: !input icon_name
|
|
|
|
screen_time: !input screen_time
|
|
|
|
mode: {{ !input screen_mode }}
|
|
|
|
lifetime: !input lifetime
|
|
|
|
|
|
|
|
text: "{{trigger.to_state.state}} {{trigger.to_state.attributes.unit_of_measurement}}"
|
|
|
|
|
|
|
|
default_font: !input default_font
|
|
|
|
|
|
|
|
r: |-
|
|
|
|
|
|
|
|
{{ def_color[0] }}
|
|
|
|
|
|
|
|
g: |-
|
|
|
|
|
|
|
|
{{ def_color[1] }}
|
|
|
|
|
|
|
|
b: |-
|
|
|
|
|
|
|
|
{{ def_color[2] }}
|
|
|
|
|