Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I have one set of control (on/off) buttons for multiple devices?
#11
No, there currently isn't a way to do that. It's now very high on the list, as are usability issues in general.
Dean Roddey
Explorans limites defectum
Reply
#12
OK, I got 2.0 setup and tried to get this workin. Here is an example of what I do on a button to select the light:
[OnClick]
GlobalVars::SetVariable(GVar:CurrentLight, Insteon.Den)


And when I click the On button I have this:
[OnClick]
Devices::FieldWrite(GVAR:CurrentLight, On)

But, I just get an error of
"'GVAR:CurrentLight' is not a valid field name. It must be in the form 'moniker.fldname'"

Did I miss something? How do I do what I wanted to do without using a ton of IF statements? My reading of this thread was that this code would work.
Reply
#13
Sendero Wrote:OK, I got 2.0 setup and tried to get this workin. Here is an example of what I do on a button to select the light:
[OnClick]
GlobalVars::SetVariable(GVar:CurrentLight, Insteon.Den)


And when I click the On button I have this:
[OnClick]
Devices::FieldWrite(GVAR:CurrentLight, On)

But, I just get an error of
"'GVAR:CurrentLight' is not a valid field name. It must be in the form 'moniker.fldname'"

Did I miss something? How do I do what I wanted to do without using a ton of IF statements? My reading of this thread was that this code would work.

Try making it GVar

(lowercase ar
------------------------------------
Some of my devices: Sonos, Aeotec zWave, Nest, Rain8Net, Various H/T
What's next: CQC-Voice, Brultech GEM
My vlogs: https://www.youtube.com/c/IVBsHomeAutomation
Reply
#14
actually, one of them is a fieldwrite, one of them is a setvariable.

make the fieldwrite a setvariable, does that work?
------------------------------------
Some of my devices: Sonos, Aeotec zWave, Nest, Rain8Net, Various H/T
What's next: CQC-Voice, Brultech GEM
My vlogs: https://www.youtube.com/c/IVBsHomeAutomation
Reply
#15
well, using the SetVariable doesn't error, but since I have another problem with the Insteon driver not loading I can't tell if its working right or not Smile hopefully that was it, I'll report back if it wasn't. Thanks for the advice.
Reply
#16
OK, got the new Insteon driver and now back to having issues with my UI.

The UI has only two 'room' buttons on it right now : Den and Kitchen.
The UI also has two 'action' buttons : On and Off

The Den button has this code:
[OnClick]
GlobalVars::SetVariable(GVar:CurrentLight, INSTEON.Den)


The On button has this code:
[OnClick]
GlobalVars::SetVariable(GVar:CurrentLight, 100)

When I click Den and then On, nothing happens. I know I have to be missing something here.

On a test button I have this code and it works fine:
[OnClick]
Devices::FieldWrite(INSTEON.Den, 100)

How do I have one button set the name of the driver:field and another button actually use that for a FieldWrite action?
Reply
#17
OK, I got it working. In the click method for the On button, the code has to be a FieldWrite after all:
Devices::FieldWrite(%(GVar:CurrentLight), 100)

works like charm now
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Hue Lighting Control jokermac 17 6,665 03-28-2020, 06:18 AM
Last Post: jokermac
  ZWave / Add all devices or just as you need them? gReatAutomation 2 1,321 09-16-2019, 01:42 PM
Last Post: gReatAutomation
  Jandy Pool Control avtexan 20 8,905 06-07-2018, 01:09 PM
Last Post: Dean Roddey
  Multiple IV clients on the same machine NightLight 4 2,947 01-03-2017, 05:52 PM
Last Post: NightLight
  Fonts, mobile devices IVB 5 3,013 08-14-2016, 06:54 PM
Last Post: sic0048
  Use single On/Off/Slider to control group jkmonroe 3 3,149 08-06-2016, 09:28 AM
Last Post: pinballmark
  Help figuring out projector serial control! Deane Johnson 19 8,594 07-30-2016, 11:08 AM
Last Post: Deane Johnson
  Harmony Hub Device Control jkmonroe 6 4,889 07-03-2016, 02:36 PM
Last Post: potts.mike
  how deep is your (echo voice control) love? IVB 197 51,069 05-23-2016, 08:47 AM
Last Post: Dean Roddey
  delete zwave devices? jkmonroe 8 5,135 05-23-2016, 08:46 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)