How echo local

Hello everybody,

I need help, I try my new NoDon Octan, my configuration is ok but I have a issue.

When I click my scene run
I see the Last Run (scene) and the variable lastSceneID update in UI7.
But my scene make nothing.

I try to add a ‘ELSE’ to see if Luup ok and it’s ok.

My problem I think the GET micasaverdecom:serviceId:SceneController1","LastSceneID’ don’t work.

I’m sure the variable LastSceneID = 40 for the device, but I want to be sure, how I can make a ‘echo’ to see this ?

My luup code

luup.call_delay(‘scene_controller’,1)
function scene_controller()
local lastSceneID = luup.variable_get(“urn:micasaverdecom:serviceId:SceneController1”,“LastSceneID”,131)
if (lastSceneID == 40) then
luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”, “SetTarget”, {newTargetValue = “1”}, 111)
luup.call_action(“urn:upnp-org:serviceId:Dimming1”, “SetLoadLevelTarget”, {newLoadlevelTarget = “70”}, 111)
end
end

THank you

In luup log

02 02/14/16 22:35:48.925 ZWaveController::HandlePollUpdate_SceneActivation scene_act node 25 device 131 scene 40 duration 0 is a dup <0x76c31520>
01 02/14/16 22:35:49.894 ZWJob_PollNode::ReceivedFrame job job#42 :pollnode #18 dev:38 (0x131b038) N:18 P:100 S:5 got FUNC_ID_APPLICATION_COMMAND_HANDLER node info expected 18 got 25 <0x76c31520>
01 02/14/16 22:35:49.895 ZWaveController::HandlePollUpdate_SceneActivation node 25 device 131 scene 40 button=0 <0x76c31520>

I believe you need

if (lastSceneID == "40") then
        luup.call_action("urn:upn

The device variable value is a string, not a number.

akbooer

I try : if (lastSceneID == “40”) and it’s nok.
If I delete the condition it’s working, I’m sure the local lastSceneID is my issue.

I try convert in number but nok.
if (tonumber(lastSceneID) == 40)

Ok error in NoDon .pdf

micasaverdecom:serviceId:SceneController1
micasaverde-com:serviceId:SceneController1

It’s ok

THx