I flashed an FR Bridge 2 with ESPHome and the data is being received and displayed using the event “esphome.rf_code_received”. I have a Govee 433 MHz water sensor that sends code 006ba32 when moisture is detected and 006ba30 when the button is pushed. I’d like to have a template binary sensor that sets the state wet when the first code is received and dry when the second code is received. Like this in pseudo code:
- name: "Laundry Moisture"
unique_id: laundry_moisture
device_class: moisture
state: wet with the first code, dry with the second
Is it possible to set the state of a sensor directly from an event being fired, or do I have to have a publish event for each code in the ESPHome yaml in the RF Bridge? Thanks for any help.
I added device class as moisture and this works just as I wanted. Thanks! I have five of these sensors so a lot of copy and paste. I previously had these sensors read by a rtl_433 device to MQTT, but that wasn’t very reliable. This should work better.