www.homeseer.com    
 

Go Back   HomeSeer Message Board > Analog & Digital IO Device Plug-ins > Analog & Digital IO Discussion > RaspberryIO Plug-In (3P)

RaspberryIO Plug-In (3P) Plug-In for the Raspberry Pi hardware to support digital IO, by Spud.

Reply
 
Thread Tools Display Modes
  #1  
Old October 1st, 2017, 11:49 AM
dsieg61 dsieg61 is offline
Seer
 
Join Date: Nov 2013
Location: USA
Posts: 27
VB Script Question

Hello,
I am creating a VB script in which I want to turn output pins on a remote Pi on and off. The Pi plugin is working fine, and normal Homeseer events that change the pin state are working fine.
I am using the "hs.GetDeviceRefBtName", and "hs.DeviceValueEX" to get the device refrence number and current device state for the pin. These seem to work fine. But, when I use "hs.SetDeviceValueByRef" command to turn the remote pin on/off it doesn't actually do it. It does change the state in the "Devices" view on the Homeseer web page, but the pin does not turn on.
I am relatively new to scripting with plugins and I am probably not using the correct commands to do this. Any help would be appreciated.
Regards,
David
Reply With Quote
  #2  
Old October 1st, 2017, 08:05 PM
tenholde tenholde is offline
Super Seer
 
Join Date: Jun 2002
Posts: 1,703
You may need to issue CAPI commands.

See: tenScriptAid for utility to display device info and generate commands, including CAPI.

tenholde
Reply With Quote
  #3  
Old October 1st, 2017, 11:27 PM
dsieg61 dsieg61 is offline
Seer
 
Join Date: Nov 2013
Location: USA
Posts: 27
tenScriptAid Doesn't work

Thanks Tenholde,
However, when I download this onto my windows10 machine and put in the IP address for my HS3 server (HS3 for Linux on a Raspberry Pi running Jessie), it comes up with this error:
Attached Images
 
Reply With Quote
  #4  
Old October 2nd, 2017, 11:16 AM
dsieg61 dsieg61 is offline
Seer
 
Join Date: Nov 2013
Location: USA
Posts: 27
Solved with Events

While not the way I wanted it to go, I have figured out way to do what I wanted using events. Would have been better to create one script that did everything by passing parameters rather that 3 x virtual devices and 6 x events, but I just don't have the time to go figure out how to control devices via raspberry pi plugin.
David
Reply With Quote
  #5  
Old October 9th, 2017, 02:31 PM
tenholde tenholde is offline
Super Seer
 
Join Date: Jun 2002
Posts: 1,703
Quote:
Originally Posted by dsieg61 View Post
Thanks Tenholde,
However, when I download this onto my windows10 machine and put in the IP address for my HS3 server (HS3 for Linux on a Raspberry Pi running Jessie), it comes up with this error:
I believe the problem is linux. I do not have a linux box to test.

tenholde
Reply With Quote
  #6  
Old October 9th, 2017, 11:47 PM
mstukel mstukel is offline
Seer Plus
 
Join Date: Dec 2002
Location: Chicago Area
Posts: 106
Quote:
Originally Posted by tenholde View Post
I believe the problem is linux. I do not have a linux box to test.

tenholde
If it helps - I can confirm that tenScriptAid works very well when I execute it from my Windows 10 client. I am connecting to the Linux based ZeeS2V2.

tenholde - I cannot thank you enough for creating and sharing this utility. It is an extremely helpful tool.
Reply With Quote
  #7  
Old October 10th, 2017, 07:27 AM
tenholde tenholde is offline
Super Seer
 
Join Date: Jun 2002
Posts: 1,703
Quote:
Originally Posted by dsieg61 View Post
Thanks Tenholde,
However, when I download this onto my windows10 machine and put in the IP address for my HS3 server (HS3 for Linux on a Raspberry Pi running Jessie), it comes up with this error:
Did you extract all four files from the zip file into the same folder, and then run the .exe file from that folder?

tenholde
Reply With Quote
Reply

Bookmarks

Tags
raspberry pi gpio, vb script

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script Question nightwalker HS2 / HSPRO 12 July 11th, 2008 11:12 PM
Script Question MRTaylor Motion Sensor Plug-In 6 January 22nd, 2007 03:12 PM
Question on 'Run Script', 'Run Before', 'Run After' firtha HSTV 1 May 6th, 2004 04:45 PM
HAI RC-80 Script Question adiaz Script & Plug-In Library Discussion 2 August 7th, 2002 02:49 PM


All times are GMT -4. The time now is 12:11 AM.


Copyright HomeSeer Technologies, LLC