jdrucey / homebridge-mqtt-statelessswitch

A HomeBridge plugin for MQTT Stateless Programmable Switches
MIT License
5 stars 2 forks source link

Change number 0 1 2 mqtt receive command #1

Open riddik14 opened 6 years ago

riddik14 commented 6 years ago

Si può cambiare il codice ricevuto da mqtt da 0-1-2 a esempio a-b-c?

jdrucey commented 6 years ago

Hi @riddik14, i'm not sure this would fit in with the aims of this project, the 0-1-2 matches the HomeKit values.

Can you explain your expected usage?

riddik14 commented 6 years ago

Io uso dei sonoff con fw tasmota e volevo utilizzare qualche gpo come pulsante programmabile. Come posso fare? Grazie

jdrucey commented 6 years ago

I would suggest looking into NodeRed. I have that set up myself, its really powerful when it comes to managing MQTT messages. You can parse a message, change it, then pass it on to somewhere else.

Might be an option to modify the Sonoff-Tasmota values to convert them to HomeKit friendly values.

Or feel free to fork this project if that makes more sense for your use case =)

riddik14 commented 6 years ago

Thanks u

riddik14 commented 6 years ago

Mi puoi suggerire come usare node red con qualche esempio? Ho provato ad usare la funzione change ma al momento che viene inviato il toggle dal sonoff si riavvia homebridge. Il comando deve essere letto dal plugin homebridge-mqtt-statelessswitch. Grazie