Skip to content

User guide ONOFF

Florian edited this page Feb 8, 2019 · 2 revisions

This module enables to actuate things by giving to a PIN a HIGH or LOW value corresponding to an MQTT topic. Example usage: Connect a transistor to power a relay, connect a led...

If you want to use this actuator uncomment in user_config

#define ZactuatorONOFF

The pin controlled is set on config_ONOFF.h #define ACTUATOR_ONOFF_PIN 4

So as to pilot the pin use the following commands:

OFF command: sudo mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoONOFF -m OFF

ON command sudo mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoONOFF -m ON

Clone this wiki locally
You can’t perform that action at this time.