Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 3.59 KB

README.md

File metadata and controls

67 lines (46 loc) · 3.59 KB

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