davidnewhall / indigo-8channel-relay

Indigo Plugin for 8 Channel Network Relay Board
MIT License
3 stars 4 forks source link

Better relay-pulse control request. #6

Closed bsp9493 closed 5 years ago

bsp9493 commented 5 years ago

Hi... great work on the indigo release.

totally new to programming and haven't quite figured out the whole indigo plug in format, but I have a request/question.

as you noted, this works great for sprinkler control (on/off) control of the relays.

I see you have also included a way to "pulse" a specific relay. From what i can see the only way to do this is by creating a control page, and using a server action to "send relay pulse signal". This works great, however, my question is as follows...

I have gotten away from using control pages if possible and instead use my devices/actions directly from the tabs on the indigo mobile app. (in this case, I would like to use the devices tab to find my garage door opener) however, when the device is created, it only appears to allow directly for on/off control.

Is there a way to add the pulse option to the basic device control?

one other suggestion/request... it's probably just me, but do you have an indigodomo user forum? If so can you point me at it. I'm thinking we could generate a lot more discussion about this simple but useful little 8ch relay board.

Thanx in advance, you help is appreciated.

d

davidnewhall commented 5 years ago

Hello!

I do have a forum, I just haven't gotten around to setting it up. I bought a new computer and spent a week getting it all setup only to send it back because of a hardware failure. Once I have the replacement running I'll get back into setting up my forum(s). You can find my [currently empty] forums here: https://forums.indigodomo.com/viewforum.php?f=299

As for your request, I'll explain how I do my garage door with this board and an alternative way to use the pulse feature without a control page.

I create a trigger when the garage door relay is active (turned on). It has a 1 second delay and turns the relay off. Simple. So, all you have to do is "turn the garage door on" and indigo will automatically turn the relay off 1 second later. You can interact with the device directly this way. It has worked great for my wife and me.

An alternative is to create an Action Group that runs the pulse command on a relay. This works similar to a control page item, but you can call the action group directly without a control page.

I remember seeing an Indigo plugin once that combined a relay and a tilt sensor into a "garage door" device. It might be worth looking into that option if the above ideas don't work out. Unfortunately I can't find any links for this, and it's been a long time since I remember seeing it.

I'm not sure there is any other/better native way to integrate into Indigo the pulse action this relay board provides. I think what's there now should meet your needs.

Let me know if I can help further!

bsp9493 commented 5 years ago

Thanx... i will give that a shot!

Interesting little device, with a bunch of potential!

d

On Jan 2, 2019, at 11:22 PM, David Newhall II notifications@github.com wrote:

Hello!

I do have a forum, I just haven't gotten around to setting it up. I bought a new computer and spent a week getting it all setup only to send it back because of a hardware failure. Once I have the replacement running I'll get back into setting up my forum(s). You can find my [currently empty] forums here: https://forums.indigodomo.com/viewforum.php?f=299

As for your request, I'll explain how I do my garage door with this board and an alternative way to use the pulse feature without a control page.

I create a trigger when the garage door relay is active (turned on). It has a 1 second delay and turns the relay off. Simple. So, all you have to do is "turn the garage door on" and indigo will automatically turn the relay off 1 second later. You can interact with the device directly this way. It has worked great for my wife and me.

An alternative is to create an Action Group that runs the pulse command on a relay. This works similar to a control page item, but you can call the action group directly without a control page.

I remember seeing an Indigo plugin once that combined a relay and a tilt sensor into a "garage door" device. It might be worth looking into that option if the above ideas don't work out. Unfortunately I can't find any links for this, and it's been a long time since I remember seeing it.

I'm not sure there is any other/better native way to integrate into Indigo the pulse action this relay board provides. I think what's there now should meet your needs.

Let me know if I can help further!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

davidnewhall commented 5 years ago

Please reach back out if I can be of further assistance.

bsp9493 commented 5 years ago

ohhhh all excited about the sprinkler option… I was going to request exactly that!

ran into a problem though when I installed the new plugin 1.0…

I am unable to create sprinkler device…

I get the following errors…

Error (client) _sendClosedConfigUi3() caught exception: LowLevelBadParameterError 8 Channel Network Relay Error Error in plugin execution UiClosed3:

Traceback (most recent call last): File "plugin.py", line 121, in closedDeviceFactoryUi File "plugin.py", line 346, in set_device_states TypeError: cannot concatenate 'str' and 'int' objects

Error (client) doPluginDeviceFactory requires at least one root device

Jan 3, 2019, 4:36:09 PM

8 Channel Network Relay Sent "new device" on 8 Channel Network Relay Sent "new device" off Error (client) _sendClosedConfigUi3() caught exception: LowLevelBadParameterError 8 Channel Network Relay Error Error in plugin execution UiClosed3:

Traceback (most recent call last): File "plugin.py", line 82, in closedDeviceFactoryUi IndexError: index 0 out of list range

On Jan 3, 2019, at 10:53 AM, David Newhall II notifications@github.com wrote:

Please reach back out if I can be of further assistance.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davidnewhall/indigo-8channel-relay/issues/6#issuecomment-451240882, or mute the thread https://github.com/notifications/unsubscribe-auth/AsKP_GT_wTyA1rZqfs7ruGvvET3Ga7Zzks5u_lG7gaJpZM4ZmFjx.

bsp9493 commented 5 years ago

ohhhh all excited about the sprinkler option… I was going to request exactly that!

ran into a problem though when I installed the new plugin 1.0…

I am unable to create sprinkler device…

get the following errors…

Error (client) _sendClosedConfigUi3() caught exception: LowLevelBadParameterError 8 Channel Network Relay Error Error in plugin execution UiClosed3:

Traceback (most recent call last): File "plugin.py", line 121, in closedDeviceFactoryUi File "plugin.py", line 346, in set_device_states TypeError: cannot concatenate 'str' and 'int' objects

Error (client) doPluginDeviceFactory requires at least one root device

Jan 3, 2019, 4:36:09 PM

8 Channel Network Relay Sent "new device" on 8 Channel Network Relay Sent "new device" off Error (client) _sendClosedConfigUi3() caught exception: LowLevelBadParameterError 8 Channel Network Relay Error Error in plugin execution UiClosed3:

Traceback (most recent call last): File "plugin.py", line 82, in closedDeviceFactoryUi IndexError: index 0 out of list range

On Jan 3, 2019, at 10:53 AM, David Newhall II notifications@github.com wrote:

Please reach back out if I can be of further assistance.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davidnewhall/indigo-8channel-relay/issues/6#issuecomment-451240882, or mute the thread https://github.com/notifications/unsubscribe-auth/AsKP_GT_wTyA1rZqfs7ruGvvET3Ga7Zzks5u_lG7gaJpZM4ZmFjx.