Skip to content

Added MQTT Publish ability#7

Open
dWoolridge wants to merge 5 commits into
nbeguier:masterfrom
dWoolridge:master
Open

Added MQTT Publish ability#7
dWoolridge wants to merge 5 commits into
nbeguier:masterfrom
dWoolridge:master

Conversation

@dWoolridge

@dWoolridge dWoolridge commented Oct 21, 2022

Copy link
Copy Markdown

Hello,

I found your version of rfxcmd and thought it was the best option to add MQTT publish capabilities. I've got it working and thought I'd make it available to you through a pull request. It's completely up to you if you want to incorporate this or not.

It should work for most of the weather sensors (0x50 - 0x57). I've tested it with sensors of type 0x50 & 0x52 on a Raspberry Pi (Raspbian GNU/Linux 11 (bullseye)) with an RFXcom RFXrec433.

Changes made:

  • Added MQTT config section to config.xml.sample
  • rfxcmd.py: added MQTT config reads, new function "sendMQTT" called from the decode_packet function
  • Changed the code in rfxcmd.py to use the outputfile in the config instead of defaulting to /var/log/output.log. I got permission errors when it defaulted to that file.

Thanks,
dwoolridge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant