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

Mqtt binary sensor with more than one payload_on

$
0
0

I have a PIR motion sensor that runs over RF. But its an annoying one that have several payloads according to the proximity from the sensor.
So if I’m close when it triggers, it pays out one number, a bit further away = another number etc.
This makes it extremely annoying and inconsistent when I’m trying to automate around that.
I don’t want to have sensors in HA for every proximity the sensor gives a state on.

My binary sensor is implemented in HA like so:

- platform: mqtt
  state_topic: "tele/JDBA-RF-Bridge/RESULT"
  name: "Kitchen movement"
  value_template: "{{ value_json.RfReceived.Data }}"
  payload_on: "14C9EC"
  off_delay: 5
  device_class: motion

It is reporting in to a Sonoff RF bridge with the values.

So, my question is the following:
Is there a way that i can make several payload_on: values, or can someone point me to a direction for me to achieve my goal of just getting a statement if there is movement, and not which kind of movement there is?

Thanks in advance
Baskedk

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106363

Trending Articles



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