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 domain: automation input: ehmtx_device: name: which device to display at selector: device: integration: esphome mode: name: the mode selector: select: custom_value: true mode: dropdown options: - label: MODE_ICONSCREEN value: 5 - label: MODE_BLANK value: 1 - label: MODE_CLOCK value: 2 - label: MODE_DATE value: 3 - label: MODE_FULLSCREEN value: 4 - label: MODE_TEXT value: 6 default: 5 icon_name: name: the icon selector: select: mode: dropdown options: [ "*", "error", "github", "precipitation", "nina", "waschmaschine", "car", "lamp", "sonos", "print3d", "internet", "speaker", "alien", "temp", "garage", "door", "wind", "rain", "shop", "phone", "fire", "alexa", "tv", "frost", "muell", "cookit", "nature", "work", "bike", "school", "amazon", "post", "money", "power", "solar", "yoga", "startrek", "energy", "sun", "diesel", "benzine10", "vacuum", "rainprecip", "iss", "thunder", "nina_warning", "birthday", "firework", "coffee", "lightning", "xmastree", "sauna", "trash_grey", "trash_blue", "trash_yell", "trash_brow", "weather_clear_night", "weather_cloudy", "weather_fog", "weather_lightingrainy", "weather_partlycloudy", "weather_pouring", "weather_rainy", "weather_snowy", "weather_snowy_rainy", "weather_sunny", "f_mario", "f_onair", "f_bat", "f_matrix", "f_invaders", "f_amongus", "theodor", "f_sleeping", "mops", "girl", "timer", "lasticon", ] default: homeassistant 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] 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: display: !input ehmtx_device def_color: !input default_color lo_color: !input low_color hi_color: !input high_color trigger: - platform: state entity_id: !input trigger_sensor 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: - 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: |- {{ hi_color[0] }} g: |- {{ hi_color[1] }} b: |- {{ hi_color[2] }} default: - 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: |- {{ def_color[0] }} g: |- {{ def_color[1] }} b: |- {{ def_color[2] }}