Well, the "()" did the trick. Being very green at this please explain why the "()" had to be used. Here is the line of code that worked
Devices.X10Devices.Item("Paul heat").command(dcoff)
Sheco,
What is it exactly you would like to know about the HA (home automation), the hardware or the...
Here is a C&P of the docs provided with the program, maybe this will help some.
The X10Devices collection also includes two additional commands.
X10Devices.Select(“Foo”)
X10Devices.Command(dcDevice Command)
This allows a selection of a device followed by multiple commands to that device...
I know this is most likely a stupid question but could it be that I am trying to use a "devices.x10devices"..." in the variable "sub" block? I wouldn't think it would matter but then again I am very green at VBS
I tried using both X10devices.Item("paul heat").Command=dcoff and Devices.X10devices.Item("paul heat").Command=dcoff and still got the same error message:
Either
Script Error: Line 369 Object doesn't support this property or method: 'X10Devices.Item(...).Command'
or
Script Error: Line 369...
It is when it works...LOL It just needs someone with a lot more knowledge than I to make it do all the cool stuff it can do. It has been a royal pain in my butt but at least forcing me to learn new things.
They are both "devices" however the relays are a device on board the controller and a x10 device is external to the controller. An example of a x10 device is a "lamp module" where you plug the module into the wall and the lamp into the module. The controller sends commands to the module using...
That is correct. After reading more of the docs on the program the "ds" is Device State" and the "dc" is Devise Command. However, I had already changed that and got the following error message;
If .Item("Paul").Value > 69 Then
Devices.X10.Item("Paul heat").Command=dcoff <--...
The "BR1Blinds" or "Paul heat" are nothing more than a name given to a X10 Device. An example is that there are 256 available X10 devices with address from A-1 to A16 through P1-P16. Address A1 (X10 Device) is given the name "Paul heat" so regardless of the "name" the command function should work
I am using a program that uses VB Scripts to run a Home Automation Controller. I am new to VB Scripts but trying real hard and fast to learn. I am getting this error "Object doesn't support this property or method:'Devices'. The Devices are defined in "Sub" blocks and I am trying to use a...
Well, stupid me....that did the trick. You don't know how many times I've looked at that script trying to figure out what was wrong and missed it. Thanks for the second set of eyes.
As for the home automation program. It's the master and we humans are the slaves. It just tells us what to do...
I added the following line to the script and it did announce "5 AM is on" but did not announce the next "If" statement. So what am I missing here?
Rem **************************************************************
Rem Flag Device Event
Rem...
Yes, I did read that one. Like I said, I'm very green but trying to learn, sorry. I did run the script using:
If .Item(Index).Name = "5 AM" Then and there were no errors but it didn't execute the character.speak when the "5 AM" flag was set true. Thats why I asked about the Case dson.
I don't have any documentaion about the devices. I can tell you that the "devices" are coming from the home automation controller. These devices are both hardware, i.e. thermostats, temp sensors, motion detectors, etc and software, i.e. flags, time, etc.
I added the prefix .Item(Index). to...
I tried that and got the following error;
Script Error: Line 350 Object doesn't support this property or method: 'Name'
Also, don't you have to know that the flag "5 AM" is true "Case dson
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.