paviro / MMM-PIR-Sensor

This module can monitor a PIR motion sensor and put your mirror to sleep.
215 stars 94 forks source link

Using a relay #109

Open ratchetandclonk opened 4 years ago

ratchetandclonk commented 4 years ago

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