We have moved at community.getvera.com

Author Topic: ALTUI : Tips & Tricks  (Read 12791 times)

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
Re: ALTUI : Tips & Tricks
« Reply #15 on: November 09, 2015, 01:42:20 am »
Thank you, will do.


Envoy? de mon iPad en utilisant Tapatalk

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
11- forcing a manual install of a particular version of ALTUI
« Reply #16 on: January 13, 2016, 02:00:27 am »
this is a way to install manually a particular version of ALTUI is to use the "magic" url
http://<yourip>:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8246&Version=xxx
where xxx is a magic number given to you by the App.mios.com store

it is explained here: http://forum.micasaverde.com/index.php/topic,35739.msg264517.html#msg264517

the magic number to use can get found by looking here : http://apps.mios.com/test-plugin.php?id=8246&show=versions then clicking show files button of the version you want, then looking at the url in browser and take the number for PK_Version parameter

http://apps.mios.com/download-plugin.php?PK_Version=30020
« Last Edit: January 13, 2016, 10:52:11 am by amg0 »

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
12 - which syntax to use for opening ALTUI url
« Reply #17 on: March 16, 2016, 07:09:14 am »
On openLuup you must use :3480 but on Vera you can use either /port_3480 or :3480 on Firefox and Chrome, but not on IE. IE only works with /port_3480

Bottom line
  • On openLuup you must use :3480
  • On Vera you must use /port_3480

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
13 - directly opening a particular user custom page and nothing else
« Reply #18 on: June 08, 2016, 01:51:45 am »
using a url like this you can instruct ALTUI to open by default, one of your custom page , without any other things ( like menu ) around.

perfect for a waf or kid proof situation

http://<yourip>/port_3480/data_request?id=lr_ALTUI_Handler&command=home&home=pageUsePages&layout=lean&nPage=nnn

where nnn is the custom page index starting with 0
« Last Edit: October 22, 2017, 03:41:48 pm by amg0 »

Offline ccollinscj

  • Sr. Newbie
  • *
  • Posts: 34
  • Karma: +0/-0
Re: 7- favorite devices appear on home page as clickable tiles with basic info
« Reply #19 on: January 13, 2018, 04:08:56 pm »
it says it all in the title...
once a device or scene has been selected as a favorite ( colored star ), it will then appear as a tile on the home page of ALTUI. You can allways return to the Home page by clicking on home or on the VERA logo.

light , dimmers and scene tiles are clickable

Ok am new and cannot find any documentation on how to add events and or modify like you have on the home page.  Is there a way to do this without going into code i.e. GUI editing.....I have been unsuccessful at finding anything that can help me.

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
Re: 7- favorite devices appear on home page as clickable tiles with basic info
« Reply #20 on: January 13, 2018, 04:14:29 pm »
it says it all in the title...
once a device or scene has been selected as a favorite ( colored star ), it will then appear as a tile on the home page of ALTUI. You can allways return to the Home page by clicking on home or on the VERA logo.

light , dimmers and scene tiles are clickable

Ok am new and cannot find any documentation on how to add events and or modify like you have on the home page.  Is there a way to do this without going into code i.e. GUI editing.....I have been unsuccessful at finding anything that can help me.

set device or scene as "favorites" by clicking on the litte star icon in the device or scene page.  Once set as favorite it will appear on the home page as a square tile.  The order is controllable by drag and drop

Offline ccollinscj

  • Sr. Newbie
  • *
  • Posts: 34
  • Karma: +0/-0
Re: ALTUI : Tips & Tricks
« Reply #21 on: January 13, 2018, 05:12:35 pm »
Awesome.....slowly figuring out,  bought license yesterday and today I am jumping in.  Having some issues with OnLabel OffLabel with using MutiState object for my Kwik Set locks,  it doesn't what to toggle the state label, Icon and Door works great.  I am sure I will figure it out

Offline rjbissell1971

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Desktop shortcuts to turn on/off a light
« Reply #22 on: January 31, 2019, 12:06:58 pm »
After messing with it for days, I finally figured some stuff out that I thought might help others.

