Author Topic: Scene job gets "superseded" ?  (Read 196 times)

Offline stevenakis

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Scene job gets "superseded" ?
« on: May 27, 2018, 12:10:21 pm »

I have a Qubino dimmer installed in the bathroom. Typically it is set at full brightness in the morning and at reduced brightness late in the evening. To avoid that the first person using the bathroom in the morning has to set the brightness back to full, I have written a simple lua script to set the brightness at 100 %, and I set a timer to run this script every morning at 4 o'clock:

  local tmp = luup.variable_get("urn:upnp-org:serviceId:SwitchPower1", "Status", 21)
  local on = tonumber(tmp)
  if (on == 0) then
    luup.log("!lights are off -> adjust loadleveltarget to 100")
    luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", {newLoadlevelTarget = "100"}, 21)
    luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {newTargetValue = "0"}, 21)

(the condition is to avoid that the light level changes in the unlikely case someone would be using the bathroom at that time).

The problem is: sometimes it works, sometimes it doesn't  :(.

I was able to save a section of the log file when the scene runs unsuccessfully. Everything seems to go normal, but at the end there is a message

  04   05/27/18 04:00:00.145   <Job ID="42" Name="Level 99 node 9" Device="21" Created="2018-05-27 04:00:00" Started="2018-05-27 04:00:00" Completed="2018-05-27 04:00:00" Duration="0.39530000" Runtime="0.0" Status="Aborted" LastNote="Sorry, your request could not be performed because it was superseded by job43" Node="9" NodeType="ZWaveDimmableLight" NodeDescription="light bathroom"/> <0x7699c520>

Does anybody know what this means ? Or how to find out what this job 43 is ? There are no other scenes operating on this device. I also made sure all web interfaces to Vera were closed, as I wanted to exclude the possibility that the Devices screen on Vera's UI would be sending overruling messages. Even when setting Vera in verbose log mode I couldn't find out what this job 43 is. It is created somewhere between the start and end of the scene job:

  10   05/27/18 00:04:00.109   Job::Job created <0xff8118> name job#43 :Level 0 node 9 dev:21 (0xff8118) <0x7699c520>
  35   05/27/18 00:04:00.110   ZWaveNode::IsSecureCommand node is non secure <0x7699c520>
  10   05/27/18 00:04:00.110   Job::m_cPriority_set job#43 :Level 0 node 9 dev:21 (0xff8118) P:50 S:0 Id: 43 was 50 now 25 <0x7699c520>

I wondered if this "was 50 now 25" gives a clou ? Apparently the value of "P" is changed, but what is "P" ?

Also, it is puzzling that this job 43, even though it seems to operate on device 21 (the bathroom light), doesn't do anything except from "superseding" the scene actions. It keeps the LoadLevelTarget at the original setting.

Thanks in advance for your help ! I am REALLY out of inspiration with this.