You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use rpi_mqtt_gpio from many years and it cooperate with homebridge and Tasmota devices.
Tasmota devices have very usefull option.
turn on -> cmnd/topic/POWER ON
turn off -> cmnd/topic/POWER OFF
When you want to get actual status ( for example after crash or restart Homebridge ) then is enough to send:
get status-> cmnd/topic/POWER
and you getting actual status:
stat/topic/POWER ON or OFF depend actual switch status.
after restart of rpi_mqtt_gpio or Homebridge i have disorder in inputs/outputs state.
Homebridge has parameter: "MQTT topics to publish on start-up" for each MQTT device and i use it for update all switches state when it restart. Maybe we can do some procedure when mqtt-io get for example /topic/update
then it publish certain or maybe all current status of inputs and outputs.
Can we add option to run system command ( os.system ) on MQTT request - can be used for PI restart or whatewer.
As well just for change GPIO state - i use my own python script for control LCD screen and show MQTT payloads on it and same script do RPI restart And ShutDown on change GPIO state. It would be great to do it in one python app.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use rpi_mqtt_gpio from many years and it cooperate with homebridge and Tasmota devices.
Tasmota devices have very usefull option.
turn on -> cmnd/topic/POWER ON
turn off -> cmnd/topic/POWER OFF
When you want to get actual status ( for example after crash or restart Homebridge ) then is enough to send:
get status-> cmnd/topic/POWER
and you getting actual status:
stat/topic/POWER ON or OFF depend actual switch status.
after restart of rpi_mqtt_gpio or Homebridge i have disorder in inputs/outputs state.
Homebridge has parameter: "MQTT topics to publish on start-up" for each MQTT device and i use it for update all switches state when it restart. Maybe we can do some procedure when mqtt-io get for example /topic/update
then it publish certain or maybe all current status of inputs and outputs.
Very good project - Good job!
Regards
Beta Was this translation helpful? Give feedback.
All reactions