fixed blueprints

pull/15/head
LuBeDa 3 years ago
parent 2301068e22
commit b96392f43c

@ -1,22 +1,22 @@
blueprint: blueprint:
name: |- name: |-
ehmtxv2: delete screen from 8x32 RGB-display ehmtxv2: delete screen from 8x32 RGB-matrix
description: This blueprint is triggered by a state change. If the state is between certain values it will be displayed with special colors or no state change will be displayed description: This blueprint is triggered by a state change and will remove a certain screen from the queue. The screen is selected by type an icon.
domain: automation domain: automation
input: input:
ehmtx_device: ehmtx_device:
name: which device to display at name: Which EspHoMaTriXv2 device to use
selector: selector:
device: device:
integration: esphome integration: esphome
trigger_sensor: trigger_sensor:
name: which state change triggers name: Which state change triggers the automation?
description: this entity triggers
selector: selector:
entity: entity:
domain: sensor domain: sensor
screen_mode: screen_mode:
name: the mode name: The mode od the screen?
description: Some modes use a icon some not. The use "*" as icon, e.g. for MODE_BLANK.
selector: selector:
select: select:
custom_value: true custom_value: true
@ -42,37 +42,26 @@ blueprint:
value: "9" value: "9"
default: "5" default: "5"
icon_name: icon_name:
name: the icon name: The icon to specify a screen.
selector: selector:
select: select:
mode: dropdown mode: dropdown
options: options:
["*","error","home_assistant","temperature","lightbulb","music","phone","car","sleep8x32",] ["*","error","home_assistant","temperature","lightbulb","music","phone","car","sleep8x32",]
default: home_assistant default: home_assistant
low_value:
name: below this vaule is a special color
selector:
number:
mode: box
min: -10000
max: +10000
low_color:
name: Low color
description: the color for values below the limit
selector:
color_rgb:
default: [40, 240, 40]
variables: variables:
display: !input ehmtx_device display: !input ehmtx_device
mode: parallel
trigger: trigger:
- platform: state - platform: state
entity_id: !input trigger_sensor entity_id: !input trigger_sensor
action: action:
- mode: parallel - service: |-
- service: esphome.{{ device_attr(display, "name") }}_del_screen esphome.{{ device_attr(display, "name") }}_del_screen
data: data:
icon_name: !input icon_name icon_name: !input icon_name
mode: !input screen_mode mode: !input screen_mode

@ -1,22 +1,21 @@
blueprint: blueprint:
name: |- name: |-
ehmtxv2: hide screen elements to 8x32 RGB-display ehmtxv2: Hide screen elements on 8x32 RGB-matrix
description: removes the gauge,indicator or alarm element from your display description: Removes the gauge, indicator or alarm element from your EspHoMaTriXv2 display.
domain: automation domain: automation
input: input:
ehmtx_device: ehmtx_device:
name: which device to display at name: Which display to use
selector: selector:
device: device:
integration: esphome integration: esphome
trigger_sensor: trigger_sensor:
name: which statechange triggers name: Which state change triggers this automation
description: this entity triggers
selector: selector:
entity: entity:
domain: sensor domain: sensor
element: element:
name: the element name: The screen element
selector: selector:
select: select:
custom_value: true custom_value: true
@ -34,10 +33,12 @@ variables:
display: !input ehmtx_device display: !input ehmtx_device
service: !input element service: !input element
mode: parallel
trigger: trigger:
- platform: state - platform: state
entity_id: !input trigger_sensor entity_id: !input trigger_sensor
action: action:
- mode: parallel - service: |-
- service: esphome.{{ device_attr(display, "name") }}_{{service}} esphome.{{ device_attr(display, "name") }}_{{service}}

@ -1,22 +1,23 @@
blueprint: blueprint:
name: |- name: |-
ehmtxv2: show screen elements to 8x32 RGB-display ehmtxv2: Show screen elements on 8x32 RGB-matrix
description: add a gauge,indicator or alarm element to your display description: Add a gauge, indicator or alarm element to your EspHoMaTriXv2 display
domain: automation domain: automation
input: input:
ehmtx_device: ehmtx_device:
name: which device to display at name: Which device to display at?
selector: selector:
device: device:
integration: esphome integration: esphome
trigger_sensor: trigger_sensor:
name: which state to show name: Which state-change triggers the screen element
description: what triggers this automation?
selector: selector:
entity: entity:
domain: sensor domain: sensor
element: element:
name: the element name: The screen element
description: |-
Indicator and alarm are in the corners at the right size and have a color and a size. The gauge has a color and a value in percent.
selector: selector:
select: select:
custom_value: true custom_value: true
@ -30,7 +31,7 @@ blueprint:
value: show_indicator value: show_indicator
default: show_indicator default: show_indicator
gauge_value: gauge_value:
name: the value on the gauge name: The value on the gauge (if selected)
selector: selector:
number: number:
mode: slider mode: slider
@ -38,7 +39,7 @@ blueprint:
max: 100 max: 100
default: 50 default: 50
size_value: size_value:
name: size of the alarm or indicator name: The size of the alarm or indicator (if selected)
selector: selector:
number: number:
mode: slider mode: slider
@ -47,7 +48,6 @@ blueprint:
default: 2 default: 2
element_color: element_color:
name: The color for the element name: The color for the element
description: the color
selector: selector:
color_rgb: color_rgb:
default: [240, 40, 40] default: [240, 40, 40]
@ -57,17 +57,20 @@ variables:
myservice: !input element myservice: !input element
value: !input gauge_value value: !input gauge_value
size: !input size_value size: !input size_value
mode: parallel
trigger: trigger:
- platform: state - platform: state
entity_id: !input trigger_sensor entity_id: !input trigger_sensor
action: action:
- mode: parallel
- if: - if:
- condition: template - condition: template
value_template: |- value_template: |-
{{ myservice != "show_gauge" }} {{ myservice != "show_gauge" }}
then: then:
- service: esphome.{{ device_attr(display, "name") }}_{{ myservice }} - service: |-
esphome.{{ device_attr(display, "name") }}_{{ myservice }}
data: data:
r: |- r: |-
{{ element_color[0] }} {{ element_color[0] }}
@ -78,7 +81,8 @@ action:
size: |- size: |-
{{ size }} {{ size }}
else: else:
- service: esphome.{{ device_attr(display, "name") }}_{{ myservice }} - service: |-
esphome.{{ device_attr(display, "name") }}_{{ myservice }}
data: data:
r: |- r: |-
{{ element_color[0] }} {{ element_color[0] }}
@ -87,5 +91,5 @@ action:
b: |- b: |-
{{ element_color[2] }} {{ element_color[2] }}
percent: |- percent: |-
{{ element_color[2] }} {{ value }}
Loading…
Cancel
Save