Thank you @Frank_R
I’ve also built this, but added the timer too. Lane 3 is the Timer, Lane 5 is the Away setting. I connected Terminal Pin6 to D7 on the NodeMCU. Then changed the esp yaml template. Starting at switch: I changed it for the following:
switch:
- platform: gpio
pin: D1
inverted: True
id: buttonA
- platform: gpio
pin: D2
inverted: True
id: button1
- platform: gpio
pin: D5
inverted: True
id: button2
- platform: gpio
pin: D6
inverted: True
id: button3
- platform: gpio
pin: D7
inverted: True
id: buttonT
- platform: template
name: "Orcon Ventilatie Auto"
icon: "mdi:fan-auto"
turn_on_action:
- switch.turn_on: buttonA
- delay: 500ms
- switch.turn_off: buttonA
- platform: template
name: "Orcon Ventilatie 1"
icon: "mdi:fan-speed-1"
turn_on_action:
- switch.turn_on: button1
- delay: 500ms
- switch.turn_off: button1
- platform: template
name: "Orcon Ventilatie 2"
icon: "mdi:fan-speed-2"
turn_on_action:
- switch.turn_on: button2
- delay: 500ms
- switch.turn_off: button2
- platform: template
name: "Orcon Ventilatie 3"
icon: "mdi:fan-speed-3"
turn_on_action:
- switch.turn_on: button3
- delay: 500ms
- switch.turn_off: button3
- platform: template
name: "Orcon Timer 1"
icon: "mdi:fast-forward-15"
turn_on_action:
- switch.turn_on: buttonT
- delay: 500ms
- switch.turn_off: buttonT
- platform: template
name: "Orcon Timer 2"
icon: "mdi:fast-forward-30"
turn_on_action:
- switch.turn_on: buttonT
- delay: 500ms
- switch.turn_off: buttonT
- delay: 500ms
- switch.turn_on: buttonT
- delay: 500ms
- switch.turn_off: buttonT
- platform: template
name: "Orcon Timer 3"
icon: "mdi:fast-forward-60"
turn_on_action:
- switch.turn_on: buttonT
- delay: 500ms
- switch.turn_off: buttonT
- delay: 500ms
- switch.turn_on: buttonT
- delay: 500ms
- switch.turn_off: buttonT
- delay: 500ms
- switch.turn_on: buttonT
- delay: 500ms
- switch.turn_off: buttonT
So basically, added the three timer options: 15min, 30min and 60min. These run the fan for 15/30/60 minutes at the highest setting. (Also changed the mdi icons of the other buttons.)
Maybe I’ll add the Away button too, but I’ll have to figure out to which pin on the NodeMCU that could be connected, since I’m a newbie at that front. I might add a reconnect button too (‘press’ auto + speed 2 for 3 secs) because my orcon remote seems to reset it’s connection to the main unit if I change anything about the wires. Quite annoying.