Author Topic: Virtual Panel Plugin  (Read 86532 times)

Offline cw-kid

  • Hero Member
  • *****
  • Posts: 1560
  • Karma: +16/-2
Re: Virtual Panel Plugin
« Reply #405 on: July 23, 2018, 05:16:18 pm »
Thanks its working in UI7 now.

Will have a play around with it see what's possible?

I take it its not possible to embed a panel you have created into another device as a webpage?

For example in ALTUI you can create custom pages and there is a URL that only loads that page or panel.

I can then embed that in to other things like the Imperihome app for example.

I was thinking for building remote control panels using the Harmony plugin and adding buttons to the panel etc.

Problem with ALTUI is the custom page editor isn't great so the resulting layouts aren't either.

Natively Imperihome doesn't support adding Harmony device buttons, only Harmony Activities.

Offline rstrouse

  • Hero Member
  • *****
  • Posts: 834
  • Karma: +30/-9
Re: Virtual Panel Plugin
« Reply #406 on: July 23, 2018, 05:24:39 pm »
I take it its not possible to embed a panel you have created into another device as a webpage?

Unfortunately not.  The goal was to integrate into the Vera dashboard without completely overriding the UI7 interface.  However, it does work really well as a web app on a mobile device.  You can create single panels that make sense for multiple controls.  This reduces the frenetic scrolling when you have a ton of devices like I do.
1xVera3 1.7.619, 4xLinear WT00Z, 3xLinear WS15Z, 1xLeviton VRCZ4, 10xCooper RF9540, 1xLeviton VRFI10, 1xLeviton VP00R, 2xLinear GD00Z-4, 1xGE/Jasco 45612, 1xGE/Jasco 45610,  4xGE/Jasco 45605, 2xYale YRD220-ZW-619, 1xCaddx NX584, Autelis Intellitouch Pool Control, OpenSprinkler

Offline cw-kid

  • Hero Member
  • *****
  • Posts: 1560
  • Karma: +16/-2
Re: Virtual Panel Plugin
« Reply #407 on: July 23, 2018, 05:35:39 pm »
Yeah I can see Panel Manager being useful if you use the UI7 web GUI a lot.

If its not possible to just view a panel as a separate webpage, then my idea for using it with Imperihome app as an embedded page won't work.

But whilst briefly playing about with creating a button, I noticed that the Action field doesn't seem to have a drop down menu for you to select an action from?

Seems you have to manually look up else where in the UI7 GUI, what the possible actions are for that particular Service ID ? 

I just tried to add a button from the Harmony plugin as in the screen shot, but it doesn't work when I press the button.

In the Action field I manually added "SendDeviceCommand" which I know is the correct action.

Button I am not sure about the Action Parameters.

In AltUI the action for a Harmony device command button, looks like the attached screen shot. For the GUIDE button on my TV etc.

Think I need to add some more virtual devices on to my Vera Edge test box, so I have more types of devices to test Panel Manager with.

Offline rstrouse

  • Hero Member
  • *****
  • Posts: 834
  • Karma: +30/-9
Re: Virtual Panel Plugin
« Reply #408 on: July 23, 2018, 05:57:46 pm »
I don't use AltUI or Harmony, but I would guess based upon what is showing there the parameter name should be "Command" with a value of "Guide" and another parameter named "Duration" perhaps a value of 1.  As for the Button Label and Glyph that probably belongs to AltUI not the device.

Unfortunately, the upnp files rarely contain all the info required to get the available actions on the device and JSON only contain those exposed by the UI.  Perhaps rene managed to get them all in there but I gave up after getting poor to midland results.
1xVera3 1.7.619, 4xLinear WT00Z, 3xLinear WS15Z, 1xLeviton VRCZ4, 10xCooper RF9540, 1xLeviton VRFI10, 1xLeviton VP00R, 2xLinear GD00Z-4, 1xGE/Jasco 45612, 1xGE/Jasco 45610,  4xGE/Jasco 45605, 2xYale YRD220-ZW-619, 1xCaddx NX584, Autelis Intellitouch Pool Control, OpenSprinkler

Offline cw-kid

  • Hero Member
  • *****
  • Posts: 1560
  • Karma: +16/-2
Re: Virtual Panel Plugin
« Reply #409 on: July 23, 2018, 06:13:19 pm »
Seems the same with a Binary Light device I just added.

I would have expected when clicking in to the Actions field, it would give a drop down menu for you to choose an action from.

Likewise with the Action Parameters Name field.

So you must know yourself what needs to be put in to these fields.

In this case for a light it would be:

Action = SetTarget
Name = newTargetValue
Value = 1 or 0

For the test Harmony button, putting "Command" in to the Name field, it works now OK and sends the command to the Harmony hub / TV to bring up the Guide on the screen.

So I guess it just a case of knowing what you need to put in to these fields to get things working.

Thanks

Offline rstrouse

  • Hero Member
  • *****
  • Posts: 834
  • Karma: +30/-9
Re: Virtual Panel Plugin
« Reply #410 on: July 23, 2018, 07:02:56 pm »
Yeah at the time this was all developed the upnp stuff was really flakey so I didn't pursue it any further.  It looks like amg0 managed to get something to work but I wonder if he just took the services that were pretty constant like Dimming and BinaryLight and let the installed plugins define a list.
1xVera3 1.7.619, 4xLinear WT00Z, 3xLinear WS15Z, 1xLeviton VRCZ4, 10xCooper RF9540, 1xLeviton VRFI10, 1xLeviton VP00R, 2xLinear GD00Z-4, 1xGE/Jasco 45612, 1xGE/Jasco 45610,  4xGE/Jasco 45605, 2xYale YRD220-ZW-619, 1xCaddx NX584, Autelis Intellitouch Pool Control, OpenSprinkler

Offline cw-kid

  • Hero Member
  • *****
  • Posts: 1560
  • Karma: +16/-2
Re: Virtual Panel Plugin
« Reply #411 on: July 23, 2018, 07:16:56 pm »
It would certainly make the Panel Manager plugin easier to use if those fields did have drop down menus.

In the AltUI when creating the same button for "Guide" when I click in to the Action field it shows a drop down menu with the possible actions "SendDeviceCommand" being one of them as you can see in the screen shot.

The Command field for the Harmony device didn't have a drop down box and I had to know the correct name of the command e.g. "Guide".

PLEG seems to do the same thing as well and gives you drop down menus to choose items from making it easier.