Change states() to is_state() and it should work. States returns the value of the entity. is_state checks the state of an entity against a supplied state, which is what you are trying to do.
Edit: you also don’t need the entity_id field. It’s going away next release too. Just remove it now because it should work without it.
Via the band cable and the terminal board (bought on AliExpres) no soldering is required. In only soldered the wires to replace the battery with power from the NodeMCU.
For the readback I use a SONOFF POW2 power monitor and created a template sensor that determines the mode based on power consumption.
Thanks. I think I understand how you managed to get the right readings with the sonoff.
I still have to figure out how to send commands to my Orcon unit…
It looks like a have a different remote unit…
The remote ( CO2 Remote control sensor 15RF ) downstairs looks like this:
Already tried to play with the 868 mhz, but no luck. Thinking about to control it maybe somehow with a shelly/sonoff directly, but would not know where to start.
Hi Frank, I have the same unit and I am trying to figure this out but I am running into some trouble when I try to simulate the touch switch with my esp. Do you mind sharing your esphome code? Would be greatly appreciated.
@Frank_R Great mod, thanks for describing! I suppose you link the state of the ventilation to the start/stop of your showering/cooking or does it serve another purpose? If so, does this provide a lot of extra comfort compared to the “auto” mode in which the ventilation is automatically adjusted based on CO2 and moisture sensors in the device? I suppose the goal is to get rid of a lag phase, during which the “auto” ventilation is not yet adjusted when you just started showering?
Yes, indeed. I’m now in full control when and how much ventilation is required. Especially for showering I feel it’s improved.
But I’m also using this for the toilets. When movement is detected the ventilation starts. The duration even depends on which flush button is used