Hello, I am trying to replicate the signals from my remote to control the air conditioning.
This is an air conditioner and is not in the list of supported devices. For now I just want to be able to turn the machine on and off. Shipping would not be a problem. I would like to be able to update the status when receiving the signal from the remote control using remote receiver automations.
# Example automation for decoded signals
remote_receiver:
...
on_samsung:
then:
- if:
condition:
or:
- lambda: 'return (x.data == 0xE0E0E01F);' # VOL+ newer type
- lambda: 'return (x.data == 0xE0E0E01F0);' # VOL+ older type
then:
- ...
This is the example given, but I would like to use it for haier since the codes can be recognized.
I have tried:
remote_receiver:
id: rcvr
pin:
number: GPIO2
inverted: true
dump: raw
on_haier:
then:
- if:
condition:
or:
- lambda: 'return (x.data == A6.EC.0F.00.79.40.00.20.00.00.00.00.05);'
then:
- switch.turn_on: ac2
But it gives a compilation error.
Does anyone have an idea? Can you help me?