Be sure to install AltUI
(Login online, I don't think you can do it from the app; then go to Apps -> Install Apps and search for AltUI)

Using AltUI you can hit a web address to turn on/off a light, or to lock/unlock a door. 
NOTE: This worked in Chrome, but didn't work in Edge, even with "port_3480" instead of ":3480" it still didn't work for me in Edge.

Example 1 - Turn on/off a light

    Turn ON  URL: http://<VeraIP>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=<dev#>&serviceId=urn:<service>:serviceId:<serviceID>&action=SetTarget&newTargetValue=1
    Turn OFF URL: http://<VeraIP>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=<dev#>&serviceId=urn:<service>:serviceId:<serviceID>&action=SetTarget&newTargetValue=0


    FINDING THE SERVICE/SERVICE ID --- This was a struggle for me.  I couldn't find the information through the UI.
  • Pull up the Device in the Vera UI (note the device number for the <dev#> field in the URL) and go to Advanced

  • Note the "device_file"

  • Go to http://<VeraIP>:3480/luvd/<device_file>
    Example: http://192.168.1.16:3480/luvd/D_BinaryLight1.xml

  • In the serviceList section (see below) I was able to find the <service> as "upnp-org" and the <serviceID> as "SwitchPower:1" (remove the colon for use in the URL)
    I expected this to BinaryLight1, but that didn't work.  I had to go to the XML to find out it was SwitchPower1.

  • Build your URL
    http://192.168.1.16:3480/data_request?id=lu_action&output_format=xml&DeviceNum=29&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1

  • Open the URL in a browser (Chrome worked and Edge didn't for me) and change the 0 to a 1 and test it to make sure it turns on/off the light.

  • Create a desktop shortcut to the URLs.  Bingo!  Double click on one to turn on the light and the other to turn off the light.

    <serviceList>
      <service>
        <serviceType>urn:schemas-upnp-org:service:SwitchPower:1</serviceType>
        <serviceId>urn:upnp-org:serviceId:SwitchPower1</serviceId>
        <SCPDURL>S_SwitchPower1.xml</SCPDURL>
      </service>


    FINDING THE VeraIP --- Lots of ways to do this including looking in your Router settings, this is just the way I confirmed I had the right one
  • Log into your controller

  • Go to Settings -> Net & Wifi

  • Click on "Troubleshoot Network"

  • In the IP Configuration section, find the correct "inet addr" - mine was in the "br-wan" section

  • You may also note the External IP and then see the ISSUES TO BE ADDRESSED below


    === IP Configuration ===
    br-wan    Link encap:Ethernet  HWaddr ##:##:##:##:##:## 
              inet addr:192.168.1.16  Bcast:###.###.#.###  Mask:###.###.###.#
    eth0      Link encap:Ethernet  HWaddr ##:##:##:##:##:## 
    eth0.1    Link encap:Ethernet  HWaddr ##:##:##:##:##:## 
              inet addr:###.###.##.##  Bcast:###.###.##.###  Mask:###.###.###.#
    eth0.2    Link encap:Ethernet  HWaddr ##:##:##:##:##:## 
              inet addr:###.#.#.#  Mask:###.###.###.#
    ra0       Link encap:Ethernet  HWaddr ##:##:##:##:##:## 
    rai0      Link encap:Ethernet  HWaddr B4:A5:EF:F1:87:54 
    ========================
    External IP: ##.##.#.###


Example 2 - Lock/Unlock a door

    Lock Door   URL: http://192.168.1.16:3480/data_request?id=lu_action&output_format=xml&DeviceNum=5&serviceId=urn:micasaverde-com:serviceId:DoorLock1&action=SetTarget&newTargetValue=1
    UnLock Door URL: http://192.168.1.16:3480/data_request?id=lu_action&output_format=xml&DeviceNum=5&serviceId=urn:micasaverde-com:serviceId:DoorLock1&action=SetTarget&newTargetValue=0

    NOTE: the different "service" used here - "micasaverde-com" instead of "upnp-org" and that it is "DoorLock1"
    Use the same process as in Example 1 to build your URL

    <serviceList>
      <service>
        <serviceType>urn:schemas-micasaverde-com:service:DoorLock:1</serviceType>
        <serviceId>urn:micasaverde-com:serviceId:DoorLock1</serviceId>
        <SCPDURL>S_DoorLock1.xml</SCPDURL>
      </service>



ISSUES TO BE ADDRESSED

  • The shortcuts open up a browser, which I don't want and then I have to close. 
    There might be a way with TelNet or something to hit that website address without opening a browser.  That would be ideal. 
    If I figure out how, I'll repost later, or maybe someone can reply with help for that.

  • You should be able to create shortcuts on your cell phone's home screen to hit the same URLs and it should work also, but I haven't done that yet.

  • My gut says there should be an easier way to do this and I'm probably just missing it. 
    If anyone knows of other/easier ways to get shortcuts that do things in Vera, please post those!

  • I'm sure you can probably trigger things remotely using the External IP Address, but that probably requires doing some port forwarding on your router to send port 3480 to Vera.  I haven't done that and how you do that depends on your specific router.

  • If you use this process, you will probably want to assign a static IP address for your Vera controller.  This is done through your router and the process is router specific.
    If you don't assign a static IP, then you run the risk of a router reboot assigning a different <VeraIP> (IP address) to your controller and your shortcuts will stop working



Thanks to all the other posters here, I couldn't have figured this out without your posts.

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: ALTUI : Tips & Tricks
« Reply #23 on: January 31, 2019, 03:48:49 pm »
If you don't want to use a browser, could you use curl from a batch or command line?  I can test it at some point, but curious if you've tried?
C

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: ALTUI : Tips & Tricks
« Reply #24 on: January 31, 2019, 04:57:25 pm »
Awesome
curl 'http://n.n.n.n:3480/data_request?id=lu_action&output_format=xml&DeviceNum=37&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1'

Works beautifully. At least on my Mac'
Which means you can write these into any kind of script or executable command line. Fantastic.


C

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: ALTUI : Tips & Tricks
« Reply #25 on: January 31, 2019, 05:02:26 pm »
Oh another thing, yes you could forward $randomport to 3480 on your vera and I am completely sure that it would work just fine.

Also reasonably sure that it would be about as secure as a wet paper bag. Almost certainly not a good idea unless you've got some far harder security than that in drobear which, if I read the recent threads and remember them correctly isa version with some security issues already.

C