diff --git a/intern/docker_homeassistant/templates/config/configuration.yaml b/intern/docker_homeassistant/templates/config/configuration.yaml index 2b6a9fbd7b6b984aafc222944dae012e57913d98..94e0d62b428f0b0a266cdaf089cbfe16b5c9d925 100644 --- a/intern/docker_homeassistant/templates/config/configuration.yaml +++ b/intern/docker_homeassistant/templates/config/configuration.yaml @@ -132,6 +132,275 @@ sensor: - 'date_time' automation ansible: + # Abluft dauerhaft an + - alias: ANSIBLE_Abluft_dauer_an + description: Verhindert Ausschalten der Abluft und setzt festen Wert bei schließen der Zone + mode: restart + triggers: + - type: turned_off + device_id: 96844a416179e61fff99195b6a16522e + entity_id: 466bdccea823dfee632a8feac65399a2 + domain: fan + for: + hours: 0 + minutes: 0 + seconds: 1 + trigger: device + - entity_id: + - input_select.zonenstatus + from: open + to: closed + for: + hours: 0 + minutes: 0 + seconds: 1 + trigger: state + conditions: [] + actions: + - if: + - condition: state + entity_id: sensor.season + state: summer + then: + - action: fan.turn_on + metadata: {} + data: + percentage: 15 + target: + device_id: 96844a416179e61fff99195b6a16522e + else: + - action: fan.turn_on + metadata: {} + data: + percentage: 20 + target: + device_id: 96844a416179e61fff99195b6a16522e + + # Licht im Hackcenter dimmen + - alias: ANSIBLE_dali_licht_hackcenter_helligkeit-anpassen + description: Ruft den Helper aus um per MQTT das Licht zu dimmen + trigger: + - platform: state + entity_id: + - input_number.dali_licht_hackcenter + for: + hours: 0 + minutes: 0 + seconds: 0 + action: + - service: mqtt.publish + data: + topic: light/dali + payload_template: "{{ '{{' }} states('input_number.dali_licht_hackcenter') | int {{ '}}' }}" + mode: restart + + - alias: ANSIBLE_Dimmer_Hackcenter_down + description: "" + mode: single + triggers: + - domain: mqtt + device_id: 868d603a22c4f1f6d5cc6d050f962e1a + type: action + subtype: rotate_left + trigger: device + - domain: mqtt + device_id: a35a891d445fc54d0aab7c5e2fce40a1 + type: action + subtype: rotate_left + trigger: device + conditions: [] + actions: + - repeat: + count: 25 + sequence: + - target: + entity_id: input_number.dali_licht_hackcenter + data: {} + action: input_number.decrement + + - alias: ANSIBLE_Dimmer_Hackcenter_up + description: "" + mode: single + triggers: + - domain: mqtt + device_id: 868d603a22c4f1f6d5cc6d050f962e1a + type: action + subtype: rotate_right + trigger: device + - domain: mqtt + device_id: a35a891d445fc54d0aab7c5e2fce40a1 + type: action + subtype: rotate_right + trigger: device + conditions: [] + actions: + - repeat: + count: 25 + sequence: + - target: + entity_id: input_number.dali_licht_hackcenter + data: {} + action: input_number.increment + + - alias: ANSIBLE_Dimmer_Hackcenter_toggle + description: "" + mode: single + triggers: + - domain: mqtt + device_id: 868d603a22c4f1f6d5cc6d050f962e1a + type: action + subtype: single + trigger: device + - domain: mqtt + device_id: a35a891d445fc54d0aab7c5e2fce40a1 + type: action + subtype: single + trigger: device + conditions: [] + actions: + - type: toggle + device_id: f65f71ef46e86492b79d75223670013a + entity_id: c522db6731a33bd27763830ddd2740e2 + domain: switch + + - alias: ANSIBLE_Zonenshutdown + mode: single + triggers: + - trigger: state + entity_id: + - input_select.zonenstatus + from: open + to: closed + conditions: [] + actions: + - parallel: + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_backcenter_off + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_dreckcenter_off + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_gehcenter_off + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_hackcenter_off + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_kackcenter_off + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_loetcenter_off + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_rackcenter_off + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_saal1_off + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_schnackcenter_off + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_hackcenter_licht_nach_shutdown + + - alias: ANSIBLE_Zonenboot + mode: single + triggers: + - trigger: state + entity_id: + - input_select.zonenstatus + from: closed + to: open + conditions: [] + actions: + - parallel: + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_backcenter_on + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_dreckcenter_on + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_gehcenter_on + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_hackcenter_on + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_kackcenter_on + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_loetcenter_on + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_rackcenter_on + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_saal1_on + - action: automation.trigger + metadata: {} + data: + skip_condition: true + target: + entity_id: automation.ansible_schnackcenter_on + # set zonenstatus - alias: ANSIBLE_zonenstatus_set description: Speichert Zonenstatus in einem Helper @@ -298,24 +567,6 @@ automation ansible: Temperatur Hackcenter: {{ '{{' }} states('sensor.temp') {{ '}}' }} °C mode: restart - # Licht im Hackcenter dimmen - - alias: ANSIBLE_dali_licht_hackcenter - description: Ruft den Helper aus um per MQTT das Licht zu dimmen - trigger: - - platform: state - entity_id: - - input_number.dali_licht_hackcenter - for: - hours: 0 - minutes: 0 - seconds: 0 - action: - - service: mqtt.publish - data: - topic: light/dali - payload_template: "{{ '{{' }} states('input_number.dali_licht_hackcenter') | int {{ '}}' }}" - mode: restart - # Feinstaubsensor steuert Luftfilter - alias: ANSIBLE_Feinstaubsensor_Luftfilter description: Feinstaubsensor steuer Luftfilter @@ -358,7 +609,6 @@ automation ansible: device_id: 8b6ff876340558ef11d13441afecec8d mode: restart - # Feinstaubsensor steuert Ampel - alias: ANSIBLE_Feinstaubsensor_Ampel description: Feinstaubsensor status auf Ampel anzeigen @@ -401,434 +651,358 @@ automation ansible: option: Red static mode: restart - # WLED rot lounge - - alias: ANSIBLE_WLED_lounge_red - description: WLED rot in der lounge - trigger: - - type: turned_on - platform: device - device_id: 33915e12bd114226dcd4718e77a27779 - entity_id: binary_sensor.button_5 - domain: binary_sensor - condition: [] - action: - - service: light.turn_on - data: - rgb_color: - - 255 - - 0 - - 0 - effect: Solid - target: - area_id: - - kuche - - lounge - - serverrack - mode: queued - max: 30 - - # WLED rot im hackcenter - - alias: ANSIBLE_WLED_hackcenter_red - description: WLED rot im hackcenter - trigger: - - type: turned_on - platform: device - device_id: 33915e12bd114226dcd4718e77a27779 - entity_id: binary_sensor.button_2 - domain: binary_sensor - condition: [] - action: - - service: light.turn_on - data: - rgb_color: - - 255 - - 0 - - 0 - effect: Solid - target: - area_id: - - hackcenter - - eingang - mode: queued - max: 30 - - - # WLED gruen lounge - - alias: ANSIBLE_WLED_lounge_green - description: WLED gruen in der lounge - trigger: - - type: turned_on - platform: device - device_id: 33915e12bd114226dcd4718e77a27779 - entity_id: binary_sensor.button_5 - domain: binary_sensor - for: - hours: 0 - minutes: 0 - seconds: 1 - condition: [] - action: - - service: light.turn_on - data: - rgb_color: - - 0 - - 255 - - 0 - effect: Solid - target: - area_id: - - kuche - - lounge - - serverrack - mode: queued - max: 30 - - # WLED gruen hackcenter - - alias: ANSIBLE_WLED_hackcenter_green - description: WLED gruen im hackcenter - trigger: - - type: turned_on - platform: device - device_id: 33915e12bd114226dcd4718e77a27779 - entity_id: binary_sensor.button_2 - domain: binary_sensor - for: - hours: 0 - minutes: 0 - seconds: 1 - condition: [] - action: - - service: light.turn_on - data: - rgb_color: - - 0 - - 255 - - 0 - effect: Solid - target: - area_id: - - hackcenter - - eingang - mode: queued - max: 30 - - - # WLED blue lounge - - alias: ANSIBLE_WLED_lounge_blue - description: wLED blau in der lounge - trigger: - - type: turned_on - platform: device - device_id: 33915e12bd114226dcd4718e77a27779 - entity_id: binary_sensor.button_5 - domain: binary_sensor - for: - hours: 0 - minutes: 0 - seconds: 2 - condition: [] - action: - - service: light.turn_on - data: - rgb_color: - - 0 - - 0 - - 255 - effect: Solid - target: - area_id: - - kuche - - lounge - - serverrack - mode: queued - max: 30 - - # WLED blue hackcenter - - alias: ANSIBLE_WLED_hackcenter_blue - description: wLED blau im hackcenter - trigger: - - type: turned_on - platform: device - device_id: 33915e12bd114226dcd4718e77a27779 - entity_id: binary_sensor.button_2 - domain: binary_sensor - for: - hours: 0 - minutes: 0 - seconds: 2 - condition: [] - action: - - service: light.turn_on - data: - rgb_color: - - 0 - - 0 - - 255 - effect: Solid - target: - area_id: - - hackcenter - - eingang - mode: queued - max: 30 - - - # WLED white lounge - - alias: ANSIBLE_WLED_lounge_white - description: WLED weiss in der lounge - trigger: - - type: turned_on - platform: device - device_id: 33915e12bd114226dcd4718e77a27779 - entity_id: binary_sensor.button_5 - domain: binary_sensor - for: - hours: 0 - minutes: 0 - seconds: 3 - condition: [] - action: - - service: light.turn_on - data: - rgb_color: - - 255 - - 255 - - 255 - effect: Solid - target: - area_id: - - kuche - - lounge - - serverrack - mode: queued - max: 30 - - # WLED white hackcenter - - alias: ANSIBLE_WLED_hackcenter_white - description: WLED weiss im hackcenter - trigger: - - type: turned_on - platform: device - device_id: 33915e12bd114226dcd4718e77a27779 - entity_id: binary_sensor.button_2 - domain: binary_sensor - for: - hours: 0 - minutes: 0 - seconds: 3 - condition: [] - action: - - service: light.turn_on - data: - rgb_color: - - 255 - - 255 - - 255 - effect: Solid - target: - area_id: - - hackcenter - - eingang - mode: queued - max: 30 - - # WLED off lounge - - alias: ANSIBLE_WLED_lounge_off - description: WLED aus in der lounge - trigger: - - type: turned_on - platform: device - device_id: 33915e12bd114226dcd4718e77a27779 - entity_id: binary_sensor.button_6 - domain: binary_sensor - for: - hours: 0 - minutes: 0 - seconds: 0 - condition: [] - action: - - service: light.turn_off + # Türöffner Knopf + - alias: ANSIBLE_Button_Türöffner + description: "" + mode: single + triggers: + - domain: mqtt + device_id: 388988a29515369fb821e4e0ff8d9e27 + type: action + subtype: single + trigger: device + conditions: [] + actions: + - action: rest_command.open_door + metadata: {} + data: {} + + + - alias: ANSIBLE_ZONE_backcenter_aus + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_off + metadata: {} + data: {} target: - area_id: - - kuche - - lounge - - serverrack - - service: rest_command.set_lounge_matrix_off + area_id: backcenter + - action: switch.turn_off + metadata: {} data: {} - mode: queued - max: 30 - - # WLED off hackcenter - - alias: ANSIBLE_WLED_hackcenter_off - description: WLED aus im hackcenter - trigger: - - type: turned_on - platform: device - device_id: 33915e12bd114226dcd4718e77a27779 - entity_id: binary_sensor.button_3 - domain: binary_sensor - for: - hours: 0 - minutes: 0 - seconds: 0 - condition: [] - action: - - service: light.turn_off target: - area_id: - - hackcenter - - eingang - mode: queued - max: 30 - - # WLED Zonenstatus - - alias: ANSIBLE_WLED_Zonenstatus - description: "Turn WLED devices on, when opened, off when closed" + area_id: backcenter mode: single - trigger: - - platform: state - entity_id: - - input_select.zonenstatus - condition: [] - action: - - choose: - - conditions: - - condition: state - entity_id: input_select.zonenstatus - state: open - sequence: - - service: light.turn_on - data: {} - target: - area_id: - - eingang - - hackcenter - - kuche - - lounge - - conditions: - - condition: state - entity_id: input_select.zonenstatus - state: closed - sequence: - - service: light.turn_off - data: {} - target: - area_id: - - eingang - - hackcenter - - kuche - - lounge - - # ESPHOME Zonenstatus - - alias: "ANSIBLE_ESPHOME_Zonenstatus" + + - alias: ANSIBLE_ZONE_dreckenter_aus description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_off + metadata: {} + data: {} + target: + area_id: dreckcenter + - action: switch.turn_off + metadata: {} + data: {} + target: + area_id: backcenter mode: single - trigger: - - platform: state - entity_id: - - input_select.zonenstatus - condition: [] - action: - - choose: - - conditions: - - condition: state - entity_id: input_select.zonenstatus - state: "opened" - sequence: - - service: light.turn_on - data: - effect: Rainbow - target: - entity_id: - - light.liba_logo_leds - - light.kuehl_leds - - type: turn_on - entity_id: light.brightness - domain: light - - type: turn_on - entity_id: switch.esphome_plug01_relay - domain: switch - - type: turn_on - entity_id: switch.esphome_plug02_relay - domain: switch - - type: turn_on - entity_id: switch.esphome_plug03_relay - domain: switch - - type: turn_on - entity_id: switch.esphome_plug04_relay - domain: switch - - type: turn_on - entity_id: switch.esphome_plug05_relay - domain: switch - - type: turn_on - entity_id: switch.esphome_plug06_relay - domain: switch - - type: turn_on - entity_id: switch.esphome_plug07_relay - domain: switch - - type: turn_on - entity_id: switch.esphome_plug08_relay - domain: switch - - type: turn_on - entity_id: switch.tasmota_nous_plug1 - domain: switch - - type: turn_on - entity_id: switch.tasmota_nous_plug4 - domain: switch - - type: turn_on - entity_id: switch.tasmota_nous_plug6 - domain: switch - - type: turn_on - entity_id: switch.tasmota_nous_plug7 - domain: switch - - conditions: - - condition: state - entity_id: input_select.zonenstatus - state: "closed" - sequence: - - type: turn_off - entity_id: switch.esphome_plug01_relay - domain: switch - - type: turn_off - entity_id: switch.esphome_plug02_relay - domain: switch - - type: turn_off - entity_id: switch.esphome_plug03_relay - domain: switch - - type: turn_off - entity_id: switch.esphome_plug04_relay - domain: switch - - type: turn_off - entity_id: switch.esphome_plug05_relay - domain: switch - - type: turn_off - entity_id: switch.esphome_plug06_relay - domain: switch - - type: turn_off - entity_id: switch.esphome_plug07_relay - domain: switch - - type: turn_off - entity_id: switch.esphome_plug08_relay - domain: switch - - type: turn_off - entity_id: switch.tasmota_nous_plug1 - domain: switch - - type: turn_off - entity_id: switch.tasmota_nous_plug4 - domain: switch - - type: turn_off - entity_id: switch.tasmota_nous_plug6 - domain: switch - - type: turn_on - entity_id: switch.tasmota_nous_plug7 - domain: switch - - service: light.turn_off - data: {} - target: - entity_id: - - light.liba_logo_leds - - light.kuehl_leds - - type: turn_off - device_id: 7ba91dde6b1413340fdc66f2984dfd00 - entity_id: light.brightness - domain: light \ No newline at end of file + + - alias: ANSIBLE_ZONE_gehcenter_aus + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_off + metadata: {} + data: {} + target: + area_id: gehcenter + - action: switch.turn_off + metadata: {} + data: {} + target: + area_id: gehcenter + mode: single + + - alias: ANSIBLE_ZONE_hackcenter_aus + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_off + metadata: {} + data: {} + target: + area_id: hackcenter + - action: switch.turn_off + metadata: {} + data: {} + target: + area_id: hackcenter + mode: single + + - alias: ANSIBLE_ZONE_kackcenter_aus + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_off + metadata: {} + data: {} + target: + area_id: kackcenter + - action: switch.turn_off + metadata: {} + data: {} + target: + area_id: kackcenter + mode: single + + - alias: ANSIBLE_ZONE_loetcenter_aus + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_off + metadata: {} + data: {} + target: + area_id: loetcenter + - action: switch.turn_off + metadata: {} + data: {} + target: + area_id: loetcenter + mode: single + + - alias: ANSIBLE_ZONE_rackcenter_aus + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_off + metadata: {} + data: {} + target: + area_id: rackcenter + - action: switch.turn_off + metadata: {} + data: {} + target: + area_id: rackcenter + mode: single + + - alias: ANSIBLE_ZONE_saal1_aus + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_off + metadata: {} + data: {} + target: + area_id: saal1 + - action: switch.turn_off + metadata: {} + data: {} + target: + area_id: saal1 + mode: single + + - alias: ANSIBLE_ZONE_schnackcenter_aus + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_off + metadata: {} + data: {} + target: + area_id: schnackcenter + - action: switch.turn_off + metadata: {} + data: {} + target: + area_id: schnackcenter + mode: single + + - alias: ANSIBLE_ZONE_backcenter_an + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_on + metadata: {} + data: {} + target: + area_id: backcenter + - action: switch.turn_on + metadata: {} + data: {} + target: + area_id: backcenter + mode: single + + - alias: ANSIBLE_ZONE_dreckenter_an + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_on + metadata: {} + data: {} + target: + area_id: dreckcenter + - action: switch.turn_on + metadata: {} + data: {} + target: + area_id: backcenter + mode: single + + - alias: ANSIBLE_ZONE_gehcenter_an + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_on + metadata: {} + data: {} + target: + area_id: gehcenter + - action: switch.turn_on + metadata: {} + data: {} + target: + area_id: gehcenter + mode: single + + - alias: ANSIBLE_ZONE_hackcenter_an + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_on + metadata: {} + data: {} + target: + area_id: hackcenter + - action: switch.turn_on + metadata: {} + data: {} + target: + area_id: hackcenter + mode: single + + - alias: ANSIBLE_ZONE_kackcenter_an + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_on + metadata: {} + data: {} + target: + area_id: kackcenter + - action: switch.turn_on + metadata: {} + data: {} + target: + area_id: kackcenter + mode: single + + - alias: ANSIBLE_ZONE_loetcenter_an + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_on + metadata: {} + data: {} + target: + area_id: loetcenter + - action: switch.turn_on + metadata: {} + data: {} + target: + area_id: loetcenter + mode: single + + - alias: ANSIBLE_ZONE_rackcenter_an + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_on + metadata: {} + data: {} + target: + area_id: rackcenter + - action: switch.turn_on + metadata: {} + data: {} + target: + area_id: rackcenter + mode: single + + - alias: ANSIBLE_ZONE_saal1_an + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_on + metadata: {} + data: {} + target: + area_id: saal1 + - action: switch.turn_on + metadata: {} + data: {} + target: + area_id: saal1 + mode: single + + - alias: ANSIBLE_ZONE_schnackcenter_an + description: "" + triggers: [] + conditions: [] + actions: + - action: light.turn_on + metadata: {} + data: {} + target: + area_id: schnackcenter + - action: switch.turn_on + metadata: {} + data: {} + target: + area_id: schnackcenter + mode: single + + - alias: ANSIBLE_Hackcenter_licht_nach_shutdown + description: "" + mode: restart + triggers: [] + conditions: [] + actions: + - metadata: {} + data: + value: 255 + target: + entity_id: input_number.dali_licht_hackcenter + action: input_number.set_value + - delay: + hours: 0 + minutes: 1 + seconds: 0 + milliseconds: 0 + - metadata: {} + data: + value: 150 + target: + entity_id: input_number.dali_licht_hackcenter + action: input_number.set_value + - delay: + hours: 0 + minutes: 0 + seconds: 10 + milliseconds: 0 + - type: turn_off + device_id: f65f71ef46e86492b79d75223670013a + entity_id: c522db6731a33bd27763830ddd2740e2 + domain: switch \ No newline at end of file