My binary template sensor not working

@Frank_R How do you pair the ESP with the Orcon?
I tried to pair it first with the original remote cable connected, press A and 1 together after a fresh power down and up of the Orcon device. Now it’s pair and works. But if I now replace the cable connected to my ESP it doesn’t work. Also when I switch back the cable of the remote it isn’t working anymore.
So removing the cable is not a good idea.

– Update–
It works! The cable order was not correct on the adapter board.
Now I could pair with original sensor, replace the cable back to the ESP and control it from Home Assistant!

I added this to my esp yaml template and now I can also control the fan via MQTT.

mqtt:
  broker: xxx.xxx.xxx.xxx
  username: xxx
  password: xxx
  on_message:
     - topic: oron_mcu/mode_away
       then:
         - switch.turn_on: buttonA
         - delay: 500ms
         - switch.turn_off: buttonA
     - topic: oron_mcu/mode_auto
       then:
         - switch.turn_on: buttonA
         - delay: 500ms
         - switch.turn_off: buttonA
     - topic: oron_mcu/mode_timer
       then:
         - switch.turn_on: buttonA
         - delay: 500ms
         - switch.turn_off: buttonA
     - topic: oron_mcu/mode_1
       then:
         - switch.turn_on: button1
         - delay: 500ms
         - switch.turn_off: button1
     - topic: oron_mcu/mode_2
       then:
         - switch.turn_on: button2
         - delay: 500ms
         - switch.turn_off: button2
     - topic: oron_mcu/mode_3
       then:
         - switch.turn_on: button3
         - delay: 500ms
         - switch.turn_off: button3

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.

Nice addon :slight_smile:
Didn’t know the timer setting worked like that.

1 Like

I also created this controller and documented it on Control an Orcon mechanic ventilation system from Home Assistant | vd Brink Home Automations

I also created 3 home assistant dashboards to control it

1 Like

Hello, Sorry to jump in an old topic.
I am new to HA and starting to migrate from Domoticz.
Some things are easy in HA but here is one I do not get.
When you have in Domoticz a switch the dashboard will show the current status also when the switch is a push button. I have build the above setting and that works. The only thing is that when the switch is activated it shows the action but only for the 500ms delay.
Is there a way to see the actual status pa when the fan is in mode 2 the 2 keeps colored?

Kind regards, Har