KNX and automations

Hi all,

I know my question is not new I guess, but it is not easy to find the correct answer regarding my needs!

Is there anyone who can send me a simple example how to use HA automation for following KNX requirement? I have a simple house ventilation connected to my KNX environment. I can turn it on or of with a simple HA knx switch like this;
switch:

  • platform: knx
    name: ‘Badkamer Ventilatie’
    address: ‘5/1/1’

But how can I use HA automations to turn on my ventilation on specific days or weekdays and specific time? Also turn it of on a specific time? :slight_smile:

Thx,

Jurgen

KNX switch is no different to any other switch.

You may try:

- alias: "Turn ventilation on"
  trigger:
    - platform: time
      at: "10:00:00"
  condition:
    - condition: time
      weekday:
        - mon
        - wed
        - fri
  action:
    - service: switch.turn_on
      entity_id: switch.badkammer_ventilatie

- alias: "Turn ventilation off"
  trigger:
    - platform: time
      at: "11:00:00"
  condition:
    - condition: time
      weekday:
        - mon
        - wed
        - fri
  action:
    - service: switch.turn_off
      entity_id: switch.badkammer_ventilatie

Hi Ralf,

Thx for the info!
The automations are not working if I use dates!
WIthout no problem! :slight_smile: