We have moved at community.getvera.com

Author Topic: [SOLVED] Problem Qubino dimmer,switch and thermostate  (Read 10020 times)

Offline zedrally

  • Hero Member
  • *****
  • Posts: 1224
  • Karma: +15/-5
  • Black Cat Control Systems
Re: [SOLVED] Problem Qubino dimmer,switch and thermostate
« Reply #15 on: January 02, 2015, 10:00:52 pm »
You can use the Additional temperature device Plugin rather than use LUA Code.

otherwise you can do the following.

You can achieve similar functionality as a trigger if you first make a scene that executes every X minutes/hours (depends on which way would suit your needs better) along with this code snippet that needs to be added to the Lua code section of the scene wizard (you need to change a few values in order to make it work on your end):
local temperature = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", 3);
if tonumber(temperature) > 25 then
                return true;
                return false;
The number colored red needs to be changed to the Device # of the device whose temperature sensor you want to use (open the device settings and look for the value next to Device #).
The number colored green is the temperature value to be triggered for (similar to the value used in ?When ambient temperature goes over X degrees? triggers). Change this to suit the one you want along with the logical operator (>): it can have the values <, >, ==, >=, <= and ~=.
To iterate on how it works with the default setting above:
1.)    The scene runs every X minutes/hours via a schedule.

2.)    When the scene starts running the code above gets executed. It checks for the CurrentTemperature variable value on the device, that has the temperature probe connected, and checks whether it is greater than 25 degrees.

3.)    If the temperature is greater than 25 degrees the snippet returns true, which then makes the scene execute the actions you set in it.

4.)    If the temperature isn't greater than 25 degrees then the snippet returns false, which then does NOT make the scene execute the actions set in it.

I used the Plug In, much simplier.
Living in the Land of Oz, give me a vegemite sandwich. Home Seer, Vera Lite & Edge, Popp, Black Cat Smart Hub & Vera G, Black Cat Lite 1 & 2's a Black Cat Dimmer or 2, Fantem Tec and then some  Black Cat Cat's Eye PIR's & Door-Window Sensors, RFXComm, Broadlink RMPro & Mini plus a Z-UNO or 2.

Offline andreyklinger

  • Newbie
  • *
  • Posts: 13
  • Karma: +1/-0
Re: [SOLVED] Problem Qubino dimmer,switch and thermostate
« Reply #16 on: February 17, 2015, 06:51:35 am »
Just to add some info:
Both Qubino Flush1 & Flush2 work fine with my Vera3 UI5.
(They are H1S1P1)