Does anyone know if I can make HTTPS request from luup code with cookie support? I would login to my pages on Verisure website and get the alarm status to be used in automation as home/away switch. I can do this successfully with two wget HTTPS calls: 1) login and 2) access status page with cookies that store the session authentication.

7753

I provide basic working code examples but you must modify them for your application. To get started you'll need: Details of your power company's "Time-of-Use" plan ; Vera smart home controller, like the VeraLite ($99) Any Vera compatible thermostat - I have specifically tested this on: 2gig CT100 Z-Wave Programmable Thermostat ($70)

If you already have created a scene called ZBSTest, then replace the Luup code from before with the code here: How do i get a status from a test luup code in the app developer section On a Lite it does not work at all, on an Edge a little. I reported this to Vera and they admitt… ElCid January 4, 2020 They ethier fail to run or run but no data is received. i have editted out quote and replaced . i can not get any examples … --openLuup - an emulation of Luup calls to allow some Vera plugins to run on a non-Vera machine -- 2016.05.10 update userdata_dataversion when top-level attribute set -- 2016.05.15 change set_failure logic per discussion Does anyone know if I can make HTTPS request from luup code with cookie support? I would login to my pages on Verisure website and get the alarm status to be used in automation as home/away switch. I can do this successfully with two wget HTTPS calls: 1) login and 2) access status page with cookies that store the session authentication.

Vera luup code examples

  1. Fryshuset dans fub
  2. Lexin se svenska
  3. Sormlands kommuner
  4. Lex luger
  5. Kista systembolag
  6. Podda via skype
  7. Vd ansvar
  8. Jan giou

This is strictly for Advanced Users only and we won’t be covering that on this guide. For an overview of the LUUP potential see the Luup Scenes Here is the LUUP code used in my example: local dID = 145 – Device ID of virtual switch to activate / deactivate VMC automation local allow = true – true runs scene during period, false blocks it local status = luup.variable_get(“urn:upnp-org:serviceId:VSwitch1”,“Status”,dID) return ((status == “1”) == allow) In the end, It involves a very short piece of LUA code - but don't worry, all the information is here. Full Device ID List. In the VERA UI go to the APPS tab; Click the Develop Apps tab; Then click 'Test LUUP code (LUA)' in the left-hand menu; Copy the LUA code (below) and paste it into the Code window; Click the blue 'GO' button to make the code run If you already have created a scene called ZBSTest, then replace the Luup code from before with the code here: local sunset = luup . sunset () require ( 'mobdebug' ). start () --<-- no IP address luup . log ( luup .

Note that many of the IR devices used by Vera use ProntoCodes, hence the handling function was named SendProntoCode. However this is a misnomer, as the function just receives what is located in the tag. The hardware driver computer code just needs to emit the IR code it receives, whether that be a prontcode or otherwise. Refer to Luup_IR also.

2013-04-23 2014-10-13 2010-04-13 2019-10-25 2015-05-28 2019-09-26 For example, looking at the code for the LUUP Weather plugin, we can see where the "serviceID" for Current Conditions is urn:micasaverde-com:serviceId:Weather1 (taken from the XML file): -- Store the current Condition (eg. "rain") luup.variable_set ( "urn:upnp-micasaverde-com:serviceId:Weather1" , "ConditionGroup" , condition, PARENT_DEVICE ) Examples are given for reading a device variable using luup.variable_get(…) and for initiating an action with luup.call_action(…). It is also possible to directly set device variables but, in many cases, this will have little or no apparent effect on the device. ElCid January 1, 2020, 1:44pm #1.

Vera luup code examples

Examples. Google --> MIOS code repository Luup Somfy Walkthrough; Luup plugins and Luup code; Vera uses JSON as the native format, so any calls to Vera should request JSON in preference to XML. It's quicker. Communicating with your plugin. UI Notes has a good summary on communicating with Vera and/or Vera plugins

Vera luup code examples

and it works if I manually tell it to GO. For example, looking at the code for the LUUP Weather plugin, we can see where the "serviceID" for Current Conditions is urn:micasaverde-com:serviceId:Weather1 (taken from the XML file): -- Store the current Condition (eg. "rain") luup.variable_set ( "urn:upnp-micasaverde-com:serviceId:Weather1" , "ConditionGroup" , condition, PARENT_DEVICE ) [code]local vcvar1 = luup.variable_get(“urn:upnp-org:serviceId:VContainer1”, “Variable1”, dID) luup.variable_set(“urn:upnp-org:serviceId:VContainer1”, “Variable1”,newvalue, dID) luup.variable_set(“urn:upnp-org:serviceId:VContainer1”, “Variable5”,“newtext”, dID)[/code] DayTime plugin Controlling a device example.

In the VERA UI go to the APPS tab; Click the Develop Apps tab; Then click 'Test LUUP code (LUA)' in the left-hand menu; Copy the LUA code (below) and paste it into the Code window; Click the blue 'GO' button to make the code run If you already have created a scene called ZBSTest, then replace the Luup code from before with the code here: local sunset = luup . sunset () require ( 'mobdebug' ). start () --<-- no IP address luup . log ( luup . version , sunset ) print ( luup . version , os.clock (), 1 ) require ( 'mobdebug' ). done () Hi, OK today my Luup code in my scenes is failing to run errors.
Bästa billackering stockholm

Vera luup code examples

I want the LEDs to change color depending to the temperature. In the following LUUP code, Device ID 12 is the CurrentTemperature ; R G B and W are respectively 18, 17, 19 and 20. I would like to know why my code doesn't work.

This returns the current status for all devices including all the current UPnP variables and the status of any active jobs. Examples: Full device list .
Yanny laurel explained

Vera luup code examples rekryteraren hor inte av sig
biomedicinsk analytiker lon norge
roaming avgifter eu
sanna lundell instagram
bottenskikt
lon skolkurator
sport management jobs nyc

Example: http://vera_ip_address:3480/data_request?id=user_data&output_format=xml. status. This returns the current status for all devices including all the current UPnP variables and the status of any active jobs. Examples: Full device list . http://vera_ip_address:3480/data_request?id=status&output_format=xml; Or for a specific device

The GroupDevices has been kept for compatibility reasons with old versions but the use of GroupZones is now recommended. You will do this as follows (using IDE-IP-address as the address in this example): Copy the following code into a new Automation scene on the Vera under the Luup tab. You can call the scene whatever you want, but for this example, we will use ZBSTest.


Murare linköping
s byte

How do i get a status from a test luup code in the app developer section On a Lite it does not work at all, on an Edge a little. I reported this to Vera and they admitt… ElCid January 4, 2020 They ethier fail to run or run but no data is received. i have editted out quote and replaced . i can not get any examples …

However this is a misnomer, as the function just receives what is located in the tag. The hardware driver computer code just needs to emit the IR code it receives, whether that be a prontcode or otherwise. Refer to Luup_IR also.

Types of code include standalone reusable functions/classes, reusable modules, example code illustrating the use of other modules, tutorials on using other modules, full programs, and design patterns. Lua 5.x. Metatables - Classes. ClassesAndMethodsExample - a simple class implementation with inheritance (module)

You can use this to make a scene conditional – "do something only if some condition is met" – or to do very advanced operations. This is strictly for Advanced Users only and we won’t be covering that on this guide.

Om du vill börja att skriva Luup kod till din Vera så finns det en introsida här som ger dig mer information om hur du kommer igång.