seb821 / espRFLinkMQTT

ESP8266 gateway between RFLink and MQTT server
96 stars 32 forks source link

Feature Request: Move ID to JSON Payload #8

Closed TimothyGaray closed 4 years ago

TimothyGaray commented 4 years ago

Another thing I've seen with my two-code door switch is that it sends a message with one ID for open and a message with a different ID for closed.

espRFLinkMQTT turns these into two different topics:

open: rflink/SelectPlus-065afa close: rflink/SelectPlus-065af8

With the same payload for both.

{"SWITCH":"02","CMD":"ON","SWITCH02":"ON","CHIME":"01"}

It might help in some cases if there was the option to keep the topic at just the name (rflink/SelectPlus) and move the ID down as an item in the JSON payload {"ID":"065afa"}

Thank you!

-TimG

seb821 commented 4 years ago

Hey,

Well, this is not really nice from the device itself.

Problem is :

So, I would say it is probably better to handle these specific cases on the home automation side.

TimothyGaray commented 4 years ago

Thank you, I understand. I have been able to do the workaround in Home Assistant.

seb821 commented 4 years ago

Good to here that.

After some thinking about that, I will not implement such fonctionnality as it is really specific.