Skip to content

This code implements the function of controlling Gembird silverlit USB switchable outlets through MQTT

License

Notifications You must be signed in to change notification settings

fhloston/sispmctrl-MQTT-bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sispmctl-MQTT-bridge

This code implement the function of controlling Gembird silverlit USB switchable outlets through MQTT

The script will need you to install sispmctl

On Ubuntu/RPI use: sudo apt-get install sispmctl

How to use:

The command

mosquitto_pub -h brokerIP -t "cmnd/sispmctl/<device_id>/POWER" -m On

Will turn on outlet (numbered 1-4) on the gembird device with the serial <device_id>.

To get the ids run:

sispmctl -s

The script will also write a

tele/sispmctl/01:1c:aa:b5:41/LWT True

when a device is detected or False when disconnected.

The script will send the changed state of the outlets in POLL_TIME = 5 intervals or after switching:

tele/sispmctl/01:1c:aa:b5:41/STATE = {"POWER1":"OFF", "POWER2":"OFF", "POWER3":"OFF", "POWER4":"OFF"}

About

This code implements the function of controlling Gembird silverlit USB switchable outlets through MQTT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%