You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
blueprint:
|
|
name: |-
|
|
ehmtxv2: hide screen elements to 8x32 RGB-display
|
|
description: removes the gauge,indicator or alarm element from your display
|
|
domain: automation
|
|
input:
|
|
ehmtx_device:
|
|
name: which device to display at
|
|
selector:
|
|
device:
|
|
integration: esphome
|
|
element:
|
|
name: the element
|
|
selector:
|
|
select:
|
|
custom_value: true
|
|
mode: dropdown
|
|
options:
|
|
- label: alarm
|
|
value: hide_alarm
|
|
- label: gauge
|
|
value: hide_gauge
|
|
- label: indicator
|
|
value: hide_indicator
|
|
default: hide_indicator
|
|
element_color:
|
|
name: The color for the element
|
|
description: the color
|
|
selector:
|
|
color_rgb:
|
|
default: [240, 40, 40]
|
|
|
|
variables:
|
|
display: !input ehmtx_device
|
|
element_color: !input element_color
|
|
sercice: !input element
|
|
value: !input gauge_value
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: !input trigger_sensor
|
|
|
|
action:
|
|
- service: esphome.{{ device_attr(display, "name") }}_{{service}}
|
|
data:
|
|
value: {{ value }}
|
|
r: |-
|
|
{{ element_color[0] }}
|
|
g: |-
|
|
{{ element_color[1] }}
|
|
b: |-
|
|
{{ element_color[2] }} |