diff --git a/intern/docker_homeassistant/templates/config/configuration.yaml b/intern/docker_homeassistant/templates/config/configuration.yaml index e7080259fa30fcb0dd0a791d6043e4fb356f9270..1bc6d44bf501618a9350a6e7e629ccd1d23f9b2f 100644 --- a/intern/docker_homeassistant/templates/config/configuration.yaml +++ b/intern/docker_homeassistant/templates/config/configuration.yaml @@ -248,10 +248,59 @@ automation ansible: timeout: 30 message: Die warpzone ist seit {{ '{{' }} states('sensor.time') {{ '}}' }} geschlossen! mode: restart + + # Stromverbrauch auf Telegram senden + - alias: ANSIBLE_stromverbrauch_send_telegram + description: Sendet alle 10 Minuten den Stromverbrauch per Telegram + trigger: + - platform: time_platform + minutes: /10 + condition: [] + action: + - if: + - condition: state + entity_id: automation.ansible_zonenstatus_send_telegram + attribute: current + state: "1" + then: + - wait_for_trigger: + - platform: state + entity_id: + - automation.ansible_zonenstatus_send_telegram + attribute: current + to: "0" + - service: telegram_bot.send_message + data: + target: -1001341516106 + timeout: 30 + message: >- + {{ states('sensor.esphome_status_power') }} kW bei angenehmen {{ 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 + condition: [] + action: + - service: mqtt.publish + data: + topic: light/dali + payload_template: "{{ states('input_number.dali_licht_hackcenter') | int }}" + mode: restart + + - #turn off all radiators + # turn off all radiators - alias: ANSIBLE_heizung_aus - description: "Schaltet alle Heizungen aus" + description: Schaltet alle Heizungen aus trigger: [] condition: [] action: