Difference between revisions of "Omnindoor"
Jump to navigation
Jump to search
(Created page with "{| class="wikitable" |+ Caption text |- ! Header text !! Header text |- | Pin || thing || Mode in Tasmota Configure Unit menu |- | 4 || forward || Power |- | 14 || reverse || Power |- | 33 || current || ADC Current (bottom of list) |- | Example || Example |- | Example || Example |- | Example || Example |} {"POWER1":"ON"}0jake@eg:~/sketchbook/omnindoor$ curl -u "admin:password" http://10.111/cm?cmnd=POWER1+off {"POWER1":"OFF"}0jake@eg:~/sketchbook/omnindoor$ curl -u "ad...") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[File:Omnindoor-ESP32-wiring.png|thumb]] | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ Caption text | |+ Caption text | ||
|- | |- | ||
| Pin || thing || Mode in Tasmota Configure Unit menu | | Pin || thing || Mode in Tasmota Configure Unit menu | ||
|- | |- | ||
| 4 || forward || | | 4 || forward || Relay 1 | ||
|- | |- | ||
| | | 32 || reverse || Relay 2 | ||
|- | |- | ||
| | | 33 || current || ADC Voltage 1 | ||
|- | |- | ||
| Example || Example | | Example || Example | ||
|} | |} | ||
curl -u "admin:password" http://10.111/cm?cmnd=POWER1+off | |||
curl -u "admin:password" http://10.111/cm?cmnd=rule1+1 | |||
rules so that motor direction gets activated, with a timeout. But if current limit hits, then cancel | |||
Rule1 ON Power1#state=1 DO backlog Delay 30; Power1 0 ENDON | |||
rule1 1 | |||
Rule3 ON Power2#state=1 DO backlog Delay 30; Power2 0 ENDON | |||
rule3 1 | |||
Rule2 ON ANALOG#Voltage1>100 DO Power1 0; Power2 0 ENDON | |||
rule2 1 | |||
set the adc range | |||
AdcParam 6, 0, 4095, 0, 1024 | |||
in the console you can view the rules: | |||
CMD: rule1 | |||
RSL: RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":54,"Free":457,"Rules":"ON Power1#state=1 DO backlog Delay 100; Power1 0 ENDON"}} | |||
CMD: rule2 | |||
RSL: RESULT = {"Rule2":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":40,"Free":471,"Rules":"ON ANALOG#Voltage1>100 DO Power1 0 ENDON"}} | |||
CMD: adcparam | |||
RSL: RESULT = {"AdcParam1":[33,0,4095,0,1024]} |
Latest revision as of 20:20, 3 October 2024
Pin | thing | Mode in Tasmota Configure Unit menu |
4 | forward | Relay 1 |
32 | reverse | Relay 2 |
33 | current | ADC Voltage 1 |
Example | Example |
curl -u "admin:password" http://10.111/cm?cmnd=POWER1+off
curl -u "admin:password" http://10.111/cm?cmnd=rule1+1
rules so that motor direction gets activated, with a timeout. But if current limit hits, then cancel
Rule1 ON Power1#state=1 DO backlog Delay 30; Power1 0 ENDON rule1 1 Rule3 ON Power2#state=1 DO backlog Delay 30; Power2 0 ENDON rule3 1 Rule2 ON ANALOG#Voltage1>100 DO Power1 0; Power2 0 ENDON rule2 1
set the adc range AdcParam 6, 0, 4095, 0, 1024
in the console you can view the rules:
CMD: rule1 RSL: RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":54,"Free":457,"Rules":"ON Power1#state=1 DO backlog Delay 100; Power1 0 ENDON"}} CMD: rule2 RSL: RESULT = {"Rule2":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":40,"Free":471,"Rules":"ON ANALOG#Voltage1>100 DO Power1 0 ENDON"}} CMD: adcparam RSL: RESULT = {"AdcParam1":[33,0,4095,0,1024]}