@keule2 said in Mqtt 433Mhz:
{“RfReceived”:{“Sync”:12460, “Low”:440, “High”:1230, “Data”: “EE78FE”, “RfKey”: “None”}}
Yes, it’s possible, but the setup is a bit tricky as you need two devices and a rule for it. Well, at least, I could not figure out an easier way of doing this. I think the mqtt-plugin should be enhanced to better cover tasmota use cases and maybe @wutu can have a look at this at some point.
Please find below a working example you can adapt to your needs. In my example, the DummyPresenceSensor is reset to absent after 5 seconds.
Devices
{
"attributes": [
{
"name": "RfReceived.Data",
"topic": "tele/sonoffBrige/RESULT",
"type": "string",
"messageMap": {}
}
],
"xAttributeOptions": [],
"id": "mqtt-sensor",
"name": "mqtt-sensor",
"class": "MqttSensor"
},
{
"autoReset": true,
"id": "pir",
"name": "pir",
"class": "DummyPresenceSensor",
"resetTime": 5000
}
Rule
{
"id": "presence-rule-1",
"name": "presence-rule-1",
"rule": "when $mqtt-sensor.RfReceived.Data gets updated and if \"$mqtt-sensor.RfReceived.Data\" = \"EE78FE\" then set presence of pir present",
"active": true,
"logging": true
}
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law