From 779aafc01c95d96fe75261345cbaa181c2bec488 Mon Sep 17 00:00:00 2001 From: blakadder Date: Wed, 30 Oct 2019 20:36:57 +0100 Subject: [PATCH] typo in links --- PIR-Motion-Sensors.md | 10 ++++++++-- Peripherals.md | 4 ++-- Rule-Cookbook.md | 2 +- Supported-sensors.md | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/PIR-Motion-Sensors.md b/PIR-Motion-Sensors.md index cb44cde4..a0dbe20a 100644 --- a/PIR-Motion-Sensors.md +++ b/PIR-Motion-Sensors.md @@ -12,8 +12,8 @@ In _Configuration -> Configure Module_ menu change `GPIO15` to `Switch1`: A configured PIR will not appear in the web UI in any form. To make it report like a sensor we need a rule that will send movement triggers to an MQTT topic. ``` -Switchmode1 1 -Switchtopic 0 +SwitchMode1 1 +SwitchTopic 0 Rule1 on switch1#state=1 do publish stat/%topic%/PIR1 ON endon on switch1#state=0 do publish stat/%topic%/PIR1 OFF endon Rule1 1 ``` @@ -36,6 +36,12 @@ A more [advanced example](Rule-Cookbook#Auto-off-Motion-Sense-Switch) of rules w Pin marked VOUT is connected to a free GPIO pin on the device. +This PIR goes to off state after a few seconds so we need to use this rule *instead* of the one in the example. +``` +Rule1 on switch1#state=1 do backlog publish stat/%topic%/PIR1 ON; RuleTimer1 30 endon on Rules#Timer=1 do publish stat/%topic%/PIR1 OFF endon` +With this it will stay ON for 30 seconds then send OFF message and the timer restarts every time there's an ON trigger. +``` + ## HC-SR501 diff --git a/Peripherals.md b/Peripherals.md index 940d7963..9d728ee6 100644 --- a/Peripherals.md +++ b/Peripherals.md @@ -5,7 +5,7 @@ More about [sensor configuration.](https://github.com/arendst/Sonoff-Tasmota/wik *Some of the articles were written originally for D1 mini but the information still applies except the wiring instructions* - **ADS1x15** A/D Converter (I2C) -- [**AM312**](PIR-Motions-Sensors#AM312) PIR Motion Sensor +- [**AM312**](PIR-Motion-Sensors#AM312) PIR Motion Sensor - [**APDS-9960**](APDS-9960) Ambient Light, RGB Color and Proximity Sensor with Gesture Detection - [**AZ-7798**](Wemos-D1-Mini-and-AZ-Instrument-7798-CO2-Meter-Datalogger) CO2 Meter Datalogger - [**BH1750**](Wemos-D1-Mini-and-BH1750-Luminosity-Sensor) Luminosity Sensor @@ -22,7 +22,7 @@ More about [sensor configuration.](https://github.com/arendst/Sonoff-Tasmota/wik - [**HM16/HM17**](iBeacon-driver) Bluetooth iBeacon reader (Serial) - **HR-E** Water Meter Encoder interface (Serial) - [**HC-SR04 (SR04+, SR04T)**](Wemos-D1-Mini-and-HC-SR04-Ultrasonic-Sensor) Ultrasonic Sensor -- [**HC-SR501**](PIR-Motions-Sensors#HC-SR501) PIR Motion Sensor +- [**HC-SR501**](PIR-Motion-Sensors#HC-SR501) PIR Motion Sensor - **HTU21** Temperature and Humidity sensor (I2C) - **HX711** Load Cell sensor (GPIO) - **INA219** High-Side DC Current and Voltage sensor (I2C) diff --git a/Rule-Cookbook.md b/Rule-Cookbook.md index d3d56722..084bc4e8 100644 --- a/Rule-Cookbook.md +++ b/Rule-Cookbook.md @@ -19,7 +19,7 @@ - [Make sure light is on at night](#make-sure-light-is-on-at-night) - [Turn On Light Before Dawn and At Dusk](#Turn-On-Light-Before-Dawn-and-At-Dusk) - [Enable a PIR Switch only at night](#enable-a-pir-switch-only-at-night) - - [PIR Configuration](PIR-Motions-Sensors#HC-SR501#alternative-tasmota-configuration-with-rules-recommended-method) + - [PIR Configuration](PIR-Motion-Sensors#HC-SR501#alternative-tasmota-configuration-with-rules-recommended-method) - [Using clock timer to control a luminance-triggered switch only in mornings](#using-clock-timer-to-control-a-luminance-triggered-switch-only-in-mornings) - [Button with single press, double press, and hold](#button-with-single-press-double-press-and-hold) - [Perform any action on single/double press (for switches AND buttons)](#perform-any-action-on-singledouble-press-for-switches-and-buttons) diff --git a/Supported-sensors.md b/Supported-sensors.md index eefbea59..35982847 100644 --- a/Supported-sensors.md +++ b/Supported-sensors.md @@ -1,7 +1,7 @@ ### [List of supported sensors](https://docs.google.com/spreadsheets/d/e/2PACX-1vRBFqaP5QAFmT8iIYBxrn-EQp7-SrkxL6tb0OjpqtBxDEsmkiWCFei3sFyA_UXoqlbs3CqtEdOfC6Pa/pubhtml?gid=1029939700&single=true) - **ADS1x15** A/D Converter (I2C) -- [**AM312**](PIR-Motions-Sensors#AM312) PIR Motion Sensor +- [**AM312**](PIR-Motion-Sensors#AM312) PIR Motion Sensor - [**APDS-9960**](APDS-9960) Ambient Light, RGB Color and Proximity Sensor with Gesture Detection - [**AZ-7798**](Wemos-D1-Mini-and-AZ-Instrument-7798-CO2-Meter-Datalogger) CO2 Meter Datalogger - [**BH1750**](Wemos-D1-Mini-and-BH1750-Luminosity-Sensor) Luminosity Sensor @@ -18,7 +18,7 @@ - [**HM16/HM17**](iBeacon-driver) Bluetooth iBeacon reader (Serial) - **HR-E** Water Meter Encoder interface (Serial) - [**HC-SR04 (SR04+, SR04T)**](Wemos-D1-Mini-and-HC-SR04-Ultrasonic-Sensor) Ultrasonic Sensor -- [**HC-SR501**](PIR-Motions-Sensors#HC-SR501) PIR Motion Sensor +- [**HC-SR501**](PIR-Motion-Sensors#HC-SR501) PIR Motion Sensor - **HTU21** Temperature and Humidity sensor (I2C) - **HX711** Load Cell sensor (GPIO) - **INA219** High-Side DC Current and Voltage sensor (I2C)