EXTGPIO in rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
marci
New user
Posts: 9
Joined: 18 Aug 2017, 20:53

EXTGPIO in rules

#1 Post by marci » 18 Aug 2017, 21:30

I use an espeasy MEGA dev10 attached to an Arduino Promini with the PROMINIEXTENDER option on IC2. The reason to use the promini is that it is able to drive more current on the GPIO and it is better to drive Relays

Configuration works great and I'm able to switch my relays using web command "http://192.168.1.47/control?cmd=EXTGPIO,2,1", but I would like to control the Promini using rules .... and this doesn't work!

Something like this has no results:

Code: Select all

On swsala#porta do 
    if [swsala#porta] = 1
       EXTGPIO, 2,0
       EXTGPIO, 3,0
       timerSet,1,60
    endif
endon

On Rules#Timer=1 do  
    if [swsala#porta]=0
         EXTGPIO, 2,1
         EXTGPIO, 3,1 
    else
         timerSet,1,60
    endif   
endon
Is EXTGPIO supported in Rules ? If not do I have any work-around ?

Tks

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: EXTGPIO in rules

#2 Post by toffel969 » 10 Sep 2017, 22:26

Works for me. Try leaving the space : extpio,5,1
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 21 guests