Hey to all developpers
I am very new to HA and I try to intergrate all my sonoff devices on HA. I really need helps to establish the right configuration of the config file. I already apologies for my poor english and the fact that I will not use the proper therms …
I have a RF433 bridge flashed with the proper firmware and and manage to get the code transmetted by the bridge to HA (003e0ce when off, 003e0ce2 when on). I tried to implement the template into the configuration file and create the binary sensor witch can show the current state of the sensor. I can see on the dashboard that the sensor is created but it does not show the state of the sensor. Do I have write the right yaml code? Someone can hep me? Here below the code snifet included in the conf file.
template:
- trigger:
- platform: event
event_type: esphome.rf_code_received
event_data:
code: 003e0ce2
variables:
to_state: off - platform: event
event_type: esphome.rf_code_received
event_data:
code: 003e0ce1
variables:
to_state: on
binary_sensor: - name: lumière bur
device_class: door
state: “”
- platform: event