schmurtzm / RFLink-ESP

RFLink modified for ESP8266 and ESP32 ---> RF 433mhz to MQTT gateway
MIT License
26 stars 8 forks source link

Request : move Switch ID to topic #3

Open ElectricImpossible opened 4 years ago

ElectricImpossible commented 4 years ago

Great work on your bin file for the Sonoff RF Bridge, I have a version R1 V2.0 and it dropped in place with no issues!!

Onto my request:

I have a 433 controller with multiple buttons on it, four in total

When I press button one I have the following via MQTT from RFLink-ESP

RFLink/received/NewKaku/C7EDA Payload on {"SWITCH":1,"CMD":"ON"} Payload off {"SWITCH":1,"CMD":"OFF"}

For switch 2 I have

RFLink/received/NewKaku/C7EDA Payload on {"SWITCH":2,"CMD":"ON"} Payload off {"SWITCH":2,"CMD":"OFF"}

Could an option be implimented to move the switch reference into the topic like the following RFLink/received/NewKaku/C7EDA/SWITCH1 {"CMD":"ON"}

I'm unable to pull the json payload for status using my WebUI (Pimatic) of choice