Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95365

Sonoff RF Bridge MQTT Reset device state

$
0
0

@Mave922 wrote:

I have a 433mhz water sensor that I have working with Sonoff RF Bridge(Tasmota) and MQTT. The water detection alert works fine, but the water sensor doesn’t send a signal when there is no longer water. I tried setting up an automation to clear the status, but it isn’t working. Any thoughts?

Sensor:

- platform: mqtt
  state_topic: "tele/RF_Bridge/RESULT"
  name: 'Basement Water Sensor'
  value_template: '{{value_json.RfReceived.Data}}'
  payload_on: '6EEC0C'
  payload_on: '6EEC0Coff'
  device_class: Moisture
  qos: 1

Automation to clear sensor:

- alias: Reset basement water detecotr
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: binary_sensor.basement_water_sensor
    from: 'off'
    to: 'on'
    for: "01:00:00"
  action:
  - service: mqtt.publish
    data:
      topic: tele/RF_Bridge/RESULT
      payload: 6EEC0Coff

Posts: 6

Participants: 5

Read full topic


Viewing all articles
Browse latest Browse all 95365

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>