Relays, on off time

Posted on
Wed Oct 11, 2017 6:22 am
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Relays, on off time

hi,
trying out some pi´s with relays connected to them.
I have a respons time when clicking on/off at 2-3 seconds.
click on in indigo client--> 2-3 seconds relay turns on.
click off in indigo client--> 2-3 seconds relay turns off.
Is this normal?

When using door/windows sensors, the on/off change for the sensor in Indigo client is near to instant.

Posted on
Wed Oct 11, 2017 10:36 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Relays, on off time

how do you set the relays on/off indigo device or action?

and which version are your running?



also could you check time stamps on your mac and RPI

open terminal type date

and switch on debug "output", I believe

there you can see WHEN the message gets send to theRPI. if that is delayed, it is the plugin, if it sends right away, it is the RPI time


Karl

Posted on
Wed Oct 11, 2017 12:21 pm
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Relays, on off time

how do you set the relays on/off indigo device or action?
Indigo Device and also tried with action, same result.

which version are your running?
Latest version of the plugin.

With output debug enable i can see the plugin sends instantly after i press ON.

When i ping the pi the average response is 0.681ms

RPI time matches the mac time doing the date command

These are the first RPI versions but would´nt think thats an issue.

Posted on
Wed Oct 11, 2017 3:34 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Relays, on off time

i tried.. no delay < 0.5 secs..

ok could you set debug output to high in the lower section of config (RPI)

then ssh pi@..

with
tail -f /run/user/1000/pibeacon/execcommands.log
you should see something like this when you switch device off/on in indigo
20171011-16:29:12 next command: {u'restoreAfterBoot': u'0', u'startAtDateTime': 0, u'pin': u'26', u'inverseGPIO': False, u'command': u'down', u'device': u'OUTPUTgpio-1-ONoff'}
20171011-16:26:41 next command: {u'restoreAfterBoot': u'0', u'startAtDateTime': 0, u'pin': u'26', u'inverseGPIO': False, u'command': u'up', u'device': u'OUTPUTgpio-1-ONoff'}

if >>> u'startAtDateTime': 0 << , is right .. and these line apple immediately :
next thing to check is:
= how is the relay connected?
= can you manually trigger the relay, connect the relay board input pin to +3.3 and 0 and see if it clicks immediately

Karl

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests