Skip to content
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

Double different discovery message for the RF (RCSwitch) module #2139

Open
Odyno opened this issue Dec 17, 2024 · 0 comments
Open

Double different discovery message for the RF (RCSwitch) module #2139

Odyno opened this issue Dec 17, 2024 · 0 comments

Comments

@Odyno
Copy link
Contributor

Odyno commented Dec 17, 2024

Describe the bug
Double different discovery messages are sent for the RF (RCSwitch) module:

One as MQTT DeviceTrigger on

announceDeviceTrigger(
false,

and one other as the MQTT Sensor on

# ifdef ZgatewayRF
// Sensor to display RF received value
Log.trace(F("gatewayRFDiscovery" CR));
char* gatewayRF[8] = {"sensor", "gatewayRF", "", "", jsonVal, "", "", ""};
//component type,name,availability topic,device class,value template,payload on, payload off, unit of measurement
//trc(gatewayRF[1]);
createDiscovery(gatewayRF[0],
subjectRFtoMQTT, gatewayRF[1], (char*)getUniqueId(gatewayRF[1], gatewayRF[2]).c_str(),

with the result of the double entity on the discovery topic:
Yellow is [MQTT DeviceTrigger], Blue is [MQTT Sensor]

image

To Reproduce
Steps to reproduce the behavior:

  1. Enable discovery and enable RF module
  2. Receive one RF message

Expected behavior
I think this behavior is anomalous: the RF module that should only send/receive the raw data.
The mqtt discovery sensor should not be sent

@Odyno Odyno changed the title Doube different discovery message for the RF (RCSwitch) module Double different discovery message for the RF (RCSwitch) module Dec 17, 2024
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

No branches or pull requests

1 participant