Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Using a relay #109

Open
ratchetandclonk opened this issue Aug 7, 2020 · 0 comments
Open

Using a relay #109

ratchetandclonk opened this issue Aug 7, 2020 · 0 comments

Comments

@ratchetandclonk
Copy link

ratchetandclonk commented Aug 7, 2020

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"
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant