Home Assistant Community

Mqtt.py log warning "No matching payload found for entity"

mqtt
Tags: #<Tag:0x00007fcf62d282d0>
#73

I do have over 20 sensors, so not really an option to me by using rules, I need access to the code of the full component for MQTT and copy it under custom components and then do the modifications there, but I do not know where to find the build in component/platform to do this.
your suggestion on NodeRed seems like an option, but if possible I would like to use HASSIO, but I will switch if this does not get fixed soon

#74

I am using a standard Sonoff RF bridge with standard Sonoff RF sensors. I have two outdoors and 5 indoors. And I have 2 door sensors and 4 window sensors also Sonoff RF.
They all send to the same Sonoff RF Bridge running the Tasmota software which is very popular among Home Assistant owners.

And we all make binary_sensors that look for the tele/sonoffbridge/RESULT MQTT topic.

I looked at the Tasmota documentation and I cannot find a configuration where e.g. the unique ID of the sensor can be part of the MQTT topic name. That would be the working solution but then it is Tasmota that would need a feature enhancement. And it is not really needed. From an MQTT perspective there is nothing wrong in having a topic for an RF receiver and put the unique ID in the payload.

And we all follow the standard straight method to create a binary_sensor in Home Assistant.

I now - just by having me and my wife walking around the house triggering the motion sensors 1000s of log entries. Many 1000s now that I have installed the last motion sensor. This warning has no other purpose than wearing out the SD card on a Raspberry and loading Home Assistant doing useless IO. This warning has no purpose and you can see both from this forum post and from reactions on https://github.com/home-assistant/home-assistant/pull/11836 all the way from before the pull till very recently that the effect is all negative and not a single positive. Noone needs these warnings. They harm and do no good. That code change should be reverted. Or at least the log level should be lowered to debug. Normal log level should not flood the logs with useless info. Please revert this @pvizeli

#75

would you share your code in nodered?

#76

Sure, I posted it on another thread.

#77

thank you!

#78

For your info, OMG now implements the possibility to add the sensor received value at the end of the topic on which the information are published.

Enabling by the way to have one topic per sensor, this should avoid your issue of logs flooding.

#79

I tried to import to clipboard, but does not allow me to move forward, I do not know how to use NodRed, is there something else I need to download not included on the default node red configuration?

#80

On the off chance you’re not following the link I’ll post the full thing here.

You’ll need to change the verbage, keycodes, and topics to whatever you want but hopefully you’ll be able to figure out the flow.

