2874 lines
149 KiB
JSON
2874 lines
149 KiB
JSON
[
|
||
{
|
||
"id": "alarm_play_loop",
|
||
"automation": "- id: alarm_play_loop\n alias: Alarm - play loop\n description: Alarm Widergabe\n mode: single\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.alarm_indoor\n - trigger: state\n entity_id: input_boolean.alarm_indoor\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.alarm_indoor\n state: 'on'\n actions:\n - action: script.alarm_play\n - action: timer.start\n data:\n duration: 0:00:05\n target:\n entity_id: timer.alarm_indoor",
|
||
"config": [
|
||
{
|
||
"name": "alarm indoor timer",
|
||
"room": "indoor",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.alarm_indoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "alarm indoor",
|
||
"room": "indoor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.alarm_indoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "alarm play script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.alarm_play",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "alarm_play_stop",
|
||
"automation": "- id: alarm_play_stop\n alias: Alarm - play stop\n description: Alarm stoppen\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.alarm_indoor\n from: 'on'\n to: 'off'\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.garage_siren_on_event\n - action: timer.finish\n target:\n entity_id: timer.alarm_indoor\n - action: media_player.media_stop\n target:\n entity_id: media_player.home_group\n - action: homeassistant.turn_off\n target:\n entity_id: script.alarm_play\n - action: media_player.volume_set\n target:\n entity_id: media_player.home_group\n data:\n volume_level: 0.2",
|
||
"config": [
|
||
{
|
||
"name": "alarm indoor timer",
|
||
"room": "indoor",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.alarm_indoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "alarm indoor",
|
||
"room": "indoor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.alarm_indoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage siren",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.garage_siren_on_event",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "home group media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.home_group",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "alarm play script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.alarm_play",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "alarm_notify",
|
||
"automation": "- id: alarm_notify\n alias: Alarm - Notify\n mode: parallel\n triggers:\n - trigger: state\n entity_id: input_boolean.alarm_indoor\n from: 'off'\n to: 'on'\n actions:\n - alias: Repeat a few times\n repeat:\n count: 4\n sequence:\n - action: notify.telegram_schick_home\n data:\n title: 🚨👮🆘 Alarm aufgelöst!!!\n message: Etwas passiert!!!\n - delay: 00:00:05",
|
||
"config": [
|
||
{
|
||
"name": "alarm indoor",
|
||
"room": "indoor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.alarm_indoor",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_alarm",
|
||
"automation": "- id: telegram_alarm\n alias: Telegram - Alarm toggle\n mode: parallel\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /alarm\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /alarm\n actions:\n - action: switch.toggle\n data:\n entity_id: switch.alarm_play\n - wait_for_trigger:\n - trigger: state\n entity_id: switch.alarm_play\n timeout: 5\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.user_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 🚨 {{ state_attr('switch.alarm_play', 'friendly_name') }} - {{ states('switch.alarm_play')\n }}",
|
||
"config": [
|
||
{
|
||
"name": "alarm play switch",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.alarm_play",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tasmota_state_on_startup",
|
||
"automation": "- id: tasmota_state_on_startup\n alias: Tasmota - Power state on HA startup\n triggers:\n - event: start\n trigger: homeassistant\n actions:\n - action: mqtt.publish\n data:\n payload: '1'\n topic: sonoffs/cmnd/state\n - action: mqtt.publish\n data:\n payload: '1'\n topic: sonoffs/tele/STATE",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "rolladen_auf",
|
||
"automation": "- id: rolladen_auf\n alias: Rolladen - Auf\n description: ''\n triggers:\n - event: sunrise\n offset: 03:00:00\n trigger: sun\n conditions: []\n actions:\n - data:\n entity_id: cover.rolladen\n position: 100\n action: cover.set_cover_position\n - data:\n message: Rolladen geöffnet\n title: 🔼 Rolladen\n action: notify.telegram_schick_home\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "rolladen cover",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.rolladen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "rolladen_zu",
|
||
"automation": "- id: rolladen_zu\n alias: Rolladen - Zu\n description: ''\n triggers:\n - event: sunset\n offset: 01:30:00\n trigger: sun\n conditions: []\n actions:\n - data:\n entity_id: cover.rolladen\n position: 0\n action: cover.set_cover_position\n - data:\n message: Rolladen geschlossen\n title: 🔽 Rolladen\n action: notify.telegram_schick_home\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "rolladen cover",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.rolladen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "garagenlicht_einschalten",
|
||
"automation": "- id: garagenlicht_einschalten\n alias: Garage - Licht einschalten\n description: Garagenlicht einschalten nach der Sonnenunregang oder wenn es dunkel\n ist\n triggers:\n - type: value\n trigger: device\n device_id: db8b13c767d84865a607aca77975a221\n entity_id: sensor.torposition\n domain: sensor\n above: 40\n for:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n conditions:\n - condition: or\n conditions:\n - condition: sun\n before: sunrise\n before_offset: 00:15:00\n - condition: sun\n after: sunset\n after_offset: -00:15:00\n actions:\n - type: turn_on\n device_id: 63713a671de1472e84d5832bcb399f0e\n entity_id: light.sonoffbnsz01\n domain: light\n brightness_pct: 95\n - delay:\n hours: 0\n minutes: 10\n seconds: 0\n milliseconds: 0\n - type: turn_off\n device_id: 63713a671de1472e84d5832bcb399f0e\n entity_id: light.sonoffbnsz01\n domain: light\n mode: restart",
|
||
"config": [
|
||
{
|
||
"name": "garage door position sensor",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.torposition",
|
||
"device_id": "db8b13c767d84865a607aca77975a221"
|
||
}
|
||
},
|
||
{
|
||
"name": "garage light",
|
||
"room": "garage",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.sonoffbnsz01",
|
||
"device_id": "63713a671de1472e84d5832bcb399f0e"
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door distance sensor",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tor_distanz",
|
||
"device_id": "db8b13c767d84865a607aca77975a221"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "garagenlicht_ausschalten",
|
||
"automation": "- id: garagenlicht_ausschalten\n alias: Garage - Licht ausschalten\n description: Garagenlicht ausschalten wenn das Garagentor geschlossen wurde\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.tor_ist_geschlossen\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 5\n - trigger: state\n entity_id: input_boolean.torteil\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 5\n conditions: []\n actions:\n - type: turn_off\n device_id: 63713a671de1472e84d5832bcb399f0e\n entity_id: light.sonoffbnsz01\n domain: light\n mode: restart",
|
||
"config": [
|
||
{
|
||
"name": "garage light",
|
||
"room": "garage",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.sonoffbnsz01",
|
||
"device_id": "63713a671de1472e84d5832bcb399f0e"
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door closed sensor",
|
||
"room": "garage",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.tor_ist_geschlossen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door partial",
|
||
"room": "garage",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.torteil",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "camera_garage_richtung",
|
||
"automation": "- id: camera_garage_richtung\n alias: Camera - Garage Richtung\n description: Направление камеры в зависимости от положения гаражных ворот\n triggers:\n - type: value\n trigger: device\n device_id: db8b13c767d84865a607aca77975a221\n entity_id: sensor.torposition\n domain: sensor\n above: 30\n for:\n hours: 0\n minutes: 0\n seconds: 5\n - type: value\n trigger: device\n device_id: db8b13c767d84865a607aca77975a221\n entity_id: sensor.torposition\n domain: sensor\n below: 20\n for:\n hours: 0\n minutes: 0\n seconds: 5\n - trigger: state\n entity_id:\n - binary_sensor.tor_ist_geschlossen\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 3\n - trigger: state\n entity_id: input_boolean.torteil\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 5\n conditions: []\n actions:\n - choose:\n - conditions:\n - type: is_value\n condition: device\n device_id: db8b13c767d84865a607aca77975a221\n entity_id: sensor.torposition\n domain: sensor\n above: 30\n sequence:\n - action: select.select_option\n data:\n option: Tor\n target:\n entity_id: select.garage_ptz_preset\n - conditions:\n - type: is_value\n condition: device\n device_id: db8b13c767d84865a607aca77975a221\n entity_id: sensor.tor_distanz\n domain: sensor\n below: 20\n sequence:\n - action: select.select_option\n data:\n option: Tuer\n target:\n entity_id: select.garage_ptz_preset\n - delay:\n hours: 0\n minutes: 0\n seconds: 30\n milliseconds: 0\n - action: select.select_option\n data:\n option: Tuer\n target:\n entity_id: select.garage_ptz_preset\n default: []\n mode: restart",
|
||
"config": [
|
||
{
|
||
"name": "garage door position sensor",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.torposition",
|
||
"device_id": "db8b13c767d84865a607aca77975a221"
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door closed sensor",
|
||
"room": "garage",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.tor_ist_geschlossen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door partial",
|
||
"room": "garage",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.torteil",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage ptz preset",
|
||
"room": "garage",
|
||
"type": "select",
|
||
"id": {
|
||
"entity_id": "select.garage_ptz_preset",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door distance sensor",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tor_distanz",
|
||
"device_id": "db8b13c767d84865a607aca77975a221"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1661601350027'",
|
||
"automation": "- id: '1661601350027'\n alias: Считана метка Red\n description: ''\n triggers:\n - trigger: tag\n tag_id: 4d4d9d64-59ff-4a65-8d8c-d1a088f46599\n conditions: []\n actions:\n - action: switch.toggle\n data: {}\n target:\n entity_id: switch.tor\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "garage door switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tor",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1661607357549'",
|
||
"automation": "- id: '1661607357549'\n alias: Считана метка Green\n description: ''\n triggers:\n - trigger: tag\n tag_id: 25cf4f63-039d-47b6-8012-32e9e6cb831d\n conditions: []\n actions:\n - action: light.toggle\n data: {}\n target:\n entity_id: light.sonoffpow_01\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "sonoff power light 1",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.sonoffpow_01",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1668006470208'",
|
||
"automation": "- id: '1668006470208'\n alias: Garage - Coming home\n description: Open tor if Tiguan is coming to home\n triggers:\n - device_id: d65b64c785a29ffed795c6d22780bb9f\n domain: device_tracker\n entity_id: e26c53c9fa2534a4da69f77b06f7414f\n type: enters\n trigger: device\n zone: zone.home\n conditions:\n - condition: state\n entity_id: sensor.as25_bluetooth_connection\n attribute: connected_paired_devices\n state: B4:EC:02:94:8A:CF (VW BT 1505)\n enabled: false\n - condition: numeric_state\n entity_id: sensor.torposition\n below: 15\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ \"68:4E:05:63:56:10 (VOLKSWAGEN-21ED)\" in state_attr(\"sensor.as25_bluetooth_connection\",\n \"connected_paired_devices\") }}'\n - condition: template\n value_template: '{{ \"B4:EC:02:94:8A:CF (VW BT 1505)\" in state_attr(\"sensor.as25_bluetooth_connection\",\n \"connected_paired_devices\") }}'\n actions:\n - data: {}\n target:\n entity_id: switch.tor\n action: switch.turn_on\n - data:\n message: TTS\n title: Garage\n data:\n ttl: 0\n priority: high\n media_stream: alarm_stream_max\n tts_text: Die Garage öffnet\n action: notify.mobile_app_as25\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "garage door position sensor",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.torposition",
|
||
"device_id": "db8b13c767d84865a607aca77975a221"
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "car tracker",
|
||
"room": "garage",
|
||
"type": "device_tracker",
|
||
"id": {
|
||
"entity_id": "e26c53c9fa2534a4da69f77b06f7414f",
|
||
"device_id": "d65b64c785a29ffed795c6d22780bb9f"
|
||
}
|
||
},
|
||
{
|
||
"name": "bluetooth connection sensor",
|
||
"room": "car",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.as25_bluetooth_connection",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1668017327174'",
|
||
"automation": "- id: '1668017327174'\n alias: Garage - Leaving home\n description: Close tor if Tiguan is leaving home\n triggers:\n - device_id: d65b64c785a29ffed795c6d22780bb9f\n domain: device_tracker\n entity_id: e26c53c9fa2534a4da69f77b06f7414f\n type: leaves\n trigger: device\n zone: zone.home\n conditions:\n - condition: state\n entity_id: sensor.as25_bluetooth_connection\n attribute: connected_paired_devices\n state: B4:EC:02:94:8A:CF (VW BT 1505)\n enabled: false\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ \"68:4E:05:63:56:10 (VOLKSWAGEN-21ED)\" in state_attr(\"sensor.as25_bluetooth_connection\",\n \"connected_paired_devices\") }}'\n - condition: template\n value_template: '{{ \"B4:EC:02:94:8A:CF (VW BT 1505)\" in state_attr(\"sensor.as25_bluetooth_connection\",\n \"connected_paired_devices\") }}'\n - condition: numeric_state\n entity_id: sensor.torposition\n above: 15\n actions:\n - data: {}\n target:\n entity_id: switch.tor\n action: switch.turn_on\n - data:\n message: TTS\n title: Garage\n data:\n ttl: 0\n priority: high\n media_stream: alarm_stream_max\n tts_text: Die Garage schlisst\n action: notify.mobile_app_as25\n - wait_for_trigger:\n - trigger: numeric_state\n entity_id: sensor.torposition\n for:\n hours: 0\n minutes: 0\n seconds: 5\n below: 6\n timeout:\n hours: 0\n minutes: 0\n seconds: 30\n milliseconds: 0\n continue_on_timeout: false\n - data:\n message: TTS\n title: Garage\n data:\n ttl: 0\n priority: high\n media_stream: alarm_stream_max\n tts_text: Die Garage ist geschlossen\n action: notify.mobile_app_as25\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "garage door position sensor",
|
||
"room": "garage",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.torposition",
|
||
"device_id": "db8b13c767d84865a607aca77975a221"
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "car tracker",
|
||
"room": "garage",
|
||
"type": "device_tracker",
|
||
"id": {
|
||
"entity_id": "e26c53c9fa2534a4da69f77b06f7414f",
|
||
"device_id": "d65b64c785a29ffed795c6d22780bb9f"
|
||
}
|
||
},
|
||
{
|
||
"name": "bluetooth connection sensor",
|
||
"room": "car",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.as25_bluetooth_connection",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "3d_prtint_is_done",
|
||
"automation": "- id: 3d_prtint_is_done\n alias: 3D - Druck ist fertig\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.ender_3_s1_pro_current_print_state\n for:\n hours: 0\n minutes: 10\n seconds: 0\n to: complete\n conditions: []\n actions:\n - action: camera.snapshot\n metadata: {}\n data:\n filename: /config/www/screenshots/3dprinter.jpg\n target:\n entity_id: camera.ender_3_s1_pro_sony\n - action: notify.telegram_schick_home\n data:\n message: 🏭 3D Druck ist fertig\n data:\n photo:\n - file: /config/www/screenshots/3dprinter.jpg\n caption: 🏭 3D Druck ist fertig\n - action: notify.telegram_schick_home\n data:\n message: 🏭 3D Druck ist fertig\n data:\n photo:\n - url: '{{ state_attr(''sensor.ender_3_s1_pro_thumbnail'',''url'') }}'\n caption: 🏭 3D Druck ist fertig\n enabled: false\n - wait_for_trigger:\n - trigger: numeric_state\n entity_id: sensor.ender_3_s1_pro_extruder_temperature\n below: 70\n timeout:\n hours: 0\n minutes: 10\n seconds: 0\n milliseconds: 0\n enabled: true\n - if:\n - condition: template\n value_template: '{{ not is_state(''sensor.ender_3_s1_pro_current_print_state'',''printing'')\n\n and not is_state(''sensor.ender_3_s1_pro_current_print_state'',''paused'')}}'\n then:\n - action: switch.turn_off\n data: {}\n target:\n entity_id: switch.tuyaplug1\n - action: notify.telegram_schick_home\n data:\n message: 🏭 3D Drucker ist ausgeschaltet\n enabled: true\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "3d printer state",
|
||
"room": "office",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ender_3_s1_pro_current_print_state",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "3d printer camera",
|
||
"room": "office",
|
||
"type": "camera",
|
||
"id": {
|
||
"entity_id": "camera.ender_3_s1_pro_sony",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "3d printer thumbnail sensor",
|
||
"room": "office",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ender_3_s1_pro_thumbnail",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "3d printer temperature sensor",
|
||
"room": "office",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ender_3_s1_pro_extruder_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tuya plug 1",
|
||
"room": "office",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tuyaplug1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1674336725023'",
|
||
"automation": "- id: '1674336725023'\n alias: Erinnerung - Mühlabfuhr\n description: ''\n use_blueprint:\n path: westenberg/garbage-reminder.yaml\n input:\n garbage_sensor_1: sensor.restabfall\n garbage_sensor_2: sensor.leichtverpackungen\n garbage_sensor_3: sensor.papier\n notifier: notify.telegram_schick_home\n day_offset: '1'\n reminder_time: '18:20:00'\n reminder_message: 'Folgender Müll wird morgen abgeholt: '\n reminder_title: 🗑️ Müllabfuhr Erinnerung",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "'1694760290268'",
|
||
"automation": "- id: '1694760290268'\n alias: HASS - CleanUp stale devices\n description: Remove all stale devices from Home Assistant\n triggers:\n - trigger: time\n at: 00:00:00\n conditions:\n - condition: time\n weekday:\n - mon\n actions:\n - action: button.press\n data: {}\n target:\n entity_id:\n - button.fritz_box_5590_fiber_cleanup\n - button.fritz_box_7590_ax_cleanup\n - action: ble_monitor.cleanup_entries\n data: {}\n - action: tts.clear_cache\n data: {}\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Fritz Box 5590 Fiber Cleanup",
|
||
"room": null,
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.fritz_box_5590_fiber_cleanup",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Fritz Box 7590 AX Cleanup",
|
||
"room": null,
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.fritz_box_7590_ax_cleanup",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1704829899531'",
|
||
"automation": "- id: '1704829899531'\n alias: Aktualisierung\n description: Aktualisierungsbenachrichtigung\n use_blueprint:\n path: mdegat01/update_notifications.yaml\n input:\n update_entities:\n - update.einfahrt_update\n - update.esphome_update\n - update.fritz_box_5590_fiber_fritz_os\n - update.ftp_update\n - update.garage_update\n - update.garagegate_firmware\n - update.home_assistant_core_update\n - update.home_assistant_supervisor_update\n - update.markise_firmware\n - update.mosquitto_broker_update\n - update.nginx_home_assistant_ssl_proxy_update\n - update.pi_hole_v6_integration_update\n - update.pi_hole_core_update_available\n - update.pi_hole_ftl_update_available\n - update.samba_share_update\n - update.sqlite_web_update\n - update.studio_code_server_update\n - update.tasmoadmin_update\n - update.terminal_ssh_update\n - update.terrasse_update\n - update.innen_firmware\n - update.matter_server_update\n - update.vlc_update\n - update.fritz_box_7590_ax_fritz_os\n - update.music_assistant_server_update\n - update.shelly1pmminig3_34b7da8db254_firmware_update\n - update.aha_region_update\n - update.bar_card_update\n - update.card_tools_update\n - update.comfortable_environment_card_update\n - update.firmware_update\n - update.fold_entity_row_update\n - update.go2rtc_update\n - update.hacs_update\n - update.landroid_card_update\n - update.landroid_cloud_update\n - update.let_s_encrypt_update\n - update.local_tuya_update\n - update.mini_media_player_update\n - update.mini_graph_card_update\n - update.moonraker_update\n - update.mushroom_themes_update\n - update.passive_ble_monitor_integration_update\n - update.polr_ytube_media_card_update\n - update.restriction_card_update\n - update.samsung_soundbar_update\n - update.slider_button_card_update\n - update.slider_entity_row_update\n - update.spook_your_homie_update\n - update.thermal_comfort_icons_update\n - update.thermal_comfort_update\n - update.vacuum_card_update\n - update.weather_chart_card_update\n - update.webrtc_camera_update\n - update.xiaomi_mi_smart_pedestal_fan_integration_update\n - update.xiaomi_smartmi_fan_card_update\n - update.xiaomi_vacuum_map_card_update\n - update.yandex_smart_home_update\n - update.yandex_station_intents_update\n - update.yandex_station_update\n - update.ytube_music_player_update\n - update.pi_hole_web_update_available\n - update.maxi_media_player_update\n - update.samsungtv_smart_update\n - update.seitenmarkise_74aab6_firmware\n mobile_app_device: d65b64c785a29ffed795c6d22780bb9f\n reminder_hours: '6'\n run_config_check: true\n send_to_ha: true\n mobile_app_device_2: d65b64c785a29ffed795c6d22780bb9f",
|
||
"config": [
|
||
{
|
||
"name": "car tracker",
|
||
"room": "garage",
|
||
"type": "device_tracker",
|
||
"id": {
|
||
"entity_id": "e26c53c9fa2534a4da69f77b06f7414f",
|
||
"device_id": "d65b64c785a29ffed795c6d22780bb9f"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "camera_manage_status_led",
|
||
"automation": "- id: camera_manage_status_led\n alias: Camera - Manage status LED\n triggers:\n - trigger: sun\n event: sunrise\n id: sunrise\n - trigger: sun\n event: sunset\n id: sunset\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - sunrise\n sequence:\n - action: light.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: light.innen_status_led\n - conditions:\n - condition: trigger\n id:\n - sunset\n sequence:\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: light.innen_status_led\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "status led light",
|
||
"room": "indoor",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.innen_status_led",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tv_board_manage",
|
||
"automation": "- id: tv_board_manage\n alias: TV Board - Verwaltung\n description: 'Funktioniert nur wenn TV aus ist.\n\n Wenn TV Board ist an und (Niemand ist Zuhause oder Zeit ist zwischen 23:00 und\n 11:00) dann TV Board ausschalten\n\n Wenn TV Board ist aus und (Jemand ist Zuhause oder Zeit ist zwischen 11:00 and\n 23:00) dann TV Board einschalten'\n triggers:\n - trigger: state\n entity_id: group.family\n for: 00:04:00\n - trigger: time_pattern\n minutes: /15\n conditions:\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ is_state(''media_player.sony_kd55x8505b'', ''off'') }}'\n enabled: false\n - condition: state\n entity_id: media_player.sony_kd_55x8505b\n state: 'off'\n enabled: false\n - condition: state\n entity_id: media_player.gq75qn92catxzg\n state: 'off'\n actions:\n - alias: Выбор условий для выключения и включения TV Board\n enabled: false\n choose:\n - conditions:\n - condition: template\n value_template: '{{ is_state(''switch.tuyaplug2'', ''on'') and (is_state(''group.family'',\n ''not_home'') or now().hour < 12 or now().hour > 22) }}'\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.tuyaplug2\n data: {}\n - conditions:\n - condition: template\n value_template: '{{ is_state(''switch.tuyaplug2'', ''off'') and is_state(''group.family'',\n ''home'') and (now().hour > 11 and now().hour < 23) }}'\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.tuyaplug2\n data: {}\n - if:\n - condition: template\n value_template: '{{ is_state(''switch.tuyaplug2'', ''on'') and (is_state(''group.family'',\n ''not_home'') or now().hour < 12 or now().hour > 22) }}'\n then:\n - action: switch.turn_off\n target:\n entity_id: switch.tuyaplug2\n data: {}\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "family group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.family",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sony tv media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.sony_kd55x8505b",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "samsung tv media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.gq75qn92catxzg",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tuya plug 2",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tuyaplug2",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sony KD-55X8505B TV",
|
||
"room": null,
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.sony_kd_55x8505b",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "rolladen_close_if_its_hot",
|
||
"automation": "- id: rolladen_close_if_its_hot\n alias: Rolladen - Automatisch schließen bei Hitze und Sonne\n description: Schließt bestimmte Rolläden, wenn es heiß ist und die Sonne entsprechend\n steht, um die Räume kühl zu halten. Berücksichtigt individuelle Azimut-Schwellenwerte\n pro Rolladen.\n triggers:\n - minutes: /5\n trigger: time_pattern\n conditions:\n - condition: template\n value_template: \"{% set sun_azimuth = state_attr('sun.sun', 'azimuth') | float(0)\\\n \\ %} {% set sun_elevation = state_attr('sun.sun', 'elevation') | float(-91)\\\n \\ %} {# По умолчанию ниже любого типичного SUN_ELEVATION_MIN_ACTIVE #} {% set\\\n \\ current_clouds = state_attr('weather.openweathermap', 'cloud_coverage') |\\\n \\ int(CLOUD_COVERAGE_MAX) %} {# По умолчанию, чтобы условие current_clouds <\\\n \\ CLOUD_COVERAGE_MAX стало ложным #} {% set ground_temp = states('sensor.rasen_temperature')\\\n \\ | float(GROUND_TEMP_THRESHOLD - 1) %} {# По умолчанию, чтобы условие ground_temp\\\n \\ > GROUND_TEMP_THRESHOLD стало ложным #} {% set terrasse_temp = states('sensor.ble_temperature_temperatur_gt')\\\n \\ | float(TERRASSE_TEMP_THRESHOLD - 1) %} {# По умолчанию, чтобы условие terrasse_temp\\\n \\ > TERRASSE_TEMP_THRESHOLD стало ложным #}\\n{{ SUN_AZIMUTH_MIN_ACTIVE < sun_azimuth\\\n \\ < SUN_AZIMUTH_MAX_ACTIVE\\n and sun_elevation > SUN_ELEVATION_MIN_ACTIVE\\n\\\n \\ and (ground_temp > GROUND_TEMP_THRESHOLD or terrasse_temp > TERRASSE_TEMP_THRESHOLD)\\n\\\n \\ and current_clouds < CLOUD_COVERAGE_MAX\\n}}\\n\"\n actions:\n - repeat:\n for_each: '{{ COVERS_TO_MANAGE }}'\n sequence:\n - variables:\n cover_entity_id: '{{ repeat.item.entity }}'\n current_sun_azimuth: '{{ state_attr(''sun.sun'', ''azimuth'') | float(0)\n }}'\n cover_current_pos: '{{ state_attr(cover_entity_id, ''current_position'')\n | int(-1) }}'\n cover_last_changed_timestamp: '{{ as_timestamp(states[cover_entity_id].last_changed,\n 0) }}'\n - condition: template\n value_template: \"{# Проверяем, прошел ли азимут солнца триггерный азимут для\\\n \\ этого роллета. Не двигать, если уже в целевой позиции #} {{ current_sun_azimuth\\\n \\ >= repeat.item.azimuth_close_trigger and\\n cover_current_pos > repeat.item.current_pos_above\\\n \\ and\\n cover_current_pos != repeat.item.target_pos and\\n ((as_timestamp(now())\\\n \\ - cover_last_changed_timestamp) / 60) > COOLDOWN_MINUTES\\n}}\\n\"\n - target:\n entity_id: '{{ cover_entity_id }}'\n data:\n position: '{{ repeat.item.target_pos }}'\n action: cover.set_cover_position\n variables:\n GROUND_TEMP_THRESHOLD: 22\n TERRASSE_TEMP_THRESHOLD: 22\n CLOUD_COVERAGE_MAX: 40\n SUN_AZIMUTH_MIN_ACTIVE: 150\n SUN_AZIMUTH_MAX_ACTIVE: 300\n SUN_ELEVATION_MIN_ACTIVE: 10\n COOLDOWN_MINUTES: 240\n COVERS_TO_MANAGE:\n - entity: cover.shellyswitch25_f37a8c\n azimuth_close_trigger: 150\n current_pos_above: 40\n target_pos: 0\n - entity: cover.shellyswitch25_f37b28\n azimuth_close_trigger: 180\n current_pos_above: 40\n target_pos: 0\n - entity: cover.shellyswitch25_10eaa4\n azimuth_close_trigger: 220\n current_pos_above: 40\n target_pos: 0\n - entity: cover.shellyswitch25_10d315\n azimuth_close_trigger: 240\n current_pos_above: 75\n target_pos: 60",
|
||
"config": [
|
||
{
|
||
"name": "weather sensor",
|
||
"room": "outdoor",
|
||
"type": "weather",
|
||
"id": {
|
||
"entity_id": "weather.openweathermap",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "lawn temperature sensor",
|
||
"room": "garden",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.rasen_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "terrace temperature sensor",
|
||
"room": "terrace",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ble_temperature_temperatur_gt",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 f37a8c cover",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_f37a8c",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 f37b28 cover",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_f37b28",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 10eaa4 cover",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_10eaa4",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 10d315 cover",
|
||
"room": "terrace",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_10d315",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 10d315 (Rollade Terrasse)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_10d315",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 10eaa4 (Rollade 3)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_10eaa4",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 f37a8c (Rollade 1)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_f37a8c",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 f37b28 (Rollade 2)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_f37b28",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sun",
|
||
"room": null,
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "markise_control",
|
||
"automation": "- id: markise_control\n alias: Markise Verwaltung\n description: Markise automatisch steuern basierend auf Sonne, Temperatur, Wolken\n und Regen.\n triggers:\n - trigger: time_pattern\n minutes: /5\n - trigger: template\n value_template: '{{ is_state(RAIN_SENSOR, ''on'') or (state_attr(''sun.sun'',\n ''elevation'') | float(999) < SUN_ELEVATION_THRESHOLD_CLOSE) }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{% set sun_azimuth = state_attr('sun.sun', 'azimuth') | float(0)\\\n \\ %} {% set sun_elevation = state_attr('sun.sun', 'elevation') | float(0)\\\n \\ %} {% set current_temp = states(TEMP_SENSOR) | float(-100) %} {% set cloud_coverage\\\n \\ = state_attr(WEATHER_SENSOR, 'cloud_coverage') | float(101) %} {% set\\\n \\ current_pos = state_attr(COVER_ENTITY_ID, 'current_position') | int(-1)\\\n \\ %} {% set cover_last_changed_timestamp = as_timestamp(states[COVER_ENTITY_ID].last_changed,\\\n \\ 0) %}\\n{{ sun_azimuth > SUN_AZIMUTH_MIN_OPEN and\\n sun_elevation >= SUN_ELEVATION_MIN_OPEN\\\n \\ and\\n current_temp > TEMP_THRESHOLD_OPEN and\\n cloud_coverage < CLOUD_COVERAGE_THRESHOLD_OPEN\\\n \\ and\\n is_state(RAIN_SENSOR, 'off') and\\n current_pos != POSITION_SUN_PROTECTION\\\n \\ and\\n ((as_timestamp(now()) - cover_last_changed_timestamp) / 60) > COOLDOWN_MINUTES\\n\\\n }}\\n\"\n alias: Если солнце мешает, жарко, нет облаков и дождя\n sequence:\n - delay: 3\n - action: cover.set_cover_position\n data:\n position: '{{ POSITION_SUN_PROTECTION }}'\n target:\n entity_id: '{{ COVER_ENTITY_ID }}'\n - conditions:\n - condition: template\n value_template: \"{% set sun_elevation = state_attr('sun.sun', 'elevation')\\\n \\ | float(999) %} {% set current_pos = state_attr(COVER_ENTITY_ID, 'current_position')\\\n \\ | int(-1) %}\\n{{ (is_state(RAIN_SENSOR, 'on') or\\n sun_elevation < SUN_ELEVATION_THRESHOLD_CLOSE)\\\n \\ and\\n current_pos != POSITION_RETRACTED\\n}}\\n\"\n alias: Если солнце уже не мешает или дождь\n sequence:\n - delay: 3\n - action: cover.set_cover_position\n data:\n position: '{{ POSITION_RETRACTED }}'\n target:\n entity_id: '{{ COVER_ENTITY_ID }}'\n trigger_variables:\n SUN_ELEVATION_THRESHOLD_CLOSE: 11\n RAIN_SENSOR: binary_sensor.mower_rainsensor_triggered\n variables:\n COVER_ENTITY_ID: cover.markise\n TEMP_SENSOR: sensor.ble_temperature_temperatur_gt\n WEATHER_SENSOR: weather.openweathermap\n TEMP_THRESHOLD_OPEN: 22\n CLOUD_COVERAGE_THRESHOLD_OPEN: 40\n SUN_AZIMUTH_MIN_OPEN: 180\n SUN_ELEVATION_MIN_OPEN: 15\n POSITION_SUN_PROTECTION: 100\n POSITION_RETRACTED: 0\n COOLDOWN_MINUTES: 60\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "weather sensor",
|
||
"room": "outdoor",
|
||
"type": "weather",
|
||
"id": {
|
||
"entity_id": "weather.openweathermap",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "terrace temperature sensor",
|
||
"room": "terrace",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ble_temperature_temperatur_gt",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "rain sensor",
|
||
"room": "garden",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.mower_rainsensor_triggered",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "awning cover",
|
||
"room": "terrace",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.markise",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sun",
|
||
"room": null,
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "vacuum_when_nobody_home",
|
||
"automation": "- id: vacuum_when_nobody_home\n alias: Robi - Niemand zu Hause ist\n description: Wenn Niemand Zuhause ist, dann staubsaugen.\n triggers:\n - trigger: state\n entity_id:\n - group.family\n for:\n hours: 0\n minutes: 10\n seconds: 0\n to: not_home\n conditions:\n - condition: template\n value_template: '{{ (states(\"sensor.robi_last_clean_start\") | as_datetime).date()\n < now().date() }}'\n actions:\n - action: script.robi_flur\n metadata: {}\n data: {}\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "family group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.family",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Robi Last Clean Start Sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.robi_last_clean_start",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1726090038559'",
|
||
"automation": "- id: '1726090038559'\n alias: HA - Renew certificate\n description: ''\n triggers:\n - trigger: time\n at: 04:00:00\n conditions:\n - condition: template\n value_template: '{% set expired = (states(''sensor.barma_partia_de_cert_expiry'')\n | as_datetime | as_local) %}\n\n {{ (expired.date() - now().date()).days < 7 }}'\n actions:\n - action: hassio.addon_start\n metadata: {}\n data:\n addon: core_letsencrypt\n enabled: false\n - action: hassio.addon_restart\n metadata: {}\n data:\n addon: core_letsencrypt\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "certificate expiry sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.barma_partia_de_cert_expiry",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "weihnachten_licht_an",
|
||
"automation": "- id: weihnachten_licht_an\n alias: Weihnachten - Licht An\n description: Weihnachten licht an am Abend\n triggers:\n - trigger: sun\n event: sunset\n offset: -00:15:00\n conditions:\n - condition: state\n entity_id: group.family_wlan\n alias: Is anybody home\n state: home\n actions:\n - action: switch.turn_on\n data:\n entity_id: switch.weihnachten\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "family group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.family",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "christmas lights switch",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.weihnachten",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "family wlan group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.family_wlan",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "weihnachten_licht_an_anatolij",
|
||
"automation": "- id: weihnachten_licht_an_anatolij\n alias: Weihnachten - Licht An Anatolij\n description: Weihnachten licht an am Morgens für Anatolij\n mode: single\n triggers:\n - trigger: time\n at: 08:20:00\n conditions:\n - condition: and\n conditions:\n - condition: sun\n before: sunrise\n after_offset: 00:15:00\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n actions:\n - action: switch.turn_on\n data:\n entity_id: switch.weihnachten",
|
||
"config": [
|
||
{
|
||
"name": "christmas lights switch",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.weihnachten",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "weihnachten_licht_an_wenn_jemand_kommt",
|
||
"automation": "- id: weihnachten_licht_an_wenn_jemand_kommt\n alias: Weihnachten - Licht An wenn jemand kommt\n description: Weihnachten licht an wenn jemand kommt\n triggers:\n - trigger: state\n entity_id:\n - group.family_wlan\n - group.family\n from: not_home\n to: home\n for:\n hours: 0\n minutes: 3\n seconds: 0\n conditions:\n - condition: template\n value_template: '{{ state_attr(''sun.sun'', ''elevation'') < 4 }}'\n actions:\n - action: switch.turn_on\n data:\n entity_id: switch.weihnachten\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "family group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.family",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "christmas lights switch",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.weihnachten",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "family wlan group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.family_wlan",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sun",
|
||
"room": null,
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "weihnachten_licht_aus",
|
||
"automation": "- id: weihnachten_licht_aus\n alias: Weihnachten - Licht Aus\n description: Weihnachten licht aus\n triggers:\n - trigger: time\n at:\n - 00:00:00\n - 09:30:00\n - trigger: sun\n event: sunrise\n offset: 00:15:00\n - trigger: state\n entity_id:\n - group.family_wlan\n - group.family\n from: home\n to: not_home\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions: []\n actions:\n - action: switch.turn_off\n data:\n entity_id: switch.weihnachten\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "family group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.family",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "christmas lights switch",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.weihnachten",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "family wlan group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.family_wlan",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "robi_yandex_home",
|
||
"automation": "- id: robi_yandex_home\n alias: Robi - Yandex Haus\n description: ''\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Уберись дома\n actions:\n - action: script.robi_home\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "robi_yandex_kitchen",
|
||
"automation": "- id: robi_yandex_kitchen\n alias: Robi - Yandex Küche\n description: ''\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Убери кухню\n actions:\n - action: script.robi_kitchen\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "robi_yandex_living_room",
|
||
"automation": "- id: robi_yandex_living_room\n alias: Robi - Yandex Wohnzimmer\n description: ''\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Убери зал\n actions:\n - action: script.robi_living_room\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "robi_yandex_stube",
|
||
"automation": "- id: robi_yandex_stube\n alias: Robi - Yandex Stube\n description: ''\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Убери гостиную\n actions:\n - action: script.robi_stube\n data: {}\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "robi_yandex_bedroom",
|
||
"automation": "- id: robi_yandex_bedroom\n alias: Robi - Yandex Schlafzimmer\n description: ''\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Убери спальню\n actions:\n - action: script.robi_bedroom\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "robi_yandex_flur",
|
||
"automation": "- id: robi_yandex_flur\n alias: Robi - Yandex Flur\n description: ''\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Убери коридор\n actions:\n - action: script.robi_flur\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "robi_yandex_hwr",
|
||
"automation": "- id: robi_yandex_hwr\n alias: Robi - Yandex HWR\n description: ''\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Убери кладовку\n actions:\n - action: script.robi_hwr\n data: {}\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "robi_yandex_wc",
|
||
"automation": "- id: robi_yandex_wc\n alias: Robi - Yandex WC\n description: ''\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Убери туалет\n actions:\n - action: script.robi_wc\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "seitenmarkise_control",
|
||
"automation": "- id: seitenmarkise_control\n alias: Seitenmarkise Verwaltung\n description: Seitenmarkise automatisch steuern basierend auf Sonne, Temperatur,\n Wolken und Regen.\n triggers:\n - trigger: time_pattern\n minutes: /5\n - trigger: template\n value_template: '{{ is_state(RAIN_SENSOR, ''on'') or (state_attr(''sun.sun'',\n ''elevation'') | float(999) < SUN_ELEVATION_THRESHOLD_RETRACT) }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{% set sun_azimuth = state_attr('sun.sun', 'azimuth') | float(0)\\\n \\ %} {% set sun_elevation = state_attr('sun.sun', 'elevation') | float(0)\\\n \\ %} {% set current_temp = states(TEMP_SENSOR) | float(-100) %} {% set cloud_coverage\\\n \\ = state_attr(WEATHER_SENSOR, 'cloud_coverage') | float(101) %} {% set\\\n \\ current_pos = state_attr(COVER_ENTITY_ID, 'current_position') | int(-1)\\\n \\ %} {% set cover_last_changed_timestamp = as_timestamp(states[COVER_ENTITY_ID].last_changed,\\\n \\ 0) %}\\n{{ sun_azimuth > SUN_AZIMUTH_MIN_DEPLOY and\\n sun_elevation >=\\\n \\ SUN_ELEVATION_MIN_DEPLOY and\\n current_temp > TEMP_THRESHOLD_DEPLOY and\\n\\\n \\ cloud_coverage < CLOUD_COVERAGE_THRESHOLD_DEPLOY and\\n is_state(RAIN_SENSOR,\\\n \\ 'off') and\\n current_pos > POSITION_SUN_PROTECTION and\\n ((as_timestamp(now())\\\n \\ - cover_last_changed_timestamp) / 60) > COOLDOWN_MINUTES\\n}}\\n\"\n alias: Если солнце мешает, жарко, нет облаков и дождя\n sequence:\n - action: cover.set_cover_position\n data:\n position: '{{ POSITION_SUN_PROTECTION }}'\n target:\n entity_id: '{{ COVER_ENTITY_ID }}'\n - conditions:\n - condition: template\n value_template: \"{% set sun_elevation = state_attr('sun.sun', 'elevation')\\\n \\ | float(999) %} {% set current_pos = state_attr(COVER_ENTITY_ID, 'current_position')\\\n \\ | int(-1) %}\\n{{ (is_state(RAIN_SENSOR, 'on') or\\n sun_elevation < SUN_ELEVATION_THRESHOLD_RETRACT)\\\n \\ and\\n current_pos != POSITION_RETRACTED\\n}}\\n\"\n alias: Если солнце уже не мешает или дождь\n sequence:\n - action: cover.set_cover_position\n data:\n position: '{{ POSITION_RETRACTED }}'\n target:\n entity_id: '{{ COVER_ENTITY_ID }}'\n trigger_variables:\n SUN_ELEVATION_THRESHOLD_RETRACT: 11\n RAIN_SENSOR: binary_sensor.mower_rainsensor_triggered\n variables:\n COVER_ENTITY_ID: cover.seitenmarkise\n TEMP_SENSOR: sensor.ble_temperature_temperatur_gt\n WEATHER_SENSOR: weather.openweathermap\n TEMP_THRESHOLD_DEPLOY: 22\n CLOUD_COVERAGE_THRESHOLD_DEPLOY: 40\n SUN_AZIMUTH_MIN_DEPLOY: 180\n SUN_ELEVATION_MIN_DEPLOY: 12\n POSITION_SUN_PROTECTION: 15\n POSITION_RETRACTED: 100\n COOLDOWN_MINUTES: 120\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "weather sensor",
|
||
"room": "outdoor",
|
||
"type": "weather",
|
||
"id": {
|
||
"entity_id": "weather.openweathermap",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "terrace temperature sensor",
|
||
"room": "terrace",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ble_temperature_temperatur_gt",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "rain sensor",
|
||
"room": "garden",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.mower_rainsensor_triggered",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "side awning cover",
|
||
"room": "terrace",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.seitenmarkise",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sun",
|
||
"room": null,
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1746608947446'",
|
||
"automation": "- id: '1746608947446'\n alias: debug\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.sonoffs20_2\n to: 'on'\n id: cycle1\n - trigger: state\n entity_id:\n - switch.sonoffs20_2\n to: 'off'\n id: cycle2\n conditions: []\n actions:\n - action: notify.telegram_bot_anatolij\n metadata: {}\n data:\n message: '{{ trigger.id[-1] }}'\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "sonoff s20 2 switch",
|
||
"room": "garden",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.sonoffs20_2",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "garage_smartthing_sync",
|
||
"automation": "- id: garage_smartthing_sync\n alias: Garage - Smarttagsverwaltung\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.st_virtual_switch1\n - switch.st_virtual_switch2\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.entity_id == ''switch.st_virtual_switch1'' }}'\n sequence:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.tor\n - conditions:\n - condition: template\n value_template: '{{ trigger.entity_id == ''switch.st_virtual_switch2'' }}'\n sequence:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.torteil\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "garage door switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "smartthings virtual switch 1",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.st_virtual_switch1",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "smartthings virtual switch 2",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.st_virtual_switch2",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Garage Tor Teil",
|
||
"room": "Garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.torteil",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "set_rolladen_last_action",
|
||
"automation": "- id: set_rolladen_last_action\n alias: Rolladen - Set last action\n mode: parallel\n triggers:\n - trigger: state\n entity_id:\n - cover.rolladen\n - cover.shellyswitch25_10d315\n - cover.shellyswitch25_10eaa4\n - cover.shellyswitch25_f37a8c\n - cover.shellyswitch25_f37b28\n - cover.markise\n - cover.seitenmarkise\n conditions:\n - condition: or\n conditions:\n - '{{ trigger.from_state.state == ''opening'' }}'\n - '{{ trigger.from_state.state == ''closing'' }}'\n actions:\n - action: input_text.set_value\n target:\n entity_id: input_text.{{ trigger.to_state.object_id }}_last_action\n data:\n value: '{{ trigger.from_state.state }}'",
|
||
"config": [
|
||
{
|
||
"name": "rolladen cover",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.rolladen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 f37a8c cover",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_f37a8c",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 f37b28 cover",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_f37b28",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 10eaa4 cover",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_10eaa4",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 10d315 cover",
|
||
"room": "terrace",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_10d315",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "awning cover",
|
||
"room": "terrace",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.markise",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "side awning cover",
|
||
"room": "terrace",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.seitenmarkise",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 10d315 (Rollade Terrasse)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_10d315",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 10eaa4 (Rollade 3)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_10eaa4",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 f37a8c (Rollade 1)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_f37a8c",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 f37b28 (Rollade 2)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_f37b28",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "torteiloffnung_on",
|
||
"automation": "- id: torteiloffnung_on\n alias: Garage - Torteiloffnung ON\n triggers:\n - trigger: state\n entity_id: switch.torteil\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.torteil\n state: 'off'\n actions:\n - delay:\n seconds: 2\n - alias: ''\n action: input_boolean.turn_on\n data:\n entity_id: input_boolean.torteil",
|
||
"config": [
|
||
{
|
||
"name": "garage door partial",
|
||
"room": "garage",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.torteil",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Garage Tor Teil",
|
||
"room": "Garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.torteil",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_tor",
|
||
"automation": "- id: telegram_tor\n alias: Telegram - Tor\n mode: restart\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /tor\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /torteil\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /tor\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /torteil\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''/tor'' }}'\n sequence:\n - action: switch.toggle\n data:\n entity_id: switch.tor\n - wait_for_trigger:\n - trigger: state\n entity_id: cover.tor\n timeout: 00:00:05\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: '{{ state_attr(''switch.tor'', ''friendly_name'') }} - {{ state_attr(''cover.tor'',\n ''current_position'') }}%'\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''/torteil'' }}'\n sequence:\n - action: switch.toggle\n data:\n entity_id: switch.torteil\n - wait_for_trigger:\n - trigger: state\n entity_id: cover.tor\n timeout: 00:00:05\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: '{{ state_attr(''switch.torteil'', ''friendly_name'') }} - {{ state_attr(''cover.tor'',\n ''current_position'') }}%'",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door cover",
|
||
"room": "garage",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.tor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Garage Tor Teil",
|
||
"room": "Garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.torteil",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "garage_auto_close",
|
||
"automation": "- id: garage_auto_close\n alias: Garage - Autoschließen\n description: Гараж - Автоматическое закрытие (открыт >13% более 30 мин, темно, свет\n выкл)\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.garage_open_too_long\n to: 'on'\n - trigger: state\n entity_id: sun.sun\n to: below_horizon\n - trigger: state\n entity_id: binary_sensor.all_lights_off\n to: 'on'\n - trigger: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n - condition: state\n entity_id: binary_sensor.all_lights_off\n state: 'on'\n - condition: state\n entity_id: binary_sensor.garage_open_too_long\n state: 'on'\n actions:\n - variables:\n initial_pos: '{{ state_attr(''cover.tor'', ''current_position'') | int }}'\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж\n message: Гараж открыт уже 30 минут, сейчас темно и свет везде выключен. Планирую\n закрыть через 1 минуту. Свет будет мигать. Если ворота сдвинутся более чем\n на 10%, закрытие отменится.\n - alias: Минутное ожидание с миганием и проверкой отмены\n repeat:\n count: 12\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{% set current_pos = state_attr(''cover.tor'', ''current_position'')\n | int(0) %} {{ (current_pos - initial_pos) | abs > 10 }}\n\n '\n sequence:\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж\n message: Автоматическое закрытие гаража отменено, так как положение\n ворот изменилось более чем на 10%.\n - stop: Закрытие отменено из-за изменения положения ворот\n - action: light.turn_on\n target:\n entity_id: light.sonoffbnsz01\n data: {}\n - delay:\n seconds: 2.5\n - action: light.turn_off\n target:\n entity_id: light.sonoffbnsz01\n data: {}\n - delay:\n seconds: 2.5\n - condition: template\n value_template: '{% set current_pos = state_attr(''cover.tor'', ''current_position'')\n | int(0) %} {{ (current_pos - initial_pos) | abs <= 10 }}\n\n '\n - condition: template\n value_template: '{{ states(''cover.tor'') == ''open'' and state_attr(''cover.tor'',\n ''current_position'') | int(0) > 13 }}'\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж\n message: Начинаю процедуру автоматического закрытия гаража...\n - alias: Закрытие гаража - Попытка 1\n action: switch.toggle\n target:\n entity_id: switch.tor\n - delay:\n seconds: 3\n - choose:\n - conditions:\n - '{{ states(''cover.tor'') == ''closing'' or states(''cover.tor'') == ''closed''\n }}'\n sequence:\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж\n message: Ворота закрываются/закрыты после 1-й команды.\n - conditions:\n - '{{ states(''cover.tor'') == ''opening'' or states(''cover.tor'') == ''open''\n }}'\n sequence:\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж\n message: После 1-й команды, ворота {{ states('cover.tor') }}. Отправляю\n 2-ю команду...\n - alias: Закрытие гаража - Попытка 2\n action: switch.toggle\n target:\n entity_id: switch.tor\n - delay:\n seconds: 3\n - choose:\n - conditions:\n - '{{ states(''cover.tor'') == ''closing'' or states(''cover.tor'') == ''closed''\n }}'\n sequence:\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж\n message: Ворота закрываются/закрыты после 2-й команды.\n - conditions:\n - '{{ states(''cover.tor'') == ''opening'' or states(''cover.tor'') == ''open''\n }}'\n sequence:\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж\n message: После 2-й команды, ворота {{ states('cover.tor') }}. Отправляю\n 3-ю команду...\n - alias: Закрытие гаража - Попытка 3\n action: switch.toggle\n target:\n entity_id: switch.tor\n - delay:\n seconds: 3\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж\n message: '3-я команда отправлена. Текущее состояние: {{ states(''cover.tor'')\n }}. Ожидаю полного закрытия.'\n default:\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж - Ошибка\n message: Неожиданное состояние ворот {{ states('cover.tor') }} после 2-й\n попытки закрытия.\n default:\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж - Ошибка\n message: Неожиданное состояние ворот {{ states('cover.tor') }} после 1-й попытки\n закрытия.\n - wait_for_trigger:\n - trigger: state\n entity_id: cover.tor\n to: closed\n timeout:\n minutes: 2\n continue_on_timeout: true\n - variables:\n garage_closed_successfully: '{{ wait.trigger is not none and states(''cover.tor'')\n == ''closed'' }}'\n - action: notify.telegram_schick_home\n data:\n title: 🚗Гараж\n message: \"{% if garage_closed_successfully %}\\n Гараж успешно закрыт автоматически.\\n\\\n {% else %}\\n Гараж не закрылся (состояние: {{ states('cover.tor') }}, позиция:\\\n \\ {{ state_attr('cover.tor', 'current_position') }}%) в течение 2 минут после\\\n \\ команды автоматического закрытия.\\n{% endif %}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "garage light",
|
||
"room": "garage",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.sonoffbnsz01",
|
||
"device_id": "63713a671de1472e84d5832bcb399f0e"
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door cover",
|
||
"room": "garage",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.tor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage open too long sensor",
|
||
"room": "garage",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.garage_open_too_long",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "all lights off sensor",
|
||
"room": "home",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.all_lights_off",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sun",
|
||
"room": null,
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_set_next_run_time_when_schedule_enabled_or_time_changed",
|
||
"automation": "- id: irrigation_set_next_run_time_when_schedule_enabled_or_time_changed\n alias: Irrigation - Zeitplan bei der Zeitänderung oder Automat Aktivierung\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.irrigation_cycle1_enable\n - input_boolean.irrigation_cycle2_enable\n to: 'on'\n - trigger: state\n entity_id:\n - input_select.irrigation_cycle1_schedule_time\n - input_select.irrigation_cycle2_schedule_time\n - trigger: state\n entity_id:\n - input_select.irrigation_cycle1_watering_days\n - input_select.irrigation_cycle2_watering_days\n conditions:\n - condition: state\n entity_id: input_boolean.irrigation_master_control_switch\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.irrigation_cycle1_enable\n state: 'on'\n - condition: state\n entity_id: input_boolean.irrigation_cycle2_enable\n state: 'on'\n actions:\n - variables:\n cycle_num: '{{ ''1'' if ''cycle1'' in trigger.entity_id else ''2'' }}'\n - action: input_datetime.set_datetime\n data:\n entity_id: input_datetime.irrigation_cycle{{ cycle_num }}_next_run_time\n date: \"{% set schedule_time_str = states('input_select.irrigation_cycle' ~ cycle_num\\\n \\ ~ '_schedule_time') %} {% if now().strftime('%H:%M') < schedule_time_str\\\n \\ %}\\n {{ now().strftime('%Y-%m-%d') }}\\n{% else %}\\n {{ (now() + timedelta(days=1)).strftime('%Y-%m-%d')\\\n \\ }}\\n{% endif %}\\n\"\n time: '{{ states(''input_select.irrigation_cycle'' ~ cycle_num ~ ''_schedule_time'')\n }}\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Cycle1 Enable",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle1_enable",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle2 Enable",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle2_enable",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Master Control Switch",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_master_control_switch",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.irrigation_cycle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle1 Schedule Time",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.irrigation_cycle1_schedule_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle1 Watering Days",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.irrigation_cycle1_watering_days",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle2 Schedule Time",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.irrigation_cycle2_schedule_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle2 Watering Days",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.irrigation_cycle2_watering_days",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_run_cycle_1",
|
||
"automation": "- id: irrigation_run_cycle_1\n alias: Irrigation - Start Morgenzyklus\n triggers:\n - trigger: time\n at: input_datetime.irrigation_cycle1_next_run_time\n conditions:\n - condition: state\n entity_id: input_boolean.irrigation_cycle1_enable\n state: 'on'\n actions:\n - action: script.irrigation_check_a_sensor_data\n data:\n cycle: '1'\n - action: script.irrigation_update_next_runtime\n data:\n cycle: '1'",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Cycle1 Enable",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle1_enable",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_run_cycle_2",
|
||
"automation": "- id: irrigation_run_cycle_2\n alias: Irrigation - Start Abendzyklus\n triggers:\n - trigger: time\n at: input_datetime.irrigation_cycle2_next_run_time\n conditions:\n - condition: state\n entity_id: input_boolean.irrigation_cycle2_enable\n state: 'on'\n actions:\n - action: script.irrigation_check_a_sensor_data\n data:\n cycle: '2'\n - action: script.irrigation_update_next_runtime\n data:\n cycle: '2'",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Cycle2 Enable",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle2_enable",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_run_a_cycle_manually",
|
||
"automation": "- id: irrigation_run_a_cycle_manually\n alias: Irrigation - Manuell starten\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.irrigation_cycle1_manual_run\n - input_boolean.irrigation_cycle2_manual_run\n from: 'off'\n to: 'on'\n conditions:\n - condition: template\n value_template: \"{% if trigger.entity_id == 'input_boolean.irrigation_cycle1_manual_run'\\\n \\ %}\\n {{ states('input_boolean.irrigation_cycle2_running') == 'off' }}\\n{%\\\n \\ else %}\\n {{ states('input_boolean.irrigation_cycle1_running') == 'off' }}\\n\\\n {% endif %}\\n\"\n actions:\n - action: input_text.set_value\n data:\n entity_id: input_text.irrigation_current_zone\n value: Initialisierung...\n - action: switch.turn_off\n data:\n entity_id: switch.irrigation_valves\n - action: script.turn_off\n target:\n entity_id:\n - script.irrigation_run_a_cycle\n - script.irrigation_irrigate_a_zone\n - action: input_boolean.turn_{{ 'on' if is_state('input_boolean.irrigation_cycle1_enable',\n 'on') else 'off' }}\n target:\n entity_id: input_boolean.irrigation_cycle1_enable_saved_state\n - action: input_boolean.turn_{{ 'on' if is_state('input_boolean.irrigation_cycle2_enable',\n 'on') else 'off' }}\n target:\n entity_id: input_boolean.irrigation_cycle2_enable_saved_state\n - action: input_boolean.turn_off\n target:\n entity_id:\n - input_boolean.irrigation_cycle1_enable\n - input_boolean.irrigation_cycle2_enable\n - action: script.irrigation_run_a_cycle\n data:\n cycle: \"{% if trigger.entity_id == 'input_boolean.irrigation_cycle1_manual_run'\\\n \\ %}\\n 1\\n{% else %}\\n 2\\n{% endif %}\\n\"\n - wait_template: '{{ is_state(''script.irrigation_run_a_cycle'', ''off'') }}'\n - action: input_boolean.turn_off\n target:\n entity_id:\n - input_boolean.irrigation_cycle1_manual_run\n - input_boolean.irrigation_cycle2_manual_run\n - action: input_boolean.turn_{{ 'on' if is_state('input_boolean.irrigation_cycle1_enable_saved_state',\n 'on') else 'off' }}\n target:\n entity_id: input_boolean.irrigation_cycle1_enable\n - action: input_boolean.turn_{{ 'on' if is_state('input_boolean.irrigation_cycle2_enable_saved_state',\n 'on') else 'off' }}\n target:\n entity_id: input_boolean.irrigation_cycle2_enable",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Cycle1 Enable",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle1_enable",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle1 Enable Saved State",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle1_enable_saved_state",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle1 Manual Run",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle1_manual_run",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle1 Running",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle1_running",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle2 Enable",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle2_enable",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle2 Enable Saved State",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle2_enable_saved_state",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle2 Manual Run",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle2_manual_run",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle2 Running",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle2_running",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Current Zone",
|
||
"room": null,
|
||
"type": "input_text",
|
||
"id": {
|
||
"entity_id": "input_text.irrigation_current_zone",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Irrigate a Zone Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.irrigation_irrigate_a_zone",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Run a Cycle Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.irrigation_run_a_cycle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Valves",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_valves",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_cancel_a_manual_cycle",
|
||
"automation": "- id: irrigation_cancel_a_manual_cycle\n alias: Irrigation - Abbrechen manueller Zyklus\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.irrigation_cycle1_manual_run\n - input_boolean.irrigation_cycle2_manual_run\n from: 'on'\n to: 'off'\n actions:\n - action: switch.turn_off\n data:\n entity_id: switch.irrigation_valves\n - action: script.turn_off\n target:\n entity_id:\n - script.irrigation_run_a_cycle\n - script.irrigation_irrigate_a_zone\n - action: timer.cancel\n data:\n entity_id: timer.irrigation_zone_duration\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.irrigation_cycle{{ '1' if trigger.entity_id == 'input_boolean.irrigation_cycle1_manual_run'\n else '2' }}_running\n - action: input_text.set_value\n data:\n entity_id: input_text.irrigation_current_zone\n value: '-'",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Cycle1 Manual Run",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle1_manual_run",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle2 Manual Run",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle2_manual_run",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Current Zone",
|
||
"room": null,
|
||
"type": "input_text",
|
||
"id": {
|
||
"entity_id": "input_text.irrigation_current_zone",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Irrigate a Zone Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.irrigation_irrigate_a_zone",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Run a Cycle Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.irrigation_run_a_cycle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Valves",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_valves",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Zone Duration Timer",
|
||
"room": null,
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.irrigation_zone_duration",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_cancel_if_it_rains",
|
||
"automation": "- id: irrigation_cancel_if_it_rains\n alias: Irrigation - Abbrechen wenn es regnet\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.mower_rainsensor_triggered\n to: 'on'\n - trigger: template\n value_template: '{{ is_state(''binary_sensor.mower_rainsensor_triggered'',''on'')\n }}'\n for: 00:01:00\n actions:\n - action: timer.cancel\n entity_id: timer.irrigation_zone_duration",
|
||
"config": [
|
||
{
|
||
"name": "rain sensor",
|
||
"room": "garden",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.mower_rainsensor_triggered",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Zone Duration Timer",
|
||
"room": null,
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.irrigation_zone_duration",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_master_control_switch",
|
||
"automation": "- id: irrigation_master_control_switch\n alias: Irrigation - Master Control Switch\n triggers:\n - trigger: state\n entity_id: input_boolean.irrigation_master_control_switch\n - trigger: homeassistant\n event: start\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id:\n - input_boolean.irrigation_cycle1_manual_run\n - input_boolean.irrigation_cycle2_manual_run\n - action: \"{% if is_state('input_boolean.irrigation_master_control_switch', 'on')\\\n \\ %}\\n automation.turn_on\\n{% else %}\\n automation.turn_off\\n{% endif %}\\n\"\n data:\n entity_id: \"{% for item in states['automation'] if item.name.startswith('Irrigation\\\n \\ - ')\\n and item.name.find('Master Control Switch') == -1\\n and item.name.find('Regular\\\n \\ pumping') == -1 -%}\\n {% if not loop.first %},{% endif %}{{ item.entity_id\\\n \\ }}\\n{%- endfor %}\\n\"\n - action: mqtt.publish\n data:\n topic: sonoff4ch/cmnd/pulsetime1\n payload: 0\n - action: mqtt.publish\n data:\n topic: sonoff4ch/cmnd/pulsetime2\n payload: 0\n - action: mqtt.publish\n data:\n topic: sonoff4ch/cmnd/pulsetime3\n payload: 0\n - action: mqtt.publish\n data:\n topic: sonoff4ch/cmnd/pulsetime4\n payload: 0",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Cycle1 Manual Run",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle1_manual_run",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle2 Manual Run",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle2_manual_run",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Master Control Switch",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_master_control_switch",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_failsafe_pump_control_switch",
|
||
"automation": "- id: irrigation_failsafe_pump_control_switch\n alias: Irrigation - Failsafe Pump Control Switch\n description: Отключение насоса, при отключении автоматизации полива\n triggers:\n - trigger: state\n entity_id: input_boolean.irrigation_master_control_switch\n to: 'off'\n actions:\n - action: switch.turn_off\n entity_id: switch.irrigation_pump",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Master Control Switch",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_master_control_switch",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Pump",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_pump",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_pump_on",
|
||
"automation": "- id: irrigation_pump_on\n alias: Irrigation - Pump ON\n description: Включение насоса, если открылся один из клапанов\n triggers:\n - trigger: state\n entity_id: switch.irrigation_valves\n to: 'on'\n for: 00:00:01\n conditions:\n - condition: state\n entity_id: switch.irrigation_pump\n state: 'off'\n actions:\n - action: switch.turn_on\n entity_id: switch.irrigation_pump",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Pump",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_pump",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Valves",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_valves",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_pump_off",
|
||
"automation": "- id: irrigation_pump_off\n alias: Irrigation - Pump OFF\n description: Выключение насоса, если закрыты все клапаны с задержкой для смены зоны\n полива\n triggers:\n - trigger: state\n entity_id: switch.irrigation_valves\n to: 'off'\n for: 00:00:04\n - trigger: time_pattern\n minutes: /15\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: switch.irrigation_valves\n state: 'off'\n - condition: state\n entity_id: switch.irrigation_zone3_valve\n state: 'off'\n actions:\n - action: switch.turn_off\n entity_id: switch.irrigation_pump",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Pump",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_pump",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Valves",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_valves",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Zone3 Valve",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_zone3_valve",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_regular_pumping",
|
||
"automation": "- id: irrigation_regular_pumping\n alias: Irrigation - Regular pumping\n description: Регулярная подкачка воды\n triggers:\n - trigger: time_pattern\n hours: /4\n minutes: '2'\n conditions:\n - condition: state\n entity_id: switch.irrigation_pump\n state: 'off'\n actions:\n - action: switch.turn_on\n entity_id: switch.irrigation_pump\n - delay: 15\n - action: switch.turn_off\n entity_id: switch.irrigation_pump",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Pump",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_pump",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_notify",
|
||
"automation": "- id: irrigation_notify\n alias: Irrigation - Notify\n mode: parallel\n triggers:\n - trigger: state\n entity_id:\n - switch.irrigation_switches_zone1\n - switch.irrigation_switches_zone2\n - switch.irrigation_switches_zone3\n from: 'on'\n to: 'off'\n variables:\n action: Ende\n - trigger: state\n entity_id:\n - switch.irrigation_switches_zone1\n - switch.irrigation_switches_zone2\n - switch.irrigation_switches_zone3\n from: 'off'\n to: 'on'\n variables:\n action: Start\n actions:\n - action: notify.telegram_schick_home\n data:\n title: 💦 Bewässerung\n message: '{{ action }} *{{ trigger.from_state.attributes.friendly_name}}*'",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Switches Zone1",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_switches_zone1",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Switches Zone2",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_switches_zone2",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Switches Zone3",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_switches_zone3",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_failsafe_master_control_switch",
|
||
"automation": "- id: irrigation_failsafe_master_control_switch\n alias: Irrigation - Failsafe Master Control Switch\n triggers:\n - trigger: state\n entity_id: input_boolean.irrigation_master_control_switch\n to: 'off'\n - trigger: homeassistant\n event: start\n actions:\n - action: homeassistant.turn_off\n entity_id:\n - input_boolean.irrigation_cycle1_manual_run\n - input_boolean.irrigation_cycle2_manual_run\n - switch.irrigation_zone1_valve\n - switch.irrigation_zone2_valve\n - switch.irrigation_zone3_valve",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Cycle1 Manual Run",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle1_manual_run",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Cycle2 Manual Run",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_cycle2_manual_run",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Master Control Switch",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.irrigation_master_control_switch",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Zone1 Valve",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_zone1_valve",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Zone2 Valve",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_zone2_valve",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Zone3 Valve",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_zone3_valve",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_failsafe_valve_1_on",
|
||
"automation": "- id: irrigation_failsafe_valve_1_on\n alias: Irrigation - Failsafe Valve 1 On\n triggers:\n - trigger: state\n entity_id:\n - switch.irrigation_zone1_valve\n to: 'on'\n actions:\n - action: switch.turn_off\n entity_id:\n - switch.irrigation_zone2_valve\n - wait_template: '{{ is_state(''switch.irrigation_zone1_valve'', ''off'') }}'\n timeout: 02:00:15\n - action: switch.turn_off\n entity_id:\n - switch.irrigation_zone1_valve",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Zone1 Valve",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_zone1_valve",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Zone2 Valve",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_zone2_valve",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "irrigation_failsafe_valve_2_on",
|
||
"automation": "- id: irrigation_failsafe_valve_2_on\n alias: Irrigation - Failsafe Valve 2 On\n triggers:\n - trigger: state\n entity_id:\n - switch.irrigation_zone2_valve\n to: 'on'\n actions:\n - action: switch.turn_off\n entity_id:\n - switch.irrigation_zone1_valve\n - wait_template: '{{ is_state(''switch.irrigation_zone2_valve'', ''off'') }}'\n timeout: 02:00:15\n - action: switch.turn_off\n entity_id:\n - switch.irrigation_zone2_valve",
|
||
"config": [
|
||
{
|
||
"name": "Irrigation Zone1 Valve",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_zone1_valve",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Irrigation Zone2 Valve",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.irrigation_zone2_valve",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "mower_notify_status",
|
||
"automation": "- id: mower_notify_status\n alias: Mower status notification\n initial_state: false\n triggers:\n - trigger: state\n entity_id: lawn_mower.mower\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state != trigger.from_state.state }}'\n actions:\n - action: notify.telegram_schick_home\n data:\n title: 🏎️ Lanroid M500\n message: '*{{ trigger.to_state.state }}* <- {{ trigger.from_state.state }}'",
|
||
"config": [
|
||
{
|
||
"name": "Mower",
|
||
"room": null,
|
||
"type": "lawn_mower",
|
||
"id": {
|
||
"entity_id": "lawn_mower.mower",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "mower_notify_error",
|
||
"automation": "- id: mower_notify_error\n alias: Mower error notification\n initial_state: true\n triggers:\n - trigger: template\n value_template: '{{ states(''sensor.mower_error'') }}'\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state != trigger.from_state.state }}'\n actions:\n - action: notify.telegram_schick_home\n data:\n title: 🏎️ Lanroid M500\n message: '*{{ trigger.to_state.state }}: {{ states(''sensor.mower_error'') }}*\n <- {{ trigger.from_state.state }}: {{ states(''sensor.mower_error'') }}'",
|
||
"config": [
|
||
{
|
||
"name": "mower error sensor",
|
||
"room": "garden",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.mower_error",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "nataljas_night_shift",
|
||
"automation": "- id: nataljas_night_shift\n alias: Nataljas night shift\n description: Set Natalja's night shift\n triggers:\n - trigger: time\n at:\n - 07:00\n - '19:00'\n conditions:\n condition: template\n value_template: '{{ is_state(''calendar.dienstplan_natalja_schick'',''on'') }}'\n actions:\n - action: \"{% set night_shift_start = as_timestamp(states.calendar.dienstplan_natalja_schick.attributes.start_time)\\\n \\ %} {% if (( night_shift_start - as_timestamp(now()) ) < 86400 )\\n and ((\\\n \\ night_shift_start - as_timestamp(now()) ) > 0 ) %}\\n input_boolean.turn_on\\n\\\n {% else %}\\n input_boolean.turn_off\\n{% endif %}\"\n target:\n entity_id: input_boolean.nataljas_night_shift",
|
||
"config": [
|
||
{
|
||
"name": "natalja schedule calendar",
|
||
"room": null,
|
||
"type": "calendar",
|
||
"id": {
|
||
"entity_id": "calendar.dienstplan_natalja_schick",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "natalja night shift",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.nataljas_night_shift",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "radio_stop",
|
||
"automation": "- id: radio_stop\n alias: Radio - Stop\n triggers:\n - trigger: state\n entity_id: input_select.radio_station\n to: Stop\n actions:\n action: script.radio_stop",
|
||
"config": [
|
||
{
|
||
"name": "radio station select",
|
||
"room": "living_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.radio_station",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "radio_stream",
|
||
"automation": "- id: radio_stream\n alias: Radio - Stream\n triggers:\n - trigger: state\n entity_id: input_select.radio_station\n - trigger: state\n entity_id: input_select.radio_player\n actions:\n - action: media_player.turn_off\n target:\n entity_id: \"{% set entities = {\\n 'Garten':'media_player.googlehome9539',\\n\\\n \\ 'Nest Mini':'media_player.nest_mini',\\n 'Sound Blaster':'media_player.soundblaster',\\n\\\n \\ 'Home Mini Flur':'media_player.flur',\\n 'Home Mini Kristina':'media_player.kristina',\\n\\\n \\ 'Überall':'media_player.home_group',\\n 'Erdgeschoss':'media_player.erdgeschoss',\\n\\\n \\ }\\n%} {{ iif(trigger.from_state in entities, entities[trigger.from_state],\\\n \\ 'media_player.nest_mini') }}\"\n - action: script.radio",
|
||
"config": [
|
||
{
|
||
"name": "home group media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.home_group",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "radio station select",
|
||
"room": "living_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.radio_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "radio player select",
|
||
"room": "living_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.radio_player",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "google home 9539 media player",
|
||
"room": "garden",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.googlehome9539",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "nest mini media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.nest_mini",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sound blaster media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.soundblaster",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "hallway media player",
|
||
"room": "hallway",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.flur",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "kristina media player",
|
||
"room": "bedroom",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kristina",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ground floor media player",
|
||
"room": "ground_floor",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.erdgeschoss",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "radio_volume",
|
||
"automation": "- id: radio_volume\n alias: Radio - Volume\n triggers:\n trigger: state\n entity_id: input_number.radio_volume\n actions:\n action: media_player.volume_set\n data:\n entity_id: \"{% set entities = {\\n 'Garten':'media_player.googlehome9539',\\n\\\n \\ 'Nest Mini':'media_player.nest_mini',\\n 'Sound Blaster':'media_player.soundblaster',\\n\\\n \\ 'Home Mini Flur':'media_player.flur',\\n 'Home Mini Kristina':'media_player.kristina',\\n\\\n \\ 'Überall':'media_player.home_group',\\n 'Erdgeschoss':'media_player.erdgeschoss',\\n\\\n \\ }\\n%} {% set state = states('input_select.radio_player') %} {{ iif(state\\\n \\ in entities, entities[state], 'media_player.nest_mini') }}\\n\"\n volume_level: '{{ states(''input_number.radio_volume'') }}'",
|
||
"config": [
|
||
{
|
||
"name": "home group media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.home_group",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "radio player select",
|
||
"room": "living_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.radio_player",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "radio volume number",
|
||
"room": "living_room",
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.radio_volume",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "google home 9539 media player",
|
||
"room": "garden",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.googlehome9539",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "nest mini media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.nest_mini",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sound blaster media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.soundblaster",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "hallway media player",
|
||
"room": "hallway",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.flur",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "kristina media player",
|
||
"room": "bedroom",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kristina",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ground floor media player",
|
||
"room": "ground_floor",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.erdgeschoss",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_kueche",
|
||
"automation": "- id: telegram_kueche\n alias: Telegram - Kueche\n mode: parallel\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /kuechenlicht\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /kuechenlicht\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /essecke\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /essecke\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''/kuechenlicht'' }}'\n sequence:\n - action: light.toggle\n data:\n entity_id: light.shellyswitch25_10a36d_channel_1\n - wait_for_trigger:\n - trigger: state\n entity_id: light.shellyswitch25_10a36d_channel_1\n continue_on_timeout: true\n timeout: 00:00:01\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 💡 {{ state_attr('light.shellyswitch25_10a36d_channel_1', 'friendly_name')\n }} - {{ states('light.shellyswitch25_10a36d_channel_1') }}\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''/essecke'' }}'\n sequence:\n - action: light.toggle\n data:\n entity_id: light.shellyswitch25_10a36d_channel_2\n - wait_for_trigger:\n - trigger: state\n entity_id: light.shellyswitch25_10a36d_channel_2\n continue_on_timeout: true\n timeout: 00:00:01\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 💡 {{ state_attr('light.shellyswitch25_10a36d_channel_2', 'friendly_name')\n }} - {{ states('light.shellyswitch25_10a36d_channel_2') }}",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "kitchen light channel 1",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.shellyswitch25_10a36d_channel_1",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "kitchen light channel 2",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.shellyswitch25_10a36d_channel_2",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_rollade_1",
|
||
"automation": "- id: telegram_rollade_1\n alias: Telegram - Rollade 1\n mode: restart\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /rollade_1\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /rollade_1\n actions:\n - action: script.cover_one_button\n data:\n entity_id: shellyswitch25_f37a8c\n - wait_for_trigger:\n - trigger: state\n entity_id: cover.shellyswitch25_f37a8c\n timeout: 00:00:02\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 🏡 {{ state_attr('cover.shellyswitch25_f37a8c', 'friendly_name') }}\n - {{ states('cover.shellyswitch25_f37a8c') }}",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 f37a8c cover",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_f37a8c",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 f37a8c (Rollade 1)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_f37a8c",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_rollade_2",
|
||
"automation": "- id: telegram_rollade_2\n alias: Telegram - Rollade 2\n mode: restart\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /rollade_2\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /rollade_2\n actions:\n - action: script.cover_one_button\n data:\n entity_id: shellyswitch25_f37b28\n - wait_for_trigger:\n - trigger: state\n entity_id: cover.shellyswitch25_f37b28\n timeout: 00:00:02\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 🏡 {{ state_attr('cover.shellyswitch25_f37b28', 'friendly_name') }}\n - {{ states('cover.shellyswitch25_f37b28') }}",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 f37b28 cover",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_f37b28",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 f37b28 (Rollade 2)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_f37b28",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_rollade_3",
|
||
"automation": "- id: telegram_rollade_3\n alias: Telegram - Rollade 3\n mode: restart\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /rollade_3\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /rollade_3\n actions:\n - action: script.cover_one_button\n data:\n entity_id: shellyswitch25_10eaa4\n - wait_for_trigger:\n - trigger: state\n entity_id: cover.shellyswitch25_10eaa4\n timeout: 00:00:02\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 🏡 {{ state_attr('cover.shellyswitch25_10eaa4', 'friendly_name') }}\n - {{ states('cover.shellyswitch25_10eaa4') }}",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 10eaa4 cover",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_10eaa4",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 10eaa4 (Rollade 3)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_10eaa4",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_rollade_4",
|
||
"automation": "- id: telegram_rollade_4\n alias: Telegram - Rollade Terrasse\n mode: restart\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /rollade_4\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /rollade_4\n actions:\n - action: script.cover_one_button\n data:\n entity_id: shellyswitch25_10d315\n - wait_for_trigger:\n - trigger: state\n entity_id: cover.shellyswitch25_10d315\n timeout: 00:00:02\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 🏡 {{ state_attr('cover.shellyswitch25_10d315', 'friendly_name') }}\n - {{ states('cover.shellyswitch25_10d315') }}",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "shelly switch 25 10d315 cover",
|
||
"room": "terrace",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.shellyswitch25_10d315",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Shelly Switch25 10d315 (Rollade Terrasse)",
|
||
"room": null,
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "shellyswitch25_10d315",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_wohnlicht",
|
||
"automation": "- id: telegram_wohnlicht\n alias: Telegram - Wohnlicht\n mode: parallel\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /wohnlicht\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /wohnlicht\n actions:\n - action: light.toggle\n data:\n entity_id: light.shelly1pmminig3_34b7da8db254_switch_0\n - wait_for_trigger:\n - trigger: state\n entity_id: light.shelly1pmminig3_34b7da8db254_switch_0\n timeout: 1\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 💡 {{ state_attr('light.shelly1pmminig3_34b7da8db254_switch_0', 'friendly_name')\n }} ist {{ states('light.shelly1pmminig3_34b7da8db254_switch_0') }}",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "living room light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.shelly1pmminig3_34b7da8db254_switch_0",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_sonoffpow_01",
|
||
"automation": "- id: telegram_sonoffpow_01\n alias: Telegram - Sonoffpow_01\n mode: parallel\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /wandlicht\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /wandlicht\n actions:\n - action: light.toggle\n data:\n entity_id: light.sonoffpow_01\n - wait_for_trigger:\n - trigger: state\n entity_id: light.sonoffpow_01\n timeout: 00:00:05\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 💡 {{ state_attr('light.sonoffpow_01', 'friendly_name') }} - {{ states('light.sonoffpow_01')\n }}",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sonoff power light 1",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.sonoffpow_01",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_sonoffpow_03",
|
||
"automation": "- id: telegram_sonoffpow_03\n alias: Telegram - Sonoffpow_03\n mode: parallel\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /terrassenlicht\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /terrassenlicht\n actions:\n - action: light.toggle\n data:\n entity_id: light.sonoffpow_03\n - wait_for_trigger:\n - trigger: state\n entity_id: light.sonoffpow_03\n timeout: 00:00:05\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 💡 {{ state_attr('light.sonoffpow_03', 'friendly_name') }} - {{ states('light.sonoffpow_03')\n }}",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sonoff power light 3",
|
||
"room": "terrace",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.sonoffpow_03",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_sonoffpow_04",
|
||
"automation": "- id: telegram_sonoffpow_04\n alias: Telegram - Sonoffpow_04\n mode: parallel\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /ambiente_kueche\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /ambiente_kueche\n actions:\n - action: light.toggle\n data:\n entity_id: light.sonoffpow_04\n - wait_for_trigger:\n - trigger: state\n entity_id: light.sonoffpow_04\n timeout: 00:00:05\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 💡 {{ state_attr('light.sonoffpow_04', 'friendly_name') }} - {{ states('light.sonoffpow_04')\n }}",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sonoff power light 4",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.sonoffpow_04",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "camera_upload_to_telegram",
|
||
"automation": "- id: camera_upload_to_telegram\n alias: Camera - Upload to Telegram\n description: Отправка файлов в Telegram\n mode: parallel\n max: 10\n triggers:\n - trigger: event\n event_type: folder_watcher\n event_data:\n event_type: closed\n conditions:\n - condition: template\n value_template: '{{ ''cams'' in trigger.event.data.path }}'\n variables:\n file_path: '{{ trigger.event.data.path }}'\n folder_name: '{{ trigger.event.data.folder }}'\n is_video: '{{ file_path.endswith(''.mp4'') and not file_path.endswith(''e.mp4'')\n }}'\n is_converted_video: '{{ file_path.endswith(''e.mp4'') }}'\n is_image: '{{ file_path.endswith(''.jpg'') }}'\n common_prompt: Очень кратко опиши, что ты видишь на этом изображении/видео. Твоё\n сообщение должно быть коротким максимум 60 символов, чтобы поместиться в уведомление\n на телефоне. Если это человек, постарайся определить пол. Если это видео опиши\n также направление движения объекта в соответствии с описанием кадра. Не описывай\n неподвижные объекты или здания.\n einfahrt_uid: secret einfahrt_uid\n terrasse_uid: secret terrasse_uid\n garage_uid: secret garage_uid\n einfahrt_prompt: secret einfahrt_prompt\n terrasse_prompt: secret terrasse_prompt\n camera_info: \"{% if 'einfahrt' in folder_name %}\\n {{ {'icon': '\\U0001F3E0',\\\n \\ 'name': 'Einfahrt', 'uid': einfahrt_uid, 'prompt': einfahrt_prompt} }}\\n{%\\\n \\ elif 'terrasse' in folder_name %}\\n {{ {'icon': '\\U0001F3E1', 'name': 'Terrasse',\\\n \\ 'uid': terrasse_uid, 'prompt': terrasse_prompt} }}\\n{% elif 'garage' in folder_name\\\n \\ %}\\n {{ {'icon': '\\U0001F697', 'name': 'Garage', 'uid': garage_uid} }}\\n\\\n {% else %}\\n {{ {'icon': '\\U0001F3C3', 'name': folder_name | title} }}\\n{%\\\n \\ endif %}\\n\"\n reolink_intent_uri: \"{% if camera_info.uid = null %}\\n intent:#Intent;launchFlags=0x14000000;component=com.mcu.reolink/com.android.bc.login.WelcomeActivity;S.UID={{\\\n \\ camera_info.uid }};S.ALMTIME={{now().isoformat()}};S.ALMNAME=Detection;S.DEVNAME=DontCare;S.ALMTYPE=PEOPLE;S.ALMCHN=1;end\\n\\\n {% else %}\\n app://com.mcu.reolink\\n{% endif %}\\n\"\n actions:\n - choose:\n - conditions:\n - '{{ is_video }}'\n sequence:\n - action: shell_command.cam_convert\n data:\n file_in: '{{ file_path }}'\n file_out: '{{ file_path[:-4] }}e.mp4'\n - conditions:\n - '{{ is_converted_video }}'\n sequence:\n - action: notify.telegram_schick_home\n data:\n title: '{{ camera_info.name }}'\n message: Bewegung erkannt\n data:\n video:\n - file: '{{ file_path }}'\n caption: '{{ camera_info.icon }} *{{ camera_info.name }}*'\n timeout: 1000\n - action: shell_command.cam_remove_file\n data:\n file_in: '{{ file_path[:-5] }}.mp4'\n - if:\n - '{{ camera_info.prompt = null }}'\n then:\n - action: google_generative_ai_conversation.generate_content\n data:\n prompt: '{{ camera_info.prompt }} {{ common_prompt }}'\n filenames:\n - '{{ file_path }}'\n response_variable: response\n - action: notify.mobile_app_as25\n data:\n message: '{{ response.text }}'\n title: '{{ camera_info.name }}'\n data:\n video: /media/nuc{{ file_path[16:] }}\n url: /lovelace/cams\n priority: high\n actions:\n - action: URI\n title: HAss\n uri: /lovelace/cams\n - action: URI\n title: Reolink\n uri: '{{ reolink_intent_uri }}'\n - conditions:\n - '{{ is_image }}'\n sequence:\n - action: notify.telegram_schick_home\n data:\n title: '{{ camera_info.name }}'\n message: Bewegung erkannt\n data:\n photo:\n - file: '{{ file_path }}'\n caption: '{{ camera_info.icon }} *{{ camera_info.name }}*'\n - if:\n - '{{ camera_info.prompt = null }}'\n then:\n - action: google_generative_ai_conversation.generate_content\n data:\n prompt: '{{ camera_info.prompt }} {{ common_prompt }}'\n filenames:\n - '{{ file_path }}'\n response_variable: response\n - action: notify.mobile_app_as25\n data:\n message: '{{ response.text }}'\n title: '{{ camera_info.name }} {{ folder_name }}'\n data:\n image: /media/nuc{{ file_path[16:] }}\n url: /lovelace/cams\n priority: high\n actions:\n - action: URI\n title: HAss\n uri: /lovelace/cams\n - action: URI\n title: Reolink\n uri: '{{ reolink_intent_uri }}'",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "camera_surveillance_management",
|
||
"automation": "- id: camera_surveillance_management\n alias: Camera - Surveillance Management\n triggers:\n - trigger: state\n entity_id: group.family\n for: 00:04:00\n - trigger: time_pattern\n minutes: /15\n conditions:\n - '{{ (now().hour < 12 or now().hour > 22) or is_state(''group.family'', ''not_home'')\n }}'\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.camera_detection_on",
|
||
"config": [
|
||
{
|
||
"name": "family group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.family",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Camera Detection On Scene",
|
||
"room": null,
|
||
"type": "scene",
|
||
"id": {
|
||
"entity_id": "scene.camera_detection_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "camera_ptz_buttons_control",
|
||
"automation": "- id: camera_ptz_buttons_control\n alias: Camera - PTZ buttons control\n triggers:\n trigger: state\n entity_id:\n - button.garage_ptz_up\n - button.garage_ptz_down\n - button.garage_ptz_left\n - button.garage_ptz_right\n - button.garage_ptz_zoom_in\n - button.garage_ptz_zoom_out\n - button.innen_ptz_up\n - button.innen_ptz_down\n - button.innen_ptz_left\n - button.innen_ptz_right\n - button.innen_ptz_zoom_in\n - button.innen_ptz_zoom_out\n actions:\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - action: button.press\n entity_id: button.garage_ptz_stop\n - action: button.press\n entity_id: button.innen_ptz_stop",
|
||
"config": [
|
||
{
|
||
"name": "garage ptz up button",
|
||
"room": "garage",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.garage_ptz_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage ptz down button",
|
||
"room": "garage",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.garage_ptz_down",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage ptz left button",
|
||
"room": "garage",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.garage_ptz_left",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage ptz right button",
|
||
"room": "garage",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.garage_ptz_right",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage ptz zoom in button",
|
||
"room": "garage",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.garage_ptz_zoom_in",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage ptz zoom out button",
|
||
"room": "garage",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.garage_ptz_zoom_out",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage ptz stop button",
|
||
"room": "garage",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.garage_ptz_stop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "indoor ptz up button",
|
||
"room": "indoor",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.innen_ptz_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "indoor ptz down button",
|
||
"room": "indoor",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.innen_ptz_down",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "indoor ptz left button",
|
||
"room": "indoor",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.innen_ptz_left",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "indoor ptz right button",
|
||
"room": "indoor",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.innen_ptz_right",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "indoor ptz zoom in button",
|
||
"room": "indoor",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.innen_ptz_zoom_in",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "indoor ptz zoom out button",
|
||
"room": "indoor",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.innen_ptz_zoom_out",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "indoor ptz stop button",
|
||
"room": "indoor",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.innen_ptz_stop",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tags_wandlicht_toggle",
|
||
"automation": "- id: tags_wandlicht_toggle\n alias: Tags - Wandlicht toggle\n triggers:\n trigger: event\n event_type: tag_scanned\n event_data:\n tag_id: 4d4d9d64-59ff-4a65-8d8c-d1a088f46599\n actions:\n - action: light.toggle\n data:\n entity_id: light.sonoffpow_01",
|
||
"config": [
|
||
{
|
||
"name": "sonoff power light 1",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.sonoffpow_01",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_control",
|
||
"automation": "- id: telegram_control\n alias: Telegram - Control\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data: {}\n - trigger: event\n event_type: telegram_command\n event_data: {}\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''/start'' }}'\n sequence:\n - action: telegram_bot.send_message\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message: Tastatur aktiviert\n keyboard:\n - /alarm, /tor, /start, /help\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 'Wähle das Symbol [/] unten und dann eine Aktion aus.\n\n /start - Zeigt diese Nachricht\n\n /help - Zeigt eine Nachricht mit Befehlen an\n\n '\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''/help'' }}'\n sequence:\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: '*Tor öffnen/schliessen:*\n\n - /tor - Garage öffnen/schliessen\n\n - /torteil - Garage teilweise öffnen/schliessen\n\n\n *Licht ein/aus:*\n\n - /wandlicht - Wandlicht\n\n - /wohnlicht - Wohnlicht\n\n - /kuechenlicht - Küchenlicht\n\n - /essecke - Esseckenlicht\n\n - /ambiente\\_wohnen - Ambiente Wohnzimmer\n\n - /ambiente\\_kueche - Ambiente Küche\n\n\n *Rollade öffnen/schliessen:*\n\n - /rollade\\_1 - Rollade 1\n\n - /rollade\\_2 - Rollade 2\n\n - /rollade\\_3 - Rollade 3\n\n - /rollade\\_4 - Rollade Terrasse\n\n\n *Allgemein:*\n\n - /start - Zeigt die Begrüßungsnachricht\n\n - /help - Zeigt eine Nachricht mit Befehlen an\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_tuyaplug3",
|
||
"automation": "- id: telegram_tuyaplug3\n alias: Telegram - Tuyaplug3\n mode: parallel\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /ambiente_wohnen\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /ambiente_wohnen\n actions:\n - action: light.toggle\n data:\n entity_id: light.tuyaplug3\n - wait_for_trigger:\n - trigger: state\n entity_id: light.tuyaplug3\n timeout: 00:00:05\n continue_on_timeout: true\n - action: script.telegram_callback\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id if trigger.event.event_type\n == ''telegram_callback'' else 1000 }}'\n message: 💡 {{ state_attr('light.tuyaplug3', 'friendly_name') }} - {{ states('light.tuyaplug3')\n }}",
|
||
"config": [
|
||
{
|
||
"name": "telegram callback script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.telegram_callback",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tuya plug 3 light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.tuyaplug3",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "w10_irrigation_manual_control",
|
||
"automation": "- id: w10_irrigation_manual_control\n alias: W10 Bewässerung - Manuelle Steuerung\n mode: parallel\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.w10_irrigation_manual_run\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.w10_irrigation_manual_run\n state: 'on'\n sequence:\n - action: script.w10_irrigation_run\n data:\n cycle: manual\n - conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state == ''off'' }}'\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.w10_irrigation_stop",
|
||
"config": [
|
||
{
|
||
"name": "W10 Irrigation Manual Run",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.w10_irrigation_manual_run",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "W10 Irrigation Stop Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.w10_irrigation_stop",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "w10_irrigation_scheduled_run",
|
||
"automation": "- id: w10_irrigation_scheduled_run\n alias: W10 Bewässerung - Geplanter Start\n mode: single\n triggers:\n - trigger: time\n at: input_datetime.w10_irrigation_cycle1_run_time\n variables:\n cycle: cycle1\n enable_boolean: input_boolean.w10_irrigation_cycle1_enable\n - trigger: time\n at: input_datetime.w10_irrigation_cycle2_run_time\n variables:\n cycle: cycle2\n enable_boolean: input_boolean.w10_irrigation_cycle2_enable\n conditions:\n - condition: template\n alias: Wenn Zyklus aktiviert ist\n value_template: '{{ is_state(enable_boolean, ''on'') }}\n\n '\n - condition: state\n entity_id: input_boolean.w10_irrigation_running\n state: 'off'\n - condition: state\n entity_id: input_boolean.w10_irrigation_manual_run\n state: 'off'\n - condition: template\n value_template: '{{ states(''input_number.w10_irrigation_'' ~ cycle ~ ''_duration'')\n | int(0) > 0 }}'\n - condition: template\n value_template: '{{ states(''switch.sonoffs20_2'') != ''unavailable'' }}'\n alias: Wenn Schalter erreichbar ist\n - condition: template\n alias: Sensorbedingungen (Temp, Feuchtigkeit, Regen)\n value_template: \"{% if is_state('input_boolean.w10_irrigation_use_sensor_data',\\\n \\ 'on') -%}\\n {{ states('sensor.rasen_temperature') | float(0) >= states('input_number.w10_irrigation_temperature_threshold')\\\n \\ | float(0) and\\n states('sensor.rasen_moisture') | float(0) <= states('input_number.w10_irrigation_moisture_threshold')\\\n \\ | float(0) and\\n is_state('binary_sensor.mower_rainsensor_triggered','off')\\\n \\ }}\\n{%- else -%}\\n True\\n{%- endif %}\\n\"\n actions:\n - action: script.w10_irrigation_run\n data:\n cycle: '{{ cycle }}'",
|
||
"config": [
|
||
{
|
||
"name": "lawn temperature sensor",
|
||
"room": "garden",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.rasen_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "rain sensor",
|
||
"room": "garden",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.mower_rainsensor_triggered",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sonoff s20 2 switch",
|
||
"room": "garden",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.sonoffs20_2",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "W10 Irrigation Manual Run",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.w10_irrigation_manual_run",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "W10 Irrigation Running",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.w10_irrigation_running",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "W10 Irrigation Use Sensor Data",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.w10_irrigation_use_sensor_data",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "W10 Irrigation (placeholder)",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.w10_irrigation_",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "W10 Irrigation Moisture Threshold",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.w10_irrigation_moisture_threshold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "W10 Irrigation Temperature Threshold",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.w10_irrigation_temperature_threshold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Rasen Moisture Sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.rasen_moisture",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "w10_irrigation_cancel_if_it_rains",
|
||
"automation": "- id: w10_irrigation_cancel_if_it_rains\n alias: W10 Bewässerung - Abbrechen bei Regen\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.mower_rainsensor_triggered\n to: 'on'\n id: rain_instant\n - trigger: state\n entity_id: binary_sensor.mower_rainsensor_triggered\n to: 'on'\n for:\n minutes: 1\n id: rain_sustained\n condition:\n - condition: state\n entity_id: input_boolean.w10_irrigation_running\n state: 'on'\n actions:\n - action: script.w10_irrigation_stop\n - action: notify.telegram_schick_home\n data:\n title: ⛈️ W10 Bewässerung abgebrochen\n message: '{% if trigger.id == ''rain_instant'' %} Regen erkannt - W10 Bewässerung\n sofort abgebrochen. {% else %} Anhaltender Regen - W10 Bewässerung eingestellt.\n {% endif %}\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "rain sensor",
|
||
"room": "garden",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.mower_rainsensor_triggered",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "W10 Irrigation Running",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.w10_irrigation_running",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "W10 Irrigation Stop Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.w10_irrigation_stop",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "wled_integration_manage",
|
||
"automation": "- id: wled_integration_manage\n alias: WLED - Integration manage\n triggers:\n - trigger: state\n entity_id: light.sonoffpow_03\n - trigger: time_pattern\n minutes: /15\n conditions: '{{ is_state(''light.sonoffpow_03'', ''on'') or is_state(''light.sonoffpow_03'',\n ''off'') }}'\n actions:\n - action: '{{ iif(is_state(''light.sonoffpow_03'', ''on''), ''homeassistant.enable_config_entry'',\n ''homeassistant.disable_config_entry'') }}'\n data:\n config_entry_id: 17c5043bacbffb9c30be8a0fab31ff2f",
|
||
"config": [
|
||
{
|
||
"name": "sonoff power light 3",
|
||
"room": "terrace",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.sonoffpow_03",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "wled_loop_run",
|
||
"automation": "- id: wled_loop_run\n alias: WLED - Start Effektschleife\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - input_select.wled_effects_loop\n to: Nacheinander\n - trigger: state\n entity_id:\n - input_select.wled_effects_loop\n to: Zufällig\n actions:\n - action: script.wled_loop",
|
||
"config": [
|
||
{
|
||
"name": "WLED Effects Loop",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.wled_effects_loop",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "robi_modus",
|
||
"automation": "- id: robi_modus\n alias: Robi - Modus\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.robi_fan_speed_list\n actions:\n - action: vacuum.set_fan_speed\n target:\n entity_id: vacuum.robi\n data:\n fan_speed: \"{% set speeds = {\\n 'Leise':'Silent',\\n 'Standard':'Standard',\\n\\\n \\ 'Medium':'Medium',\\n 'Turbo':'Turbo',\\n 'Sanft':'Gentle',\\n 'Auto':'Auto',\\n\\\n \\ }\\n%} {{ iif(trigger.to_state.state in speeds, speeds[trigger.to_state.state],\\\n \\ 'Turbo') }}\"",
|
||
"config": [
|
||
{
|
||
"name": "robi vacuum",
|
||
"room": "home",
|
||
"type": "vacuum",
|
||
"id": {
|
||
"entity_id": "vacuum.robi",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "robi fan speed select",
|
||
"room": "home",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.robi_fan_speed_list",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "robi_raumauswahl",
|
||
"automation": "- id: robi_raumauswahl\n alias: Robi - Raumauswahl\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.robi_zone\n from: Raumauswahl\n actions:\n - action: \"{% if is_state(\\\"input_select.robi_zone\\\",\\\"EG\\\") %}\\n script.robi_home\\n\\\n {% elif is_state(\\\"input_select.robi_zone\\\",\\\"Küche\\\") %}\\n script.robi_kitchen\\n\\\n {% elif is_state(\\\"input_select.robi_zone\\\",\\\"Wohnzimmer\\\") %}\\n script.robi_living_room\\n\\\n {% elif is_state(\\\"input_select.robi_zone\\\",\\\"Stube\\\") %}\\n script.robi_stube\\n\\\n {% elif is_state(\\\"input_select.robi_zone\\\",\\\"Schlafzimmer\\\") %}\\n script.robi_bedroom\\n\\\n {% elif is_state(\\\"input_select.robi_zone\\\",\\\"Flur\\\") %}\\n script.robi_flur\\n\\\n {% elif is_state(\\\"input_select.robi_zone\\\",\\\"HWR\\\") %}\\n script.robi_hwr\\n\\\n {% elif is_state(\\\"input_select.robi_zone\\\",\\\"WC\\\") %}\\n script.robi_wc\\n{%\\\n \\ else %} {% endif %}\\n\"\n - wait_template: '{{is_state(''vacuum.robi'', ''docked'')}}'\n - delay: 00:00:15\n - action: input_select.select_option\n entity_id: input_select.robi_zone\n data:\n option: Raumauswahl\n - action: input_select.select_option\n entity_id: input_select.robi_fan_speed_list\n data:\n option: Turbo",
|
||
"config": [
|
||
{
|
||
"name": "robi vacuum",
|
||
"room": "home",
|
||
"type": "vacuum",
|
||
"id": {
|
||
"entity_id": "vacuum.robi",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "robi fan speed select",
|
||
"room": "home",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.robi_fan_speed_list",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "robi zone select",
|
||
"room": "home",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.robi_zone",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "robi_schedule_cleaning_on_weekdays",
|
||
"automation": "- id: robi_schedule_cleaning_on_weekdays\n alias: Robi - Schedule cleaning on weekdays\n initial_state: false\n triggers:\n - trigger: time\n at: input_datetime.robi_start_weekdays\n conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n actions:\n - action: vacuum.start\n data:\n entity_id: vacuum.robi",
|
||
"config": [
|
||
{
|
||
"name": "robi vacuum",
|
||
"room": "home",
|
||
"type": "vacuum",
|
||
"id": {
|
||
"entity_id": "vacuum.robi",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "robi start weekdays datetime",
|
||
"room": "home",
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.robi_start_weekdays",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "robi_schedule_cleaning_on_weekends",
|
||
"automation": "- id: robi_schedule_cleaning_on_weekends\n alias: Robi - Schedule cleaning on weekends\n initial_state: false\n triggers:\n - trigger: time\n at: input_datetime.robi_start_weekends\n conditions:\n - condition: time\n weekday:\n - sat\n - sun\n actions:\n - action: vacuum.start\n data:\n entity_id: vacuum.robi",
|
||
"config": [
|
||
{
|
||
"name": "robi vacuum",
|
||
"room": "home",
|
||
"type": "vacuum",
|
||
"id": {
|
||
"entity_id": "vacuum.robi",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "robi start weekends datetime",
|
||
"room": "home",
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.robi_start_weekends",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "robi__notify",
|
||
"automation": "- id: robi__notify\n alias: Robi - Notify\n mode: parallel\n triggers:\n - trigger: state\n entity_id: vacuum.robi\n conditions:\n condition: and\n conditions:\n - '{{ trigger.to_state.state != trigger.from_state.state }}'\n - '{{ trigger.from_state.state != ''unavailable'' }}'\n - '{{ trigger.to_state.state != ''unavailable'' }}'\n actions:\n - action: notify.telegram_schick_home\n data:\n title: 🐁 Robi\n message: '{{ state_attr(''vacuum.robi'',''status'') }} <- {{ trigger.from_state.state\n }}'",
|
||
"config": [
|
||
{
|
||
"name": "robi vacuum",
|
||
"room": "home",
|
||
"type": "vacuum",
|
||
"id": {
|
||
"entity_id": "vacuum.robi",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
}
|
||
] |