Set a RfReceived trigger to Berry script #157472
Unanswered
hw-schrauber
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi together,
I like to start a BERRY script with a Rf Received event.
What I want to do: Receive a Rf Data from an RF temperature/humidity module. Here is my problem. The data will change depends on a temperature and humidity change. For example:
MQT: temp/tele/RESULT = {"Time":"2025-04-23T16:08:04","RfReceived":{"Data":"0xAF0093F63","Bits":36,"Protocol":38,"Pulse":559}}
MQT: temp/tele/RESULT = {"Time":"2025-04-23T16:08:34","RfReceived":{"Data":"0xAF0094F65","Bits":36,"Protocol":38,"Pulse":561}}
In <<0xAFzxxxfyy>> "xxx" is the temperature and "yy" the humidity. "AF" is the device ID. "z" is a key-button flag. The "f" I don't know. It is ever "F".
Now I have written a converter in Berry to bring the hex value to a readable decimal value. Later, I will send the decoded values to a specific MQTT topic. For the moment, I have no idea how I can trigger my berry script with ever changed RF data. My idea was to trigger on every RF signal or only for the RF data "0xAF....". But for both, I can't find help anywhere.
Maybe here?
Regards, hw-schrauber
Beta Was this translation helpful? Give feedback.
All reactions