Skip to content

pedroetb/smart-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

smart-switch

Smart switch for AC, based on Arduino

License: MIT Sponsor

Description

TODO

HTTP communication

TODO

MQTT communication

TODO

MQTT usage examples

Using default configuration for MQTT, you can interact with smart-switch like this:

#Listen output MQTT messages from specific smart-switch
mosquitto_sub -h "<broker>" -t "pedroetb/smart-switch/001/output"

#Listen log MQTT messages from specific smart-switch
mosquitto_sub -h "<broker>" -t "pedroetb/smart-switch/001/log"

#Listen output MQTT messages from any smart-switch
mosquitto_sub -h "<broker>" -v -t "pedroetb/smart-switch/+/output"

#Listen log MQTT messages from any smart-switch
mosquitto_sub -h "<broker>" -v -t "pedroetb/smart-switch/+/log"

#Listen all MQTT messages (input, output and log) from/to any smart-switch
mosquitto_sub -h "<broker>" -v -t "pedroetb/smart-switch/#"

#Send any action ("/status" for example) as MQTT message to specific smart-switch
mosquitto_pub -h "<broker>" -t "pedroetb/smart-switch/001/input" -m "/status"

License

License: MIT

This project is released under the MIT License.

References

About

Smart switch for AC, based on Arduino

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages