FEATURE REQUEST: URL Maker in 'Tools'
-
For times when it would be handy to have self-contained shortcuts to HA routines -- e.g. executing scenes via Tasker, or creating clickable icons in Windows, or browser bookmarks, etc. -- I've always envisioned a "URL Maker" tool.
It would be analogous to the PLAY ► button shown next to REACTION components, but instead of executing the recipe immediately, "URL Maker" would give users the opportunity to copy and/or save the corresponding HTTP Request.
For users like me, who wouldn't otherwise know how to compose such a command "by hand", such a tool could become invaluable.
-
Oops, I keep forgetting to tag @toggledbits on these Feature Requests.
-
Inspired by the work done over at SmartHome, I wrote a little "Rule" that creates a bookmark-able URL to execute an ON/DIM/OFF command. Here's an example based on a dimmable light:
`veraIP` `:=` `<your_vera_ip_address>` // set this once `devNum` `:=` `<device_number>` // change this based on desired target device (use MSR > Entities to discover) `devEnt` `:=` `getEntity( "vera>device_"+devNum ).name` // finds name of target device `lvlTarg` `:=` `< 0=off | target_dim_level | 100=on > // desired brightness for light `httpCmd` `:=` `"http://"+veraIP+":3480/data_request?id=lu_action&output_format=json&serviceId=urn:upnp-org:serviceId:Dimming1&action=SetLoadLevelTarget&DeviceNum="+devNum+"&newLoadlevelTarget="+lvlTarg`
The SET REACTION has two components:
[ HTTP Request ] [ GET ] [ ${{httpCmd}} ]
// performs the actual task as instructed
and
[ Notify ] [ SMTP ] [ Subject: ${{"Dim the "+devEnt+" to "+lvlTarg+"%"}} ] [ Body: ${{httpCmd}} ]
// emails you a copy of the HTTP command, for bookmarking or saving as a shortcut on your Desktop (PC) or Home screen (mobile)Of course, these HTTP commands are intended for use within your home network, i.e. locally, not remote. As such, they are handy for setting up a tablet-based HA kiosk.
I'll create more examples soon, for devices that simply turn ON or OFF (no Dim), etc. This is intended as a proof-of-concept for now.
-
This website has a URL creator for Vera. Maybe of interest to someone.
Which I just realised is the same site you linked to
-
T toggledbits locked this topic on