Using a relay
ratchetandclonk opened this issue · 0 comments
these work to turn my relay for the monitor on and off, but it is not sending any signal to the relay when using just the config file
(the hdmi timeout works when I hash out the relayPin line) but nothing seems to happen when I add it (i.e. no message saying cutting monitor power, no signal being sent to the relay)
working-------(bash commands)
gpio export 21 in
gpio export 21 out
not working------ PIR config (nothing at all happens)
{
module: 'MMM-PIR-Sensor',
position: "top_right",
config: {
sensorPin: '22',
relayPin: '21',
powerSaving: true,
powerSavingDelay: '10',
// relayState: '1',
presenceIndicator: "fas fa-user",
presenceOffIndicator: "fas fa-user-slash",
presenceIndicatorColor: "#36db23",
presenceOffIndicatorColor: "#820e18",
powerSavingMessage: "Monitor power being cut",
// runSimulator: "true"
}