[{“id”:“e6c10435.fd7f98”,“type”:“tab”,“label”:“433mhz to MQTT”,“disabled”:false,“info”:“This takes 433mhz input and outputs to the correct MQTT topic”},{“id”:“7ceb86b2.01f3f8”,“type”:“mqtt in”,“z”:“e6c10435.fd7f98”,“name”:“Sonoff RF Incoming”,“topic”:“house/rfbridge1/tele/RESULT”,“qos”:“0”,“broker”:“2b51ea82.8463b6”,“x”:100,“y”:200,“wires”:[[“428ee070.8fd66”,“84f4f92c.ade0f8”]]},{“id”:“428ee070.8fd66”,“type”:“debug”,“z”:“e6c10435.fd7f98”,“name”:"",“active”:false,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:320,“y”:130,“wires”:[]},{“id”:“84f4f92c.ade0f8”,“type”:“json”,“z”:“e6c10435.fd7f98”,“name”:“Convert to Object”,“property”:“payload”,“action”:“obj”,“pretty”:false,“x”:260,“y”:280,“wires”:[[“76b181d9.a1faa”,“47fd8e3d.42284”]]},{“id”:“76b181d9.a1faa”,“type”:“debug”,“z”:“e6c10435.fd7f98”,“name”:“JSON to Object”,“active”:false,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“payload”,“x”:480,“y”:240,“wires”:[]},{“id”:“47fd8e3d.42284”,“type”:“switch”,“z”:“e6c10435.fd7f98”,“name”:“Select Door and State”,“property”:“payload.RfReceived.Data”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“30BE0A”,“vt”:“str”},{“t”:“eq”,“v”:“30BE0E”,“vt”:“str”},{“t”:“eq”,“v”:“33530A”,“vt”:“str”},{“t”:“eq”,“v”:“33530E”,“vt”:“str”},{“t”:“eq”,“v”:“2FEF0A”,“vt”:“str”},{“t”:“eq”,“v”:“2FEF0E”,“vt”:“str”},{“t”:“eq”,“v”:“30220A”,“vt”:“str”},{“t”:“eq”,“v”:“30220E”,“vt”:“str”},{“t”:“eq”,“v”:“2D670A”,“vt”:“str”},{“t”:“eq”,“v”:“2D670E”,“vt”:“str”},{“t”:“eq”,“v”:“33380A”,“vt”:“str”},{“t”:“eq”,“v”:“33380E”,“vt”:“str”},{“t”:“eq”,“v”:“32760A”,“vt”:“str”},{“t”:“eq”,“v”:“32760E”,“vt”:“str”},{“t”:“eq”,“v”:“2F010A”,“vt”:“str”},{“t”:“eq”,“v”:“2F010E”,“vt”:“str”},{“t”:“eq”,“v”:“2ED50A”,“vt”:“str”},{“t”:“eq”,“v”:“2ED50E”,“vt”:“str”},{“t”:“eq”,“v”:“2CF00A”,“vt”:“str”},{“t”:“eq”,“v”:“2CF00E”,“vt”:“str”},{“t”:“eq”,“v”:“32580A”,“vt”:“str”},{“t”:“eq”,“v”:“32580E”,“vt”:“str”}],“checkall”:“false”,“repair”:false,“outputs”:22,“x”:490,“y”:470,“wires”:[[“31e6e3da.39580c”],[“1e7a7f66.2c37d1”],[“2d21974f.0969d8”],[“f9c8103c.ed944”],[“23d35be0.d23004”],[“c500a26e.4ca64”],[“acb1b975.58bd68”],[“dae5d5ae.1a3f78”],[“7fc87cf9.05a724”],[“af3b73b3.2f0d6”],[“76d72240.1dbd1c”],[“4ace0758.f04d08”],[“9289e22.928fc2”],[“fb20963a.819728”],[“bf193261.8abd6”],[“60af8b2.da78474”],[“89b76642.dbc618”],[“d74df00f.a5e05”],[“a32a4909.5986c8”],[“2b5887cb.89d0b8”],[“5801191a.4fa798”],[“a205853c.977708”]],“outputLabels”:[“Girls Door Opened”,“Girls Door Closed”,“M. Bath Door Opened”,“M. Bath Door Closed”,“Front Garage Opened”,“Front Garage Closed”,“Shop Door Opened”,“Shop Door Closed”,“M. Bedroom Door Opened”,“M. Bedroom Door Closed”,“Front Door Opened”,“Front Door Closed”,“Back Door Opened”,“Back Door Closed”,“Office Door Opened”,“Office Door Closed”,“Boys Door Opened”,“Boys Door Closed”,“Garage Cover Opened”,“Garage Cover Closed”,“Garage Door Opened”,“Garage Door Closed”]},{“id”:“1af48cab.b6e013”,“type”:“debug”,“z”:“e6c10435.fd7f98”,“name”:“Test Open - Attach to node to test”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“payload”,“x”:1290,“y”:80,“wires”:[]},{“id”:“76232b7b.e90934”,“type”:“debug”,“z”:“e6c10435.fd7f98”,“name”:“Test Closed - Attach to node to test”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“payload”,“x”:1290,“y”:130,“wires”:[]},{“id”:“1e7a7f66.2c37d1”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Girls Door - Closed”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/Girls_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:800,“y”:100,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“31e6e3da.39580c”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Girls Door - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/Girls_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:810,“y”:60,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“ba9e79d4.7bd868”,“type”:“mqtt out”,“z”:“e6c10435.fd7f98”,“name”:“Send to Home Assistant”,“topic”:"",“qos”:"",“retain”:"",“broker”:“2b51ea82.8463b6”,“x”:1430,“y”:530,“wires”:[]},{“id”:“f9c8103c.ed944”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“M. Bathroom Door - Closed”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/m_bath_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:1040,“y”:240,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“2d21974f.0969d8”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“M. Bathroom Door - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/m_bath_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:1040,“y”:200,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“dae5d5ae.1a3f78”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Shop Door - Closed”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/shop_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:790,“y”:490,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“acb1b975.58bd68”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Shop Door - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/shop_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:800,“y”:450,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“af3b73b3.2f0d6”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“M. Bedroom Door - Closed”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/m_bed_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:1040,“y”:320,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“7fc87cf9.05a724”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“M. Bedroom Door - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/m_bed_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:1040,“y”:280,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“d74df00f.a5e05”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Boys Door - Closed”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/Boys_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:800,“y”:180,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“89b76642.dbc618”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Boys Door - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/Boys_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:800,“y”:140,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“60af8b2.da78474”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Office Door - Closed”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/office_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:820,“y”:400,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“bf193261.8abd6”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Office Door - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/office_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:820,“y”:360,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“fb20963a.819728”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:" Back Door - Closed",“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/back_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:1050,“y”:560,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“9289e22.928fc2”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Back Door - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/back_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:1060,“y”:520,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“c500a26e.4ca64”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Front Garage Door - Closed”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/f_garage_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:810,“y”:800,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“23d35be0.d23004”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Front Garage Door - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/f_garage_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:810,“y”:760,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“4ace0758.f04d08”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Front Door - Closed”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/front_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:1050,“y”:640,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“76d72240.1dbd1c”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Front Door - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/front_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:1060,“y”:600,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“a205853c.977708”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Garage Door - Closed”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/garage_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:790,“y”:710,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“5801191a.4fa798”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Garage Door - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/garage_door”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:790,“y”:670,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“2b5887cb.89d0b8”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Garage Cover - Closed”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/garage_cover”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“OFF”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:800,“y”:890,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“a32a4909.5986c8”,“type”:“change”,“z”:“e6c10435.fd7f98”,“name”:“Garage Cover - Opened”,“rules”:[{“t”:“delete”,“p”:“payload”,“pt”:“msg”},{“t”:“set”,“p”:“topic”,“pt”:“msg”,“to”:“house/433mhz/garage_cover”,“tot”:“str”},{“t”:“set”,“p”:“qos”,“pt”:“msg”,“to”:“1”,“tot”:“str”},{“t”:“set”,“p”:“retain”,“pt”:“msg”,“to”:“true”,“tot”:“str”},{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“ON”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:800,“y”:850,“wires”:[[“ba9e79d4.7bd868”]]},{“id”:“2b51ea82.8463b6”,“type”:“mqtt-broker”,“z”:"",“name”:“Home Assistant”,“broker”:“192.168.0.1”,“port”:“1883”,“clientid”:"",“usetls”:false,“compatmode”:true,“keepalive”:“60”,“cleansession”:true,“birthTopic”:"",“birthQos”:“0”,“birthPayload”:"",“closeTopic”:"",“closeQos”:“0”,“closePayload”:"",“willTopic”:"",“willQos”:“0”,“willPayload”:""}]

#81

I am using HASSIO 0.89.1 on raspberry, I am not able to find : home-assistant-homeassistant:/usr/src/app/homeassistant/components/mqtt/binary_sensor.py

how did you do it?

#82

Thank you very much.
I was able to imported on nodred, was the quotes used are not valid, I found the following: A flow must be valid json in order to import. You can paste it into https://jsonlint.com to see what errors are detected. after changing the quotes to " now is working

#83

Since v0.89.0-ish custom-components requires all component files, the workaround is unusable especially when uploading via Configurator.

I’ve added a new issue (https://github.com/home-assistant/home-assistant/issues/22172)

#84

I was finally able to apply the patch suggested, but I copied all under MQTT for v0.9 under my custom-folder then commented those 4 lines in binary_sensor.py suggested by kanga_who, this was after successfully using nodRed suggestion by jwoodard80 but in my case having many rf senseros, it was just cleaner doing this directly with the binary_sensor.yaml, I downloaded ver 0.9 from https://github.com/home-assistant/home-assistant/releases and from the home-assistant-0.90.0.zip file i copied the complete mqtt folder inside homeassistant/components/ folder into my custom_components folder, them comment the 4 suggested lines, and I have no more warnings when I have an RF sensor, triggering in a different mqtt bibary_sensor. but fully agree with wmrato this should be reverted on the official release and not being patched

#85

Hi all.
I’m running 0.90.1 and I’ve used @kanga_who suggestion but it’s not working. I still have many errors.
I’ve put in the “custom_components” folder an additional folder named “mqtt” and inside I’ve placed the “binary_sensor.py” file with the 4 lines commented.
What am I doing wrong ?!?

#86

I offer another solution to prevent the “No matching payload” message from appearing.

For an MQTT Binary sensor, the default for payload_on is ON and for payload_off it’s OFF (i.e. uppercase). On the other hand, the state of a binary_sensor can either be on or off (i.e. lowercase). Keeping this important distinction in mind, we can use it to construct a value_template that ensures the payload always matches something and never nothing.

This example assumes Data=2C8D0A indicates the door is open and Data=2C8D0E indicates the door is closed. Here’s the important part, if the payload contains neither 2C8D0A or 2C8D0E, it reports the binary_sensor’s current state. In other words, no matter what it receives in the payload, the value_template always reports a valid state.

- platform: mqtt
  name: 'Bathroom Door'
  state_topic: 'tele/RF_Bridge/RESULT'
  value_template: >-
    {% if value_json.RfReceived.Data == '2C8D0A' %}
      {{'ON'}}
    {% elif value_json.RfReceived.Data == '2C8D0E' %}
      {{'OFF'}}
    {% else %}
      {{states('binary_sensor.bathroom_door') | upper}}
    {% endif %}
  device_class: Door

If you have a sensor that does not report an off state then you can compensate by using the off_delay option.

In this example, Data=E5D30E indicates the motion sensor is on but there’s no command available to indicate when the sensor is off. I have set off_delay: 15 so the motion sensor will automatically set itself to off after 15 seconds.

- platform: mqtt
  name: 'Hallway Motion'
  state_topic: 'tele/RF_Bridge/RESULT'
  value_template: >-
    {% if value_json.RfReceived.Data == 'E5D30E' %}
      {{'ON'}}
    {% else %}
      {{states('binary_sensor.hallway_motion') | upper}}
    {% endif %}
  off_delay: 15
  device_class: motion
3 Likes
0.90: Remote UI, Streams, User Groups
#87

I have the same problem, but I can not resolve with off_delay function.
I’m using it for alarming ON and alarming OFF.

So delay is not option, because I can not turn OFF alarm by time, but need to read OFF data…

Maybe (I will try this week) my solution for alarming is allways to use ON function but with diferrent received data… based on that maybe I can do action… will see…

#88

I agree. The example I provided was applicable for a motion sensor.

Your situation requires turning an Alarm on and off. Obviously any time-based solution to turn it off is inappropriate.

I don’t see how you can do what you need using a single RF button that sends one state. You would need to use two such buttons, one to set Alarm to on and another button to set the Alarm to off.

#89

I’m using 2 alarms in HA, one with DSC and one with HA.
For HA I’m using button A and button B, for DSC I’m using button C and button D.
I have RF key with 4 buttons… The problem is that now I’m using 2 Sonoff RF bridge receives, so I must figure how to manage this… but firstly RF bridge No.1 must be working to turn ON/OFF (currently only ON is working - before was working all fine)… I will report with code how I did it…

#90

Are you getting “No matching payload found for entity” WARNING messages in your log?

#91

Yes… But before 0.90.x was working fine…

#92

That’s the story of Home Assistant in a nutshell.