diff --git a/copy2esphome/EHMTX_easy_delete.yaml b/copy2esphome/EHMTX_easy_delete.yaml index 0fcdedf..e33872f 100644 --- a/copy2esphome/EHMTX_easy_delete.yaml +++ b/copy2esphome/EHMTX_easy_delete.yaml @@ -1,22 +1,22 @@ blueprint: name: |- - ehmtxv2: delete screen from 8x32 RGB-display - 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 + ehmtxv2: delete screen from 8x32 RGB-matrix + 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 input: ehmtx_device: - name: which device to display at + name: Which EspHoMaTriXv2 device to use selector: device: integration: esphome trigger_sensor: - name: which state change triggers - description: this entity triggers + name: Which state change triggers the automation? selector: entity: domain: sensor 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: select: custom_value: true @@ -42,37 +42,26 @@ blueprint: value: "9" default: "5" icon_name: - name: the icon + name: The icon to specify a screen. selector: select: mode: dropdown options: ["*","error","home_assistant","temperature","lightbulb","music","phone","car","sleep8x32",] 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: display: !input ehmtx_device +mode: parallel + trigger: - platform: state entity_id: !input trigger_sensor action: - - mode: parallel - - service: esphome.{{ device_attr(display, "name") }}_del_screen + - service: |- + esphome.{{ device_attr(display, "name") }}_del_screen data: icon_name: !input icon_name mode: !input screen_mode diff --git a/copy2esphome/EHMTX_easy_hide.yaml b/copy2esphome/EHMTX_easy_hide.yaml index 370ae1e..586bcd5 100644 --- a/copy2esphome/EHMTX_easy_hide.yaml +++ b/copy2esphome/EHMTX_easy_hide.yaml @@ -1,22 +1,21 @@ blueprint: name: |- - ehmtxv2: hide screen elements to 8x32 RGB-display - description: removes the gauge,indicator or alarm element from your display + ehmtxv2: Hide screen elements on 8x32 RGB-matrix + description: Removes the gauge, indicator or alarm element from your EspHoMaTriXv2 display. domain: automation input: ehmtx_device: - name: which device to display at + name: Which display to use selector: device: integration: esphome trigger_sensor: - name: which statechange triggers - description: this entity triggers + name: Which state change triggers this automation selector: entity: domain: sensor element: - name: the element + name: The screen element selector: select: custom_value: true @@ -34,10 +33,12 @@ variables: display: !input ehmtx_device service: !input element +mode: parallel + trigger: - platform: state entity_id: !input trigger_sensor action: - - mode: parallel - - service: esphome.{{ device_attr(display, "name") }}_{{service}} + - service: |- + esphome.{{ device_attr(display, "name") }}_{{service}} diff --git a/copy2esphome/EHMTX_easy_show.yaml b/copy2esphome/EHMTX_easy_show.yaml index 7df0cd4..92b8108 100644 --- a/copy2esphome/EHMTX_easy_show.yaml +++ b/copy2esphome/EHMTX_easy_show.yaml @@ -1,22 +1,23 @@ blueprint: name: |- - ehmtxv2: show screen elements to 8x32 RGB-display - description: add a gauge,indicator or alarm element to your display + ehmtxv2: Show screen elements on 8x32 RGB-matrix + description: Add a gauge, indicator or alarm element to your EspHoMaTriXv2 display domain: automation input: ehmtx_device: - name: which device to display at + name: Which device to display at? selector: device: integration: esphome trigger_sensor: - name: which state to show - description: what triggers this automation? + name: Which state-change triggers the screen element selector: entity: domain: sensor 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: select: custom_value: true @@ -30,7 +31,7 @@ blueprint: value: show_indicator default: show_indicator gauge_value: - name: the value on the gauge + name: The value on the gauge (if selected) selector: number: mode: slider @@ -38,7 +39,7 @@ blueprint: max: 100 default: 50 size_value: - name: size of the alarm or indicator + name: The size of the alarm or indicator (if selected) selector: number: mode: slider @@ -47,7 +48,6 @@ blueprint: default: 2 element_color: name: The color for the element - description: the color selector: color_rgb: default: [240, 40, 40] @@ -57,17 +57,20 @@ variables: myservice: !input element value: !input gauge_value size: !input size_value +mode: parallel + trigger: - platform: state entity_id: !input trigger_sensor + action: - - mode: parallel - if: - condition: template value_template: |- {{ myservice != "show_gauge" }} then: - - service: esphome.{{ device_attr(display, "name") }}_{{ myservice }} + - service: |- + esphome.{{ device_attr(display, "name") }}_{{ myservice }} data: r: |- {{ element_color[0] }} @@ -78,7 +81,8 @@ action: size: |- {{ size }} else: - - service: esphome.{{ device_attr(display, "name") }}_{{ myservice }} + - service: |- + esphome.{{ device_attr(display, "name") }}_{{ myservice }} data: r: |- {{ element_color[0] }} @@ -87,5 +91,5 @@ action: b: |- {{ element_color[2] }} percent: |- - {{ element_color[2] }} + {{ value }} \ No newline at end of file