5282 lines
178 KiB
YAML
5282 lines
178 KiB
YAML
blueprint:
|
|
name: NSPanel Configuration
|
|
description: v2.0.0 - Configuration and synchronization NSpanel
|
|
domain: automation
|
|
input:
|
|
nspanel_name:
|
|
name: NSPanel Name
|
|
description: Name NSPanel
|
|
selector:
|
|
text: {}
|
|
language:
|
|
name: Language for NSPanel (coming soon)
|
|
description: select your language for the values on the NSPanel display
|
|
selector:
|
|
select:
|
|
options:
|
|
- DE
|
|
- EN
|
|
tft_path:
|
|
name: Nextion TFT File Folder for the service Folder Watcher
|
|
description: 'TFT Path where the Nextion TFT File is stored (same NSPanel as **"last click"**) Example *"/config/www/nspanel/buero/nspanel_buero.tft"*'
|
|
default: /config/www/nspanel/buero/nspanel_buero.tft
|
|
selector:
|
|
text: {}
|
|
weather:
|
|
name: Weather Integration (coming soon)
|
|
description: select our Weather Integration
|
|
selector:
|
|
select:
|
|
options:
|
|
- Default
|
|
- AccuWeather
|
|
accuweather:
|
|
name: Name assigned to the AccuWeather Integration (Optional)
|
|
description: Name assigned to the AccuWeather Integration. For Example - Accuweather Intergations name is Home Weather -> Then please write * home_weather * in it. You can find the needed value in your entities
|
|
default: []
|
|
selector:
|
|
text: {}
|
|
nextion_inited:
|
|
name: NSPanel "Nextion Switch - nextion_inited"
|
|
description: 'nextion_inited is set up via esphome and shows the state of the Nspanel - NSPanel ready after Reboot (same NSPanel as **"last click"**) Example *"switch.nspanel_buro_nextion_inited"*'
|
|
selector:
|
|
entity: {}
|
|
outdoortemp:
|
|
name: Outdoor Temperature Sensor (Optional)
|
|
description: select the Temperature Sensor. If no outdoor sensor available write "default" or "accuweather" to use the outdoor temperature of the selected Weather Integration. This value is displayed on the Home Page an Thermostat Page
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- sensor
|
|
humidity:
|
|
name: Humidity Sensor (Optional)
|
|
description: select the humidity Sensor. This value is displayed on the Home Page
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- sensor
|
|
hotwatertemp:
|
|
name: Hot Water Temperature Sensor (Optional)
|
|
description: select the hot water Sensor. This value is displayed on the Home Page an Thermostat Page
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- sensor
|
|
|
|
##### Button #####
|
|
entity01:
|
|
name: Button 01 (Optional)
|
|
description: Nextion Editor - *buttonpage01.button01* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity02:
|
|
name: Button 02 (Optional)
|
|
description: Nextion Editor - *buttonpage01.button02* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity03:
|
|
name: Button 03 (Optional)
|
|
description: Nextion Editor - *buttonpage01.button03* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity04:
|
|
name: Button 04 (Optional)
|
|
description: Nextion Editor - *buttonpage01.button04* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity05:
|
|
name: Button 05 (Optional)
|
|
description: Nextion Editor - *buttonpage01.button05* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity06:
|
|
name: Button 06 (Optional)
|
|
description: Nextion Editor - *buttonpage01.button06* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity07:
|
|
name: Button 07 (Optional)
|
|
description: Nextion Editor - *buttonpage01.button07* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity08:
|
|
name: Button 08 (Optional)
|
|
description: Nextion Editor - *buttonpage01.button08* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity09:
|
|
name: Button 09 (Optional)
|
|
description: Nextion Editor - *buttonpage02.button01* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity10:
|
|
name: Button 10 (Optional)
|
|
description: Nextion Editor - *buttonpage02.button02* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity11:
|
|
name: Button 11 (Optional)
|
|
description: Nextion Editor - *buttonpage02.button03* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity12:
|
|
name: Button 12 (Optional)
|
|
description: Nextion Editor - *buttonpage02.button04* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity13:
|
|
name: Button 13 (Optional)
|
|
description: Nextion Editor - *buttonpage01.button05* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity14:
|
|
name: Button 14 (Optional)
|
|
description: Nextion Editor - *buttonpage02.button06* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity15:
|
|
name: Button 15 (Optional)
|
|
description: Nextion Editor - *buttonpage02.button07* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity16:
|
|
name: Button 16 (Optional)
|
|
description: Nextion Editor - *buttonpage02.button08* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity17:
|
|
name: Button 17 (Optional)
|
|
description: Nextion Editor - *buttonpage03.button01* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity18:
|
|
name: Button 18 (Optional)
|
|
description: Nextion Editor - *buttonpage03.button02* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity19:
|
|
name: Button 19 (Optional)
|
|
description: Nextion Editor - *buttonpage03.button03* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity20:
|
|
name: Button 20 (Optional)
|
|
description: Nextion Editor - *buttonpage03.button04* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity21:
|
|
name: Button 21 (Optional)
|
|
description: Nextion Editor - *buttonpage03.button05* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity22:
|
|
name: Button 22 (Optional)
|
|
description: Nextion Editor - *buttonpage03.button06* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity23:
|
|
name: Button 23 (Optional)
|
|
description: Nextion Editor - *buttonpage03.button07* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity24:
|
|
name: Button 24 (Optional)
|
|
description: Nextion Editor - *buttonpage03.button08* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity25:
|
|
name: Button 25 (Optional)
|
|
description: Nextion Editor - *buttonpage04.button01* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity26:
|
|
name: Button 26 (Optional)
|
|
description: Nextion Editor - *buttonpage04.button02* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity27:
|
|
name: Button 27 (Optional)
|
|
description: Nextion Editor - *buttonpage04.button03* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity28:
|
|
name: Button 28 (Optional)
|
|
description: Nextion Editor - *buttonpage04.button04* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity29:
|
|
name: Button 29 (Optional)
|
|
description: Nextion Editor - *buttonpage04.button05* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity30:
|
|
name: Button 30 (Optional)
|
|
description: Nextion Editor - *buttonpage04.button06* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity31:
|
|
name: Button 31 (Optional)
|
|
description: Nextion Editor - *buttonpage04.button07* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity32:
|
|
name: Button 32 (Optional)
|
|
description: Nextion Editor - *buttonpage04.button08* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity33:
|
|
name: Button 33 (Optional)
|
|
description: Nextion Editor - *buttonpage05.button01* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity34:
|
|
name: Button 34 (Optional)
|
|
description: Nextion Editor - *buttonpage05.button02* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity35:
|
|
name: Button 35 (Optional)
|
|
description: Nextion Editor - *buttonpage05.button03* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity36:
|
|
name: Button 36 (Optional)
|
|
description: Nextion Editor - *buttonpage05.button04* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity37:
|
|
name: Button 37 (Optional)
|
|
description: Nextion Editor - *buttonpage05.button05* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity38:
|
|
name: Button 38 (Optional)
|
|
description: Nextion Editor - *buttonpage05.button06* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity39:
|
|
name: Button 39 (Optional)
|
|
description: Nextion Editor - *buttonpage05.button07* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
entity40:
|
|
name: Button 40 (Optional)
|
|
description: Nextion Editor - *buttonpage05.button08* **(ONLY light | switch | cover | input_boolean)**
|
|
default: []
|
|
selector:
|
|
entity:
|
|
domain:
|
|
- light
|
|
- switch
|
|
- cover
|
|
- input_boolean
|
|
|
|
mode: parallel
|
|
max: 5000
|
|
|
|
#########################################
|
|
#
|
|
#
|
|
#############################################################
|
|
##### CLOSE - INPUT #####
|
|
#############################################################
|
|
#
|
|
##
|
|
###
|
|
#############################################################################################################################################################################################
|
|
###
|
|
##
|
|
#
|
|
#############################################################
|
|
##### START - Variables #####
|
|
#############################################################
|
|
#
|
|
#
|
|
#########################################
|
|
trigger_variables:
|
|
nspanel_trigger: !input "nspanel_name"
|
|
last_click: "sensor.{{ nspanel_trigger }}_last_click"
|
|
last_click_lightsettings: "sensor.{{ nspanel_trigger }}_last_click_lightsettings"
|
|
last_click_coversettings: "sensor.{{ nspanel_trigger }}_last_click_coversettings"
|
|
|
|
variables:
|
|
nspanel_name: !input "nspanel_name"
|
|
command_text_printf: "esphome.{{ nspanel_name }}_send_command_text_printf"
|
|
command_value: "esphome.{{ nspanel_name }}_send_command_value"
|
|
command_printf: "esphome.{{ nspanel_name }}_send_command_printf"
|
|
tft_path: !input "tft_path"
|
|
humidity: !input "humidity"
|
|
hotwatertemp: !input "hotwatertemp"
|
|
outdoortemp: !input "outdoortemp"
|
|
time: "{{ (as_timestamp(now()) | timestamp_custom('%H:%M')) }}"
|
|
weather: !input "weather"
|
|
# nextion_inited: "switch.{{ nspanel_name }}_nextion_inited"
|
|
nextion_inited: !input "nextion_inited"
|
|
language: !input "language"
|
|
|
|
##### Weather DE #####
|
|
date0_de: "{{ ((as_timestamp(now())) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}"
|
|
date1_de: "{{ ((as_timestamp(now()) + 86400) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}"
|
|
date2_de: "{{ ((as_timestamp(now()) + 172800) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}"
|
|
date3_de: "{{ ((as_timestamp(now()) + 259200) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}"
|
|
date4_de: "{{ ((as_timestamp(now()) + 345600) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}"
|
|
|
|
##### Weather EN #####
|
|
date0_en: "{{ ((as_timestamp(now())) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }}"
|
|
date1_en: "{{ ((as_timestamp(now()) + 86400) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }}"
|
|
date2_en: "{{ ((as_timestamp(now()) + 172800) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }}"
|
|
date3_en: "{{ ((as_timestamp(now()) + 259200) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }}"
|
|
date4_en: "{{ ((as_timestamp(now()) + 345600) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Monday,')| replace('Tue', 'Tuesday,')| replace('Wed', 'Wednesday,')| replace('Thu', 'Thursday,')| replace('Fri', 'Friday,')| replace('Sat', 'Saturday,')| replace('Sun', 'Sunday,') }}"
|
|
|
|
##### Meteorologisk HA Default #####
|
|
ha_weather: "weather.home"
|
|
|
|
##### AccuWeather #####
|
|
accuweather: !input "accuweather"
|
|
accuweather_home: "weather.{{ accuweather }}"
|
|
##### Forcast Day 0 Accuweather #####
|
|
accuweather_realfeel_temperature_min_0d: "sensor.{{ accuweather }}_realfeel_temperature_min_0d"
|
|
accuweather_realfeel_temperature_max_0d: "sensor.{{ accuweather }}_realfeel_temperature_max_0d"
|
|
accuweather_hours_of_sun_0d: "sensor.{{ accuweather }}_hours_of_sun_0d"
|
|
accuweather_uv_index_0d: "sensor.{{ accuweather }}_uv_index_0d"
|
|
accuweather_thunderstorm_probability_day_0d: "sensor.{{ accuweather }}_thunderstorm_probability_day_0d"
|
|
accuweather_thunderstorm_probability_night_0d: "sensor.{{ accuweather }}_thunderstorm_probability_night_0d"
|
|
accuweather_wind_day_0d: "sensor.{{ accuweather }}_wind_day_0d"
|
|
accuweather_wind_night_0d: "sensor.{{ accuweather }}_wind_night_0d"
|
|
##### Forcast Day 1 AccuWeather #####
|
|
accuweather_realfeel_temperature_min_1d: "sensor.{{ accuweather }}_realfeel_temperature_min_1d"
|
|
accuweather_realfeel_temperature_max_1d: "sensor.{{ accuweather }}_realfeel_temperature_max_1d"
|
|
accuweather_hours_of_sun_1d: "sensor.{{ accuweather }}_hours_of_sun_1d"
|
|
accuweather_uv_index_1d: "sensor.{{ accuweather }}_uv_index_1d"
|
|
accuweather_thunderstorm_probability_day_1d: "sensor.{{ accuweather }}_thunderstorm_probability_day_1d"
|
|
accuweather_thunderstorm_probability_night_1d: "sensor.{{ accuweather }}_thunderstorm_probability_night_1d"
|
|
accuweather_wind_day_1d: "sensor.{{ accuweather }}_wind_day_1d"
|
|
accuweather_wind_night_1d: "sensor.{{ accuweather }}_wind_night_1d"
|
|
##### Forcast Day 2 AccuWeather #####
|
|
accuweather_realfeel_temperature_min_2d: "sensor.{{ accuweather }}_realfeel_temperature_min_2d"
|
|
accuweather_realfeel_temperature_max_2d: "sensor.{{ accuweather }}_realfeel_temperature_max_2d"
|
|
accuweather_hours_of_sun_2d: "sensor.{{ accuweather }}_hours_of_sun_2d"
|
|
accuweather_uv_index_2d: "sensor.{{ accuweather }}_uv_index_2d"
|
|
accuweather_thunderstorm_probability_day_2d: "sensor.{{ accuweather }}_thunderstorm_probability_day_2d"
|
|
accuweather_thunderstorm_probability_night_2d: "sensor.{{ accuweather }}_thunderstorm_probability_night_2d"
|
|
accuweather_wind_day_2d: "sensor.{{ accuweather }}_wind_day_2d"
|
|
accuweather_wind_night_2d: "sensor.{{ accuweather }}_wind_night_2d"
|
|
##### Forcast Day 3 AccuWeather #####
|
|
accuweather_realfeel_temperature_min_3d: "sensor.{{ accuweather }}_realfeel_temperature_min_3d"
|
|
accuweather_realfeel_temperature_max_3d: "sensor.{{ accuweather }}_realfeel_temperature_max_3d"
|
|
accuweather_hours_of_sun_3d: "sensor.{{ accuweather }}_hours_of_sun_3d"
|
|
accuweather_uv_index_3d: "sensor.{{ accuweather }}_uv_index_3d"
|
|
accuweather_thunderstorm_probability_day_3d: "sensor.{{ accuweather }}_thunderstorm_probability_day_3d"
|
|
accuweather_thunderstorm_probability_night_3d: "sensor.{{ accuweather }}_thunderstorm_probability_night_3d"
|
|
accuweather_wind_day_3d: "sensor.{{ accuweather }}_wind_day_3d"
|
|
accuweather_wind_night_3d: "sensor.{{ accuweather }}_wind_night_3d"
|
|
##### Forcast Day 4 AccuWeather #####
|
|
accuweather_realfeel_temperature_min_4d: "sensor.{{ accuweather }}_realfeel_temperature_min_4d"
|
|
accuweather_realfeel_temperature_max_4d: "sensor.{{ accuweather }}_realfeel_temperature_max_4d"
|
|
accuweather_hours_of_sun_4d: "sensor.{{ accuweather }}_hours_of_sun_4d"
|
|
accuweather_uv_index_4d: "sensor.{{ accuweather }}_uv_index_4d"
|
|
accuweather_thunderstorm_probability_day_4d: "sensor.{{ accuweather }}_thunderstorm_probability_day_4d"
|
|
accuweather_thunderstorm_probability_night_4d: "sensor.{{ accuweather }}_thunderstorm_probability_night_4d"
|
|
accuweather_wind_day_4d: "sensor.{{ accuweather }}_wind_day_4d"
|
|
accuweather_wind_night_4d: "sensor.{{ accuweather }}_wind_night_4d"
|
|
|
|
##### Buttons #####
|
|
entity01: !input "entity01"
|
|
entity02: !input "entity02"
|
|
entity03: !input "entity03"
|
|
entity04: !input "entity04"
|
|
entity05: !input "entity05"
|
|
entity06: !input "entity06"
|
|
entity07: !input "entity07"
|
|
entity08: !input "entity08"
|
|
entity09: !input "entity09"
|
|
entity10: !input "entity10"
|
|
entity11: !input "entity11"
|
|
entity12: !input "entity12"
|
|
entity13: !input "entity13"
|
|
entity14: !input "entity14"
|
|
entity15: !input "entity15"
|
|
entity16: !input "entity16"
|
|
entity17: !input "entity17"
|
|
entity18: !input "entity18"
|
|
entity19: !input "entity19"
|
|
entity20: !input "entity20"
|
|
entity21: !input "entity21"
|
|
entity22: !input "entity22"
|
|
entity23: !input "entity23"
|
|
entity24: !input "entity24"
|
|
entity25: !input "entity25"
|
|
entity26: !input "entity26"
|
|
entity27: !input "entity27"
|
|
entity28: !input "entity28"
|
|
entity29: !input "entity29"
|
|
entity30: !input "entity30"
|
|
entity31: !input "entity31"
|
|
entity32: !input "entity32"
|
|
entity33: !input "entity33"
|
|
entity34: !input "entity34"
|
|
entity35: !input "entity35"
|
|
entity36: !input "entity36"
|
|
entity37: !input "entity37"
|
|
entity38: !input "entity38"
|
|
entity39: !input "entity39"
|
|
entity40: !input "entity40"
|
|
|
|
#########################################
|
|
#
|
|
#
|
|
#############################################################
|
|
##### CLOSE - Variables #####
|
|
#############################################################
|
|
#
|
|
##
|
|
###
|
|
#############################################################################################################################################################################################
|
|
###
|
|
##
|
|
#
|
|
#############################################################
|
|
##### START - Trigger #####
|
|
#############################################################
|
|
#
|
|
#
|
|
#########################################
|
|
|
|
trigger:
|
|
##### Page Button - Trigger #####
|
|
- platform: event
|
|
event_type: state_changed
|
|
event_data:
|
|
entity_id: "{{ last_click }}"
|
|
id: short_press
|
|
|
|
##### Button LONG Press for jump to Lightsetting or Coversetting Page - Trigger #####
|
|
- platform: template
|
|
value_template: '{{ states(last_click) is match "press" }}'
|
|
for:
|
|
seconds: 2
|
|
id: long_press
|
|
|
|
##### Page Lightsettings - Trigger #####
|
|
- platform: event
|
|
event_type: state_changed
|
|
event_data:
|
|
entity_id: "{{ last_click_lightsettings }}"
|
|
id: light_settings
|
|
|
|
##### Page Coversettings - Trigger #####
|
|
- platform: event
|
|
event_type: state_changed
|
|
event_data:
|
|
entity_id: "{{ last_click_coversettings }}"
|
|
id: cover_settings
|
|
|
|
##### TFT Upload #####
|
|
- platform: event
|
|
event_type: folder_watcher
|
|
event_data:
|
|
event_type: modified
|
|
path: !input "tft_path"
|
|
id: tft_upload
|
|
|
|
##### Page Button Entity sync - Trigger #####
|
|
- platform: template
|
|
value_template: '{{ states(last_click) is match "button" }}'
|
|
id: button_page
|
|
|
|
#### NSPanel boot - Trigger ####
|
|
# - platform: event
|
|
# event_type: state_changed
|
|
# event_data:
|
|
# entity_id: "{{ nextion_inited }}"
|
|
# to: 'on'
|
|
# for:
|
|
# seconds: 5
|
|
# id: nspanel_boot
|
|
#### NSPanel boot - Trigger ####
|
|
- platform: state
|
|
entity_id: !input "nextion_inited"
|
|
to: "on"
|
|
for:
|
|
seconds: 5
|
|
id: nspanel_boot
|
|
|
|
##### Humidity - Trigger #####
|
|
- platform: event
|
|
event_type: state_changed
|
|
event_data:
|
|
entity_id: !input "humidity"
|
|
id: humidity_state
|
|
|
|
##### Hot Water - Trigger #####
|
|
- platform: event
|
|
event_type: state_changed
|
|
event_data:
|
|
entity_id: !input "hotwatertemp"
|
|
id: hotwatertemp_state
|
|
|
|
##### Outdoor Temp - Trigger #####
|
|
- platform: event
|
|
event_type: state_changed
|
|
event_data:
|
|
entity_id: !input "outdoortemp"
|
|
id: outdoortemp_state
|
|
|
|
##### Time - Trigger #####
|
|
- platform: time_pattern
|
|
minutes: "/1"
|
|
id: time_state
|
|
|
|
#### Weather - Trigger ####
|
|
- platform: time_pattern
|
|
minutes: "10"
|
|
id: weather_update
|
|
|
|
##### Button01 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity01"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity01
|
|
|
|
##### Button02 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity02"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity02
|
|
|
|
##### Button03 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity03"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity03
|
|
|
|
##### Button04 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity04"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity04
|
|
|
|
##### Button05 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity05"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity05
|
|
|
|
##### Button06 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity06"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity06
|
|
|
|
##### Button07 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity07"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity07
|
|
|
|
##### Button08 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity08"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity08
|
|
|
|
##### Button09 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity09"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity09
|
|
|
|
##### Button10 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity10"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity10
|
|
|
|
##### Button11 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity11"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity11
|
|
|
|
##### Button12 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity12"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity12
|
|
|
|
##### Button13 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity13"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity13
|
|
|
|
##### Button14 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity14"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity14
|
|
|
|
##### Button15 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity15"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity15
|
|
|
|
##### Button16 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity16"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity16
|
|
|
|
##### Button17 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity17"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity17
|
|
|
|
##### Button18 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity18"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity18
|
|
|
|
##### Button19 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity19"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity19
|
|
|
|
##### Button20 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity20"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity20
|
|
|
|
##### Button21 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity21"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity21
|
|
|
|
##### Button22 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity22"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity22
|
|
|
|
##### Button23 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity23"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity23
|
|
|
|
##### Button24 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity24"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity24
|
|
|
|
##### Button25 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity25"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity25
|
|
|
|
##### Button26 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity26"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity26
|
|
|
|
##### Button27 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity27"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity27
|
|
|
|
##### Button28 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity28"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity28
|
|
|
|
##### Button29 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity29"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity29
|
|
|
|
##### Button30 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity30"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity30
|
|
|
|
##### Button31 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity31"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity31
|
|
|
|
##### Button32 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity32"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity32
|
|
|
|
##### Button33 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity33"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity33
|
|
|
|
##### Button34 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity34"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity34
|
|
|
|
##### Button35 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity35"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity35
|
|
|
|
##### Button36 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity36"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity36
|
|
|
|
##### Button37 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity37"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity37
|
|
|
|
##### Button38 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity38"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity38
|
|
|
|
##### Button39 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity39"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity39
|
|
|
|
##### Button40 Sync - Trigger #####
|
|
- platform: state
|
|
entity_id: !input "entity40"
|
|
for:
|
|
seconds: 1
|
|
id: current_state_entity40
|
|
|
|
#########################################
|
|
#
|
|
#
|
|
#############################################################
|
|
##### CLOSE - Trigger #####
|
|
#############################################################
|
|
#
|
|
##
|
|
###
|
|
#############################################################################################################################################################################################
|
|
###
|
|
##
|
|
#
|
|
#############################################################
|
|
##### START - Action #####
|
|
#############################################################
|
|
#
|
|
#
|
|
#########################################
|
|
action:
|
|
- variables:
|
|
##### Entity - Page Button - Toggle Entity #####
|
|
entity_short: >-
|
|
{%- if states(last_click) == "releasebuttonpage01button01" -%} {{ entity01 }}
|
|
{%- elif states(last_click) == "releasebuttonpage01button02" -%} {{ entity02 }}
|
|
{%- elif states(last_click) == "releasebuttonpage01button03" -%} {{ entity03 }}
|
|
{%- elif states(last_click) == "releasebuttonpage01button04" -%} {{ entity04 }}
|
|
{%- elif states(last_click) == "releasebuttonpage01button05" -%} {{ entity05 }}
|
|
{%- elif states(last_click) == "releasebuttonpage01button06" -%} {{ entity06 }}
|
|
{%- elif states(last_click) == "releasebuttonpage01button07" -%} {{ entity07 }}
|
|
{%- elif states(last_click) == "releasebuttonpage01button08" -%} {{ entity08 }}
|
|
{%- elif states(last_click) == "releasebuttonpage02button01" -%} {{ entity09 }}
|
|
{%- elif states(last_click) == "releasebuttonpage02button02" -%} {{ entity10 }}
|
|
{%- elif states(last_click) == "releasebuttonpage02button03" -%} {{ entity11 }}
|
|
{%- elif states(last_click) == "releasebuttonpage02button04" -%} {{ entity12 }}
|
|
{%- elif states(last_click) == "releasebuttonpage02button05" -%} {{ entity13 }}
|
|
{%- elif states(last_click) == "releasebuttonpage02button06" -%} {{ entity14 }}
|
|
{%- elif states(last_click) == "releasebuttonpage02button07" -%} {{ entity15 }}
|
|
{%- elif states(last_click) == "releasebuttonpage02button08" -%} {{ entity16 }}
|
|
{%- elif states(last_click) == "releasebuttonpage03button01" -%} {{ entity17 }}
|
|
{%- elif states(last_click) == "releasebuttonpage03button02" -%} {{ entity18 }}
|
|
{%- elif states(last_click) == "releasebuttonpage03button03" -%} {{ entity19 }}
|
|
{%- elif states(last_click) == "releasebuttonpage03button04" -%} {{ entity20 }}
|
|
{%- elif states(last_click) == "releasebuttonpage03button05" -%} {{ entity21 }}
|
|
{%- elif states(last_click) == "releasebuttonpage03button06" -%} {{ entity22 }}
|
|
{%- elif states(last_click) == "releasebuttonpage03button07" -%} {{ entity23 }}
|
|
{%- elif states(last_click) == "releasebuttonpage03button08" -%} {{ entity24 }}
|
|
{%- elif states(last_click) == "releasebuttonpage04button01" -%} {{ entity25 }}
|
|
{%- elif states(last_click) == "releasebuttonpage04button02" -%} {{ entity26 }}
|
|
{%- elif states(last_click) == "releasebuttonpage04button03" -%} {{ entity27 }}
|
|
{%- elif states(last_click) == "releasebuttonpage04button04" -%} {{ entity28 }}
|
|
{%- elif states(last_click) == "releasebuttonpage04button05" -%} {{ entity29 }}
|
|
{%- elif states(last_click) == "releasebuttonpage04button06" -%} {{ entity30 }}
|
|
{%- elif states(last_click) == "releasebuttonpage04button07" -%} {{ entity31 }}
|
|
{%- elif states(last_click) == "releasebuttonpage04button08" -%} {{ entity32 }}
|
|
{%- elif states(last_click) == "releasebuttonpage05button01" -%} {{ entity33 }}
|
|
{%- elif states(last_click) == "releasebuttonpage05button02" -%} {{ entity34 }}
|
|
{%- elif states(last_click) == "releasebuttonpage05button03" -%} {{ entity35 }}
|
|
{%- elif states(last_click) == "releasebuttonpage05button04" -%} {{ entity36 }}
|
|
{%- elif states(last_click) == "releasebuttonpage05button05" -%} {{ entity37 }}
|
|
{%- elif states(last_click) == "releasebuttonpage05button06" -%} {{ entity38 }}
|
|
{%- elif states(last_click) == "releasebuttonpage05button07" -%} {{ entity39 }}
|
|
{%- elif states(last_click) == "releasebuttonpage05button08" -%} {{ entity40 }}
|
|
{%- endif -%}
|
|
|
|
##### Entity - Page Lightsettings #####
|
|
entity_long: >-
|
|
{%- if states(last_click) == "pressbuttonpage01button01" -%} {{ entity01 }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button02" -%} {{ entity02 }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button03" -%} {{ entity03 }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button04" -%} {{ entity04 }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button05" -%} {{ entity05 }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button06" -%} {{ entity06 }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button07" -%} {{ entity07 }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button08" -%} {{ entity08 }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button01" -%} {{ entity09 }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button02" -%} {{ entity10 }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button03" -%} {{ entity11 }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button04" -%} {{ entity12 }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button05" -%} {{ entity13 }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button06" -%} {{ entity14 }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button07" -%} {{ entity15 }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button08" -%} {{ entity16 }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button01" -%} {{ entity17 }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button02" -%} {{ entity18 }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button03" -%} {{ entity19 }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button04" -%} {{ entity20 }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button05" -%} {{ entity21 }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button06" -%} {{ entity22 }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button07" -%} {{ entity23 }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button08" -%} {{ entity24 }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button01" -%} {{ entity25 }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button02" -%} {{ entity26 }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button03" -%} {{ entity27 }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button04" -%} {{ entity28 }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button05" -%} {{ entity29 }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button06" -%} {{ entity30 }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button07" -%} {{ entity31 }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button08" -%} {{ entity32 }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button01" -%} {{ entity33 }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button02" -%} {{ entity34 }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button03" -%} {{ entity35 }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button04" -%} {{ entity36 }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button05" -%} {{ entity37 }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button06" -%} {{ entity38 }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button07" -%} {{ entity39 }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button08" -%} {{ entity40 }}
|
|
{%- endif -%}
|
|
|
|
##### Entity - Page Lightsettings - Skip Back #####
|
|
entity_back: >-
|
|
{%- if states(last_click) == "pressbuttonpage01button01" -%} {{ "page buttonpage01" }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button02" -%} {{ "page buttonpage01" }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button03" -%} {{ "page buttonpage01" }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button04" -%} {{ "page buttonpage01" }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button05" -%} {{ "page buttonpage01" }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button06" -%} {{ "page buttonpage01" }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button07" -%} {{ "page buttonpage01" }}
|
|
{%- elif states(last_click) == "pressbuttonpage01button08" -%} {{ "page buttonpage01" }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button01" -%} {{ "page buttonpage02" }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button02" -%} {{ "page buttonpage02" }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button03" -%} {{ "page buttonpage02" }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button04" -%} {{ "page buttonpage02" }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button05" -%} {{ "page buttonpage02" }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button06" -%} {{ "page buttonpage02" }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button07" -%} {{ "page buttonpage02" }}
|
|
{%- elif states(last_click) == "pressbuttonpage02button08" -%} {{ "page buttonpage02" }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button01" -%} {{ "page buttonpage03" }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button02" -%} {{ "page buttonpage03" }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button03" -%} {{ "page buttonpage03" }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button04" -%} {{ "page buttonpage03" }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button05" -%} {{ "page buttonpage03" }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button06" -%} {{ "page buttonpage03" }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button07" -%} {{ "page buttonpage03" }}
|
|
{%- elif states(last_click) == "pressbuttonpage03button08" -%} {{ "page buttonpage03" }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button01" -%} {{ "page buttonpage04" }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button02" -%} {{ "page buttonpage04" }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button03" -%} {{ "page buttonpage04" }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button04" -%} {{ "page buttonpage04" }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button05" -%} {{ "page buttonpage04" }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button06" -%} {{ "page buttonpage04" }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button07" -%} {{ "page buttonpage04" }}
|
|
{%- elif states(last_click) == "pressbuttonpage04button08" -%} {{ "page buttonpage04" }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button01" -%} {{ "page buttonpage05" }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button02" -%} {{ "page buttonpage05" }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button03" -%} {{ "page buttonpage05" }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button04" -%} {{ "page buttonpage05" }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button05" -%} {{ "page buttonpage05" }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button06" -%} {{ "page buttonpage05" }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button07" -%} {{ "page buttonpage05" }}
|
|
{%- elif states(last_click) == "pressbuttonpage05button08" -%} {{ "page buttonpage05" }}
|
|
{%- endif -%}
|
|
|
|
##### Page Button - SHORT Press - Toggle #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: short_press
|
|
sequence:
|
|
- service: >-
|
|
{% if entity_short is match 'light.' %}
|
|
light.toggle
|
|
{% elif entity_short is match 'switch.' %}
|
|
switch.toggle
|
|
{% elif entity_short is match 'cover.' %}
|
|
cover.toggle
|
|
{% elif entity_short is match 'input_boolean.' %}
|
|
input_boolean.toggle
|
|
{% endif %}
|
|
data:
|
|
entity_id: "{{ entity_short }}"
|
|
|
|
##### Page Lightsettings - JUMP to Page Lightsettings and SYNC Light Settings #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: long_press
|
|
- condition: template
|
|
value_template: '{{ entity_long is match "light." }}'
|
|
sequence:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: page lightsettings
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: lightsettings.a03
|
|
message: '{{ (state_attr(entity_long, "brightness") | int * 100 / 254) |round(0) }} %'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: lightsettings.a04
|
|
message: '{{ state_attr(entity_long, "color_temp") |int }}'
|
|
|
|
##### Page Lightsettings - SYNC Light Button ON / OFF #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: long_press
|
|
- condition: template
|
|
value_template: '{{ states(entity_long) == "on" }}'
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: lightsettings.a06
|
|
message: 1
|
|
|
|
##### Page Lightsettings - Brightness Slider #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: light_settings
|
|
- condition: template
|
|
value_template: '{{ states(last_click_lightsettings) is match "brightness\d+" }}'
|
|
sequence:
|
|
- service: light.turn_on
|
|
data:
|
|
entity_id: "{{ entity_long }}"
|
|
brightness_pct: '{{ states(last_click_lightsettings) |replace("brightness","") | int }}'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: lightsettings.a03
|
|
message: '{{ states(last_click_lightsettings) |replace("brightness","") | int }} %'
|
|
|
|
##### Page Lightsettings - Color_Temp Slider #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: light_settings
|
|
- condition: template
|
|
value_template: '{{ states(last_click_lightsettings) is match "colortemp\d+" }}'
|
|
sequence:
|
|
- service: light.turn_on
|
|
data:
|
|
entity_id: "{{ entity_long }}"
|
|
color_temp: '{{ states(last_click_lightsettings) |replace("colortemp","") | int }}'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: lightsettings.a04
|
|
message: '{{ states(last_click_lightsettings) |replace("colortemp","") | int }}'
|
|
|
|
##### Page Lightsettings - Color RGB Slider #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: light_settings
|
|
- condition: template
|
|
value_template: '{{ states(last_click_lightsettings) is match "\d+,\d+,\d+" }}'
|
|
sequence:
|
|
- service: light.turn_on
|
|
data:
|
|
entity_id: "{{ entity_long }}"
|
|
rgb_color: '{{ states(last_click_lightsettings).split(",") }}'
|
|
|
|
##### Page Lightsettings - Toggle Light #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: light_settings
|
|
- condition: template
|
|
value_template: '{{ states(last_click_lightsettings) == "releaselight" }}'
|
|
sequence:
|
|
- service: light.toggle
|
|
data:
|
|
entity_id: "{{ entity_long }}"
|
|
- delay:
|
|
milliseconds: 250
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: lightsettings.a03
|
|
message: '{{ (state_attr(entity_long, "brightness") | int * 100 / 254) |round(0) }} %'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: lightsettings.a04
|
|
message: '{{ state_attr(entity_long, "color_temp") |int }}'
|
|
|
|
##### Page Lightsettings - Close Lightsettings #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: light_settings
|
|
- condition: template
|
|
value_template: '{{ states(last_click_lightsettings) == "releaselightsettingsclose" }}'
|
|
sequence:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: "{{ entity_back }}"
|
|
|
|
##### Page Coversettings - JUMP to Page Coversettings and SYNC Cover Settings #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: long_press
|
|
- condition: template
|
|
value_template: '{{ entity_long is match "cover." }}'
|
|
sequence:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: page coversettings
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: coversettings.a03
|
|
message: '{{ (state_attr(entity_long, "position") | int ) |round(0) }} %'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: coversettings.a04
|
|
message: '{{ (state_attr(entity_long, "battery") | int ) |round(0) }} %'
|
|
|
|
##### Page Coversettings - SYNC Cover Button ON / OFF #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: long_press
|
|
- condition: template
|
|
value_template: '{{ states(entity_long) == "open" }}'
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: coversettings.a06
|
|
message: 1
|
|
|
|
##### Page Coversettings - Cover Slider #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: cover_settings
|
|
- condition: template
|
|
value_template: '{{ states(last_click_coversettings) is match "coverposition\d+" }}'
|
|
sequence:
|
|
- service: cover.set_cover_position
|
|
data:
|
|
entity_id: "{{ entity_long }}"
|
|
position: '{{ states(last_click_coversettings) |replace("coverposition","") | int }}'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: coversettings.a03
|
|
message: '{{ states(last_click_coversettings) |replace("coverposition","") | int }} %'
|
|
|
|
##### Page Coversettings - Toggle Cover #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: cover_settings
|
|
- condition: template
|
|
value_template: '{{ states(last_click_coversettings) == "releasecover" }}'
|
|
sequence:
|
|
- service: cover.toggle
|
|
data:
|
|
entity_id: "{{ entity_long }}"
|
|
- delay:
|
|
milliseconds: 250
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: coversettings.a03
|
|
message: '{{ (state_attr(entity_long, "position") | int ) |round(0) }} %'
|
|
|
|
##### Page Coversettings - Close Coversettings #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: cover_settings
|
|
- condition: template
|
|
value_template: '{{ states(last_click_coversettings) == "releasecoversettingsclose" }}'
|
|
sequence:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: "{{ entity_back }}"
|
|
|
|
##### TFT Upload Automation #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: tft_upload
|
|
sequence:
|
|
- delay:
|
|
seconds: 2
|
|
- service: esphome.nspanel_buero_upload_tft
|
|
data: {}
|
|
|
|
##### Humidity #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- humidity_state
|
|
- nspanel_boot
|
|
sequence:
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: home.a04
|
|
message: "{{ states(humidity) |round(0) }}%"
|
|
|
|
##### Hotwater Temp #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- hotwatertemp_state
|
|
- nspanel_boot
|
|
- condition: template
|
|
value_template: '{{ hotwatertemp is match "sensor." }}'
|
|
sequence:
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: home.a07
|
|
message: "{{ states(hotwatertemp) |round(1) }}°"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: thermostat.a08
|
|
message: "{{ states(hotwatertemp) |round(1) }}°"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.p01.pic=68
|
|
|
|
##### Outdoor Temp Entity #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- outdoortemp_state
|
|
- nspanel_boot
|
|
- time_state
|
|
- condition: template
|
|
value_template: '{{ outdoortemp is match "sensor." }}'
|
|
sequence:
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: home.a06
|
|
message: "{{ states(outdoortemp) |round(0) }}°"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: thermostat.a07
|
|
message: "{{ states(outdoortemp) |round(0) }}°"
|
|
|
|
##### Outdoor Temp Meteorologisk #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- time_state
|
|
- nspanel_boot
|
|
- condition: template
|
|
value_template: '{{ outdoortemp == "default" }}'
|
|
sequence:
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: home.a06
|
|
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: thermostat.a07
|
|
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
|
|
|
##### Outdoor Temp AccuWeather #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- time_state
|
|
- nspanel_boot
|
|
- condition: template
|
|
value_template: '{{ outdoortemp == "accuweather" }}'
|
|
sequence:
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: home.a06
|
|
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: thermostat.a07
|
|
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
|
|
|
##### Date Home Page + Forcast DE #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- time_state
|
|
- nspanel_boot
|
|
- condition: template
|
|
value_template: '{{ language == "DE" }}'
|
|
sequence:
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: home.a02
|
|
message: "{{ date0_de }}"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a02
|
|
message: "{{ date0_de }}"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a02
|
|
message: "{{ date1_de }}"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a02
|
|
message: "{{ date2_de }}"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a02
|
|
message: "{{ date3_de }}"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a02
|
|
message: "{{ date4_de }}"
|
|
|
|
##### Date Home Page + Forcast EN #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- time_state
|
|
- nspanel_boot
|
|
- condition: template
|
|
value_template: '{{ language == "EN" }}'
|
|
sequence:
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: home.a02
|
|
message: "{{ date0_en }}"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a02
|
|
message: "{{ date0_en }}"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a02
|
|
message: "{{ date1_en }}"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a02
|
|
message: "{{ date2_en }}"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a02
|
|
message: "{{ date3_en }}"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a02
|
|
message: "{{ date4_de }}"
|
|
|
|
##### Time Home Page #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- time_state
|
|
- nspanel_boot
|
|
sequence:
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: home.a01
|
|
message: "{{ time }}"
|
|
|
|
##### language Setting DE #####
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- nspanel_boot
|
|
- condition: template
|
|
value_template: '{{ language == "DE" }}'
|
|
sequence:
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a01
|
|
message: Heute
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a01
|
|
message: Morgen
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a01
|
|
message: in 2 Tagen
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a01
|
|
message: in 3 Tagen
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a01
|
|
message: in 4 Tagen
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: settings.a06
|
|
message: Neustart
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: settings.a07
|
|
message: Sleep
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: settings.a08
|
|
message: Helligkeit
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: settings.a09
|
|
message: Dimmen
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: coversettings.a07
|
|
message: Rollo
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: coversettings.a08
|
|
message: Position
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: lightsettings.a07
|
|
message: Licht
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: lightsettings.a08
|
|
message: Helligkeit
|
|
|
|
|
|
#########################################
|
|
#
|
|
#
|
|
#############################################################
|
|
##### CLOSE - START - Action #####
|
|
#############################################################
|
|
#
|
|
##
|
|
###
|
|
#############################################################################################################################################################################################
|
|
###
|
|
##
|
|
#
|
|
#############################################################
|
|
##### START - HA Button SYNC #####
|
|
#############################################################
|
|
#
|
|
#
|
|
#########################################
|
|
|
|
##### Button01 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity01
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity01
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button01
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity01
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity01
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button01
|
|
message: 0
|
|
|
|
##### Button02 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity02
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity02
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button02
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity02
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity02
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button02
|
|
message: 0
|
|
|
|
##### Button03 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity03
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity03
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button03
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity03
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity03
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button03
|
|
message: 0
|
|
|
|
##### Button04 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity04
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity04
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button04
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity04
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity04
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button04
|
|
message: 0
|
|
|
|
##### Button05 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity05
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity05
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button05
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity05
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity05
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button05
|
|
message: 0
|
|
|
|
##### Button06 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity06
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity06
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button06
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity06
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity06
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button06
|
|
message: 0
|
|
|
|
##### Button07 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity07
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity07
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button07
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity07
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity07
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button07
|
|
message: 0
|
|
|
|
##### Button08 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity08
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity08
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button08
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity08
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity08
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage01.button08
|
|
message: 0
|
|
|
|
##### Button09 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity09
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity09
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button01
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity09
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity09
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button01
|
|
message: 0
|
|
|
|
##### Button10 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity10
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity10
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button02
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity10
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity10
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button02
|
|
message: 0
|
|
|
|
##### Button11 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity11
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity11
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button03
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity11
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity11
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button03
|
|
message: 0
|
|
|
|
##### Button12 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity12
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity12
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button04
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity12
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity12
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button04
|
|
message: 0
|
|
|
|
##### Button13 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity13
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity13
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button05
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity13
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity13
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button05
|
|
message: 0
|
|
|
|
##### Button14 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity14
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity14
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button06
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity14
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity14
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button06
|
|
message: 0
|
|
|
|
##### Button15 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity15
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity15
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button07
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity15
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity15
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button07
|
|
message: 0
|
|
|
|
##### Button16 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity16
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity16
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button08
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity16
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity16
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage02.button08
|
|
message: 0
|
|
|
|
##### Button17 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity17
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity17
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button01
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity17
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity17
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button01
|
|
message: 0
|
|
|
|
##### Button18 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity18
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity18
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button02
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity18
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity18
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button02
|
|
message: 0
|
|
|
|
##### Button19 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity19
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity19
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button03
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity19
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity19
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button03
|
|
message: 0
|
|
|
|
##### Button20 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity20
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity20
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button04
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity20
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity20
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button04
|
|
message: 0
|
|
|
|
##### Button21 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity21
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity21
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button05
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity21
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity21
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button05
|
|
message: 0
|
|
|
|
##### Button22 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity22
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity22
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button06
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity22
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity22
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button06
|
|
message: 0
|
|
|
|
##### Button23 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity23
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity23
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button07
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity23
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity23
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button07
|
|
message: 0
|
|
|
|
##### Button24 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity24
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity24
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button08
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity24
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity24
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage03.button08
|
|
message: 0
|
|
|
|
##### Button25 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity25
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity25
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button01
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity25
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity25
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button01
|
|
message: 0
|
|
|
|
##### Button26 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity26
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity26
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button02
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity26
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity26
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button02
|
|
message: 0
|
|
|
|
##### Button27 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity27
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity27
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button03
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity27
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity27
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button03
|
|
message: 0
|
|
|
|
##### Button28 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity28
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity28
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button04
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity28
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity28
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button04
|
|
message: 0
|
|
|
|
##### Button29 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity29
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity29
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button05
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity29
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity29
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button05
|
|
message: 0
|
|
|
|
##### Button30 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity30
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity30
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button06
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity30
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity30
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button06
|
|
message: 0
|
|
|
|
##### Button31 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity31
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity31
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button07
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity31
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity31
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button07
|
|
message: 0
|
|
|
|
##### Button32 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity32
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity32
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button08
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity32
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity32
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage04.button08
|
|
message: 0
|
|
|
|
##### Button33 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity33
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity33
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button01
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity33
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity33
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button01
|
|
message: 0
|
|
|
|
##### Button34 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity34
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity34
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button02
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity34
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity34
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button02
|
|
message: 0
|
|
|
|
##### Button35 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity35
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity35
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button03
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity35
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity35
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button03
|
|
message: 0
|
|
|
|
##### Button36 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity36
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity36
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button04
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity36
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity36
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button04
|
|
message: 0
|
|
|
|
##### Button37 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity37
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity37
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button05
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity37
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity37
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button05
|
|
message: 0
|
|
|
|
##### Button38 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity38
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity38
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button06
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity38
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity38
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button06
|
|
message: 0
|
|
|
|
##### Button39 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity39
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity39
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button07
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity39
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity39
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button07
|
|
message: 0
|
|
|
|
##### Button40 #################################################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity40
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity40
|
|
state:
|
|
- "on"
|
|
- "open"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button08
|
|
message: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- current_state_entity40
|
|
- button_page
|
|
- nspanel_boot
|
|
- condition: state
|
|
entity_id: !input entity40
|
|
state:
|
|
- "off"
|
|
- "closed"
|
|
sequence:
|
|
- service: "{{ command_value }}"
|
|
data:
|
|
component: buttonpage05.button08
|
|
message: 0
|
|
|
|
#########################################
|
|
#
|
|
#
|
|
#############################################################
|
|
##### CLOSE - HA Button SYNC #####
|
|
#############################################################
|
|
#
|
|
##
|
|
###
|
|
#############################################################################################################################################################################################
|
|
###
|
|
##
|
|
#
|
|
#############################################################
|
|
##### START - Weather Forcast Meteorologisk HA Default #####
|
|
#############################################################
|
|
#
|
|
#
|
|
#########################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- nspanel_boot
|
|
- weather_update
|
|
- time_state
|
|
- condition: template
|
|
value_template: '{{ weather == "Default" }}'
|
|
##### Weather Icon Home Meteorologisk HA Default #####
|
|
sequence:
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'sunny'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'cloudy'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'rainy'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'pouring'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'snowy'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'hail'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'snowy-rainy'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'fog'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'windy'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'windy-variant'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'lightning'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'partlycloudy' and states('sun.sun') == 'above_horizon' }}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'partlycloudy' and states('sun.sun') == 'below_horizon' }}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=12
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'lightning-rainy' and states('sun.sun') == 'above_horizon'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'lightning-rainy' and states('sun.sun') == 'below_horizon'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=14
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'execptional' and states('sun.sun') == 'above_horizon'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'execptional' and states('sun.sun') == 'below_horizon'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=14
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(ha_weather) == 'clear-night'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=15
|
|
##### Forcast Day 0 Meteorologisk #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a04 ### Temperature MIN ###
|
|
message: "-"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a05 ### Temperature MAX ###
|
|
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
|
##### field 1 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a06
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.p06.pic=53
|
|
##### field 2 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a07
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.p07.pic=53
|
|
##### field 3 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a08
|
|
message: '{{state_attr(ha_weather,"wind_speed") | round(0)}} km/h'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.p08.pic=63
|
|
##### field 4 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a09
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.p09.pic=53
|
|
##### field 5 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a10
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.p10.pic=53
|
|
##### ICON #####
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''sunny''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''cloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''pouring''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''snowy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''hail''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''snowy-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''fog''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''windy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''windy-variant''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''lightning''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''partlycloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''lightning-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''execptional''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''clear-night''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=15
|
|
##### Forcast Day 1 Meteorologisk #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a04 ### Temperature MIN ###
|
|
message: '{{state_attr(ha_weather,"forecast")[0].templow | round(0)}}°'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a05 ### Temperature MAX ###
|
|
message: '{{state_attr(ha_weather,"forecast")[0].temperature | round(0)}}°'
|
|
##### field 1 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a06
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.p06.pic=53
|
|
##### field 2 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a07
|
|
message: '{{state_attr(ha_weather,"forecast")[0].precipitation| round(1)}} mm'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.p07.pic=59
|
|
##### field 3 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a08
|
|
message: '{{state_attr(ha_weather,"forecast")[0].wind_speed | round(0)}} km/h'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.p08.pic=63
|
|
##### field 4 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a09
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.p09.pic=53
|
|
##### field 5 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a10
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.p10.pic=53
|
|
##### ICON #####
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''sunny''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''cloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''pouring''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''snowy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''hail''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''snowy-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''fog''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''windy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''windy-variant''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''lightning''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''partlycloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''lightning-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''execptional''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[0].condition
|
|
== ''clear-night''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=15
|
|
##### Forcast Day 2 Meteorologisk #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a04 ### Temperature MIN ###
|
|
message: '{{state_attr(ha_weather,"forecast")[1].templow | round(0)}}°'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a05 ### Temperature MAX ###
|
|
message: '{{state_attr(ha_weather,"forecast")[1].temperature | round(0)}}°'
|
|
##### field 1 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a06
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.p06.pic=53
|
|
##### field 2 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a07
|
|
message: '{{state_attr(ha_weather,"forecast")[1].precipitation| round(1)}} mm'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.p07.pic=59
|
|
##### field 3 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a08
|
|
message: '{{state_attr(ha_weather,"forecast")[1].wind_speed | round(0)}} km/h'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.p08.pic=63
|
|
##### field 4 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a09
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.p09.pic=53
|
|
##### field 5 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a10
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.p10.pic=53
|
|
##### ICON #####
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''sunny''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''cloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''pouring''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''snowy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''hail''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''snowy-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''fog''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''windy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''windy-variant''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''lightning''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''partlycloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''lightning-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''execptional''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[1].condition
|
|
== ''clear-night''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=15
|
|
##### Forcast Day 3 Meteorologisk #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a04 ### Temperature MIN ###
|
|
message: '{{state_attr(ha_weather,"forecast")[2].templow | round(0)}}°'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a05 ### Temperature MAX ###
|
|
message: '{{state_attr(ha_weather,"forecast")[2].temperature | round(0)}}°'
|
|
##### field 1 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a06
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.p06.pic=53
|
|
##### field 2 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a07
|
|
message: '{{state_attr(ha_weather,"forecast")[2].precipitation| round(1)}} mm'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.p07.pic=59
|
|
##### field 3 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a08
|
|
message: '{{state_attr(ha_weather,"forecast")[2].wind_speed | round(0)}} km/h'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.p08.pic=63
|
|
##### field 4 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a09
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.p09.pic=53
|
|
##### field 5 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a10
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.p10.pic=53
|
|
##### ICON #####
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''sunny''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''cloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''pouring''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''snowy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''hail''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''snowy-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''fog''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''windy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''windy-variant''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''lightning''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''partlycloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''lightning-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''execptional''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[2].condition
|
|
== ''clear-night''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=15
|
|
##### Forcast Day 4 Meteorologisk #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a04 ### Temperature MIN ###
|
|
message: '{{state_attr(ha_weather,"forecast")[3].templow | round(0)}}°'
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a05 ### Temperature MAX ###
|
|
message: '{{state_attr(ha_weather,"forecast")[3].temperature | round(0)}}°'
|
|
##### field 1 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a06
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.p06.pic=53
|
|
##### field 2 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a07
|
|
message: '{{state_attr(ha_weather,"forecast")[3].precipitation| round(1)}} mm'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.p07.pic=59
|
|
##### field 3 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a08
|
|
message: '{{state_attr(ha_weather,"forecast")[3].wind_speed | round(0)}} km/h'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.p08.pic=63
|
|
##### field 4 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a09
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.p09.pic=53
|
|
##### field 5 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a10
|
|
message: " "
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.p10.pic=53
|
|
##### ICON #####
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''sunny''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''cloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''pouring''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''snowy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''hail''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''snowy-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''fog''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''windy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''windy-variant''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''lightning''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''partlycloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''lightning-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''execptional''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(ha_weather,"forecast")[3].condition
|
|
== ''clear-night''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=15
|
|
#########################################
|
|
#
|
|
#
|
|
#############################################################
|
|
##### CLOSE - Weather Forcast Meteorologisk HA Default #####
|
|
#############################################################
|
|
#
|
|
##
|
|
###
|
|
#############################################################################################################################################################################################
|
|
###
|
|
##
|
|
#
|
|
#############################################################
|
|
##### START - Weather Forcast AccuWeather #####
|
|
#############################################################
|
|
#
|
|
#
|
|
#########################################
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- nspanel_boot
|
|
- weather_update
|
|
- time_state
|
|
- condition: template
|
|
value_template: '{{ weather == "AccuWeather" }}'
|
|
##### Weather Icon Home AccuWeather #####
|
|
sequence:
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'sunny'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'cloudy'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'rainy'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'pouring'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'snowy'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'hail'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'snowy-rainy'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'fog'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'windy'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'windy-variant'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'lightning'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'partlycloudy' and states('sun.sun') == 'above_horizon' }}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'partlycloudy' and states('sun.sun') == 'below_horizon' }}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=12
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'lightning-rainy' and states('sun.sun') == 'above_horizon'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'lightning-rainy' and states('sun.sun') == 'below_horizon'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=14
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'execptional' and states('sun.sun') == 'above_horizon'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'execptional' and states('sun.sun') == 'below_horizon'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=14
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{states(accuweather_home) == 'clear-night'}}"
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: home.a05.pic=15
|
|
|
|
##### Forcast Day 0 AccuWeather #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a04 ### Temperature MIN ###
|
|
message: "{{states(accuweather_realfeel_temperature_min_0d) | round(0)}}°"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a05 ### Temperature MAX ###
|
|
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
|
##### field 1 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a06
|
|
message:
|
|
'{{ state_attr(accuweather_home,"forecast")[0].precipitation_probability}}
|
|
%'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.p06.pic=59
|
|
##### field 2 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a07
|
|
message: "{{states(accuweather_hours_of_sun_0d) | round(0)}} h"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.p07.pic=60
|
|
##### field 3 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a08
|
|
message: '{{state_attr(accuweather_uv_index_0d, "level")}} {{states(accuweather_uv_index_0d) | round(0)}}'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.p08.pic=61
|
|
##### field 4 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a09
|
|
message:
|
|
"{{states(accuweather_thunderstorm_probability_day_0d) | round(0)}}
|
|
%"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.p09.pic=62
|
|
##### field 5 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather01.a10
|
|
message: "{{states(accuweather_wind_day_0d) | round(0)}} km/h"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.p10.pic=63
|
|
##### ICON #####
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''sunny''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''cloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''pouring''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''snowy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''hail''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''snowy-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''fog''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''windy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''windy-variant''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''lightning''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''partlycloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''lightning-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''execptional''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[0].condition
|
|
== ''clear-night''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather01.a03.pic=15
|
|
##### Forcast Day 1 AccuWeather #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a04 ### Temperature MIN ###
|
|
message: "{{states(accuweather_realfeel_temperature_min_1d) | round(0)}}°"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a05 ### Temperature MAX ###
|
|
message: "{{states(accuweather_realfeel_temperature_max_1d) | round(0)}}°"
|
|
##### field 1 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a06
|
|
message:
|
|
'{{ state_attr(accuweather_home,"forecast")[1].precipitation_probability}}
|
|
%'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.p06.pic=59
|
|
##### field 2 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a07
|
|
message: "{{states(accuweather_hours_of_sun_1d) | round(0)}} h"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.p07.pic=60
|
|
##### field 3 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a08
|
|
message: '{{state_attr(accuweather_uv_index_1d, "level")}} {{states(accuweather_uv_index_1d) | round(0)}}'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.p08.pic=61
|
|
##### field 4 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a09
|
|
message:
|
|
"{{states(accuweather_thunderstorm_probability_day_1d) | round(0)}}
|
|
%"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.p09.pic=62
|
|
##### field 5 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather02.a10
|
|
message: "{{states(accuweather_wind_day_1d) | round(0)}} km/h"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.p10.pic=63
|
|
##### ICON #####
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''sunny''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''cloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''pouring''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''snowy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''hail''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''snowy-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''fog''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''windy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''windy-variant''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''lightning''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''partlycloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''lightning-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''execptional''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[1].condition
|
|
== ''clear-night''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather02.a03.pic=15
|
|
##### Forcast Day 2 AccuWeather #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a04 ### Temperature MIN ###
|
|
message: "{{states(accuweather_realfeel_temperature_min_2d) | round(0)}}°"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a05 ### Temperature MAX ###
|
|
message: "{{states(accuweather_realfeel_temperature_max_2d) | round(0)}}°"
|
|
##### field 1 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a06
|
|
message:
|
|
'{{ state_attr(accuweather_home,"forecast")[2].precipitation_probability}}
|
|
%'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.p06.pic=59
|
|
##### field 2 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a07
|
|
message: "{{states(accuweather_hours_of_sun_2d) | round(0)}} h"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.p07.pic=60
|
|
##### field 3 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a08
|
|
message: '{{state_attr(accuweather_uv_index_2d, "level")}} {{states(accuweather_uv_index_2d) | round(0)}}'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.p08.pic=61
|
|
##### field 4 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a09
|
|
message:
|
|
"{{states(accuweather_thunderstorm_probability_day_2d) | round(0)}}
|
|
%"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.p09.pic=62
|
|
##### field 5 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather03.a10
|
|
message: "{{states(accuweather_wind_day_2d) | round(0)}} km/h"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.p10.pic=63
|
|
##### ICON #####
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''sunny''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''cloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''pouring''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''snowy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''hail''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''snowy-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''fog''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''windy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''windy-variant''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''lightning''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''partlycloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''lightning-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''execptional''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[2].condition
|
|
== ''clear-night''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather03.a03.pic=15
|
|
##### Forcast Day 3 AccuWeather #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a04 ### Temperature MIN ###
|
|
message: "{{states(accuweather_realfeel_temperature_min_3d) | round(0)}}°"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a05 ### Temperature MAX ###
|
|
message: "{{states(accuweather_realfeel_temperature_max_3d) | round(0)}}°"
|
|
##### field 1 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a06
|
|
message:
|
|
'{{ state_attr(accuweather_home,"forecast")[3].precipitation_probability}}
|
|
%'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.p06.pic=59
|
|
##### field 2 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a07
|
|
message: "{{states(accuweather_hours_of_sun_3d) | round(0)}} h"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.p07.pic=60
|
|
##### field 3 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a08
|
|
message: '{{state_attr(accuweather_uv_index_3d, "level")}} {{states(accuweather_uv_index_3d) | round(0)}}'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.p08.pic=61
|
|
##### field 4 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a09
|
|
message:
|
|
"{{states(accuweather_thunderstorm_probability_day_3d) | round(0)}}
|
|
%"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.p09.pic=62
|
|
##### field 5 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather04.a10
|
|
message: "{{states(accuweather_wind_day_3d) | round(0)}} km/h"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.p10.pic=63
|
|
##### ICON #####
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''sunny''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''cloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''pouring''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''snowy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''hail''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''snowy-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''fog''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''windy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''windy-variant''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''lightning''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''partlycloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''lightning-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''execptional''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[3].condition
|
|
== ''clear-night''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather04.a03.pic=15
|
|
##### Forcast Day 4 AccuWeather #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a04 ### Temperature MIN ###
|
|
message: "{{states(accuweather_realfeel_temperature_min_4d) | round(0)}}°"
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a05 ### Temperature MAX ###
|
|
message: "{{states(accuweather_realfeel_temperature_max_4d) | round(0)}}°"
|
|
##### field 1 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a06
|
|
message:
|
|
'{{ state_attr(accuweather_home,"forecast")[4].precipitation_probability}}
|
|
%'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.p06.pic=59
|
|
##### field 2 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a07
|
|
message: "{{states(accuweather_hours_of_sun_4d) | round(0)}} h"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.p07.pic=60
|
|
##### field 3 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a08
|
|
message: '{{state_attr(accuweather_uv_index_4d, "level")}} {{states(accuweather_uv_index_4d) | round(0)}}'
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.p08.pic=61
|
|
##### field 4 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a09
|
|
message:
|
|
"{{states(accuweather_thunderstorm_probability_day_4d) | round(0)}}
|
|
%"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.p09.pic=62
|
|
##### field 5 #####
|
|
- service: "{{ command_text_printf }}"
|
|
data:
|
|
component: weather05.a10
|
|
message: "{{states(accuweather_wind_day_4d) | round(0)}} km/h"
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.p10.pic=63
|
|
##### ICON #####
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''sunny''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=2
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''cloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=3
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=4
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''pouring''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=5
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''snowy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=6
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''hail''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''snowy-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=7
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''fog''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=8
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''windy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''windy-variant''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=9
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''lightning''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=10
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''partlycloudy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=11
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''lightning-rainy''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''execptional''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=13
|
|
- if:
|
|
- condition: template
|
|
value_template:
|
|
'{{state_attr(accuweather_home,"forecast")[4].condition
|
|
== ''clear-night''}}'
|
|
then:
|
|
- service: "{{ command_printf }}"
|
|
data:
|
|
cmd: weather05.a03.pic=15
|
|
#########################################
|
|
#
|
|
#
|
|
#############################################################
|
|
##### CLOSE - Weather Forcast AccuWeather #####
|
|
#############################################################
|
|
#
|
|
##
|
|
###
|
|
#############################################################################################################################################################################################
|
|
|