-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Send on MQTT topic specific to RF payload #170
Comments
Hello, We could do that, but this enter in conflict with the requests of replacing standard payload by json ones. |
THe problem persists because the messages are sent on |
some infos that is related to this request: |
I've done something like this on my own fork by splitting the RF codeword into its address and data parts, and sending three additional MQTT messages like this (look at the last three lines):
See liwenyip@9032c91 Do you think this would be a useful feature to incorporate into the main fork? (Let me know and I'll submit a PR) |
This is exactly what Im looking for! please PR and merge ;) |
Hello, Thanks for proposing. or Sending the adress like you propose and the data: or And keeping in mind that the next version will include json format we could imagine something like that: or home/433toMQTT/2971624 {"protocol":1,"bits ":24,"length ":288} Your opinions? |
All my use case requires is distinct topics for each received RF code. All examples satisfy that condition. |
Danobot, |
Can you share your automation to set the binary_sensor to off after 5 seconds. According to a few posts on the HA community there is no way to manually set sensor values in automations. |
The example motion sensor config
Automation to turn off sensor, I deleted some of the triggers to shorten the code, but I use the same automation for all of my binary sensors and some switches that I need to be momentary like my front gate.
Automation to turn off the light
This is all working well for me for a few months now. |
Ok, you are setting the value by sending an MQTT message. Yes this works. Thanks. |
It would be useful for home automation integration to have separate topics for different RF codes.
home/433toMQTT/111111
and
home/433toMQTT/222222
for two different motion sensors which send RF code "111111" and "222222" respectively.
Problem that made me think of this feature:
This enables easy set up of sensors based on those MQTT topics. Attempting to set up a sensor on a single topic means the sensor with payload "111111" will get triggered when payload is "111111".
This is as expected.
however, when a different sensor with rf payload "222222" is triggered, then the first sensor's condition evaluates to false (because "111111" does not equal "222222").
Having separate topics means I can assign one topic per sensor and there are no conflicts in the payloads.
The text was updated successfully, but these errors were encountered: