Lamps not responding

Have entered into some strange issues, had the plugin working very good before - but as I ran into some issues with lack of memory the plugin does not work as before. Memory issue is now resolved. AltHue removed and installed again.
When I use the Hue app I am able to switch on/off any lamp without issue. When doing the same using the Vera Plugin (1.43) it works 1 st time, thereafter the lamp does not respond anymore to switch on/off. If I change “load level” it works, unless I set it to 0 - then I run into issues again. This prevents me from using scenes or even the Vera plugin… Strange as it worked excellent before… Any ideas?

[quote=“epkulse, post:1, topic:200540”]Have entered into some strange issues, had the plugin working very good before - but as I ran into some issues with lack of memory the plugin does not work as before. Memory issue is now resolved. AltHue removed and installed again.
When I use the Hue app I am able to switch on/off any lamp without issue. When doing the same using the Vera Plugin (1.43) it works 1 st time, thereafter the lamp does not respond anymore to switch on/off. If I change “load level” it works, unless I set it to 0 - then I run into issues again. This prevents me from using scenes or even the Vera plugin… Strange as it worked excellent before… Any ideas?[/quote]

No the few time I had issues I could confirm the same issues from the hue app on my phone and it?auto solved itself. so more related to zigbee and potentiel interf?rences. You may try a different zigbee channel from the philips app.

OK,will try to set another channel…

Did not help. Rather made things worse as all IKEA lamps are now impossible to control from Hue. And Vera… So I will have to remove them from Hue and add again, somehow… Not fun…

To me it seems like Vera does not send commands the right way to Hue - as it works OK using the Hue app…

Something appears to be corrupted somehow… Maybe best thing to remove every file related to Hue and reload Vera - and then start off again? Is there a way to remove “everything” using ssh, or is it enough to uninstall in Vera Gui. I did a Vera uninstall when I encountered the problems, but that obviously did not help…

Reverted channel - and IKEA work again. But still the same issue with controlling lamps in Vera…

Checking the log in Vera.

  1. The lamp is on, changing to off:

08 02/02/19 15:13:00.872 JobHandler_LuaUPnP::HandleActionRequest device: 726 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x7248c520>
08 02/02/19 15:13:00.872 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=726 <0x7248c520>
50 02/02/19 15:13:00.873 luup_log:722: ALTHUE: debug: UserSetPowerTarget(726,0) <0x7248c520>
50 02/02/19 15:13:00.873 luup_log:722: ALTHUE: debug: UserSetLoadLevelTarget(726,0) <0x7248c520>
50 02/02/19 15:13:00.874 luup_log:722: ALTHUE: debug: HueLampSetState(726,{“on”: false}) <0x7248c520>

Result: Lamp turns off. In Vera GUI, the lamp goes off - after some 10 seconds the lamp indicates On again. But in fact the lamp is still Off.

  1. As the lamp is On in Vera GUI, I change dim level. And the light goes On again:

06 02/02/19 15:16:48.550 Device_Variable::m_szValue_set device: 726 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelTarget was: 73 now: 49 #hooks: 0 upnp: 0 skip: 0 v:0x146bd50/NONE duplicate:0 <0x7248c520>
06 02/02/19 15:16:48.553 Device_Variable::m_szValue_set device: 726 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelStatus was: 73 now: 49 #hooks: 0 upnp: 0 skip: 0 v:0x146bdb8/NONE duplicate:0 <0x7248c520>
06 02/02/19 15:16:48.554 Device_Variable::m_szValue_set device: 726 service: urn:upnp-org:serviceId:SwitchPower1 variable: Target was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0x12b7180/NONE duplicate:1 <0x7248c520>
06 02/02/19 15:16:48.554 Device_Variable::m_szValue_set device: 726 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0x12b71f8/NONE duplicate:1 <0x7248c520>
50 02/02/19 15:16:48.554 luup_log:722: ALTHUE: debug: HueLampSetState(726,{“on”: true, “bri”: 124}) <0x7248c520>

If I try to run a scene separately in AltUI trying to set variable “SetPowerTarget” to “1” to set it on - I can?t find this variable…

Is this only happening to me, or has something changed in the communication between Vera and Hue. My Hue is running SW: 1811120916.

I tested with a Hue original lamp, same problem. But from what I can see the messages seem OK. Maybe I have some corruption or problem with any AltHUE file?

Any ideas?

[quote=“epkulse, post:6, topic:200540”]Checking the log in Vera.

  1. The lamp is on, changing to off:

08 02/02/19 15:13:00.872 JobHandler_LuaUPnP::HandleActionRequest device: 726 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x7248c520>
08 02/02/19 15:13:00.872 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=726 <0x7248c520>
50 02/02/19 15:13:00.873 luup_log:722: ALTHUE: debug: UserSetPowerTarget(726,0) <0x7248c520>
50 02/02/19 15:13:00.873 luup_log:722: ALTHUE: debug: UserSetLoadLevelTarget(726,0) <0x7248c520>
50 02/02/19 15:13:00.874 luup_log:722: ALTHUE: debug: HueLampSetState(726,{“on”: false}) <0x7248c520>

Result: Lamp turns off. In Vera GUI, the lamp goes off - after some 10 seconds the lamp indicates On again. But in fact the lamp is still Off.

  1. As the lamp is On in Vera GUI, I change dim level. And the light goes On again:

06 02/02/19 15:16:48.550 Device_Variable::m_szValue_set device: 726 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelTarget was: 73 now: 49 #hooks: 0 upnp: 0 skip: 0 v:0x146bd50/NONE duplicate:0 <0x7248c520>
06 02/02/19 15:16:48.553 Device_Variable::m_szValue_set device: 726 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelStatus was: 73 now: 49 #hooks: 0 upnp: 0 skip: 0 v:0x146bdb8/NONE duplicate:0 <0x7248c520>
06 02/02/19 15:16:48.554 Device_Variable::m_szValue_set device: 726 service: urn:upnp-org:serviceId:SwitchPower1 variable: Target was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0x12b7180/NONE duplicate:1 <0x7248c520>
06 02/02/19 15:16:48.554 Device_Variable::m_szValue_set device: 726 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0x12b71f8/NONE duplicate:1 <0x7248c520>
50 02/02/19 15:16:48.554 luup_log:722: ALTHUE: debug: HueLampSetState(726,{“on”: true, “bri”: 124}) <0x7248c520>

If I try to run a scene separately in AltUI trying to set variable “SetPowerTarget” to “1” to set it on - I can?t find this variable…

Is this only happening to me, or has something changed in the communication between Vera and Hue. My Hue is running SW: 1811120916.[/quote]

Nothing changed. Note that SetPowerTarget is an action not a variable, you need to call action not setting variable

Well, you are right… You know better - I am just trying to troubleshoot without knowing the API…

In any case, I have now again uninstalled ALTHue. Then I removed all files related in /etc/cmh-ludl. And then again I reinstalled. Still, the behavior is the same. I can switch a lamp On, and it lights up. Then I can switch it Off, and the lamp is switched Off. If I try to switch On again, nothing happens. Then if I change dimlevel, it lights up again. That is when I use AltUI/Vera control. But if I try to create a scene, it does not work. I can create a scene where the lamp switches On, then it switches Off. But next time it will not switch On again…

If this is only for me, then I have no idea what can be wrong… Or is the interface (API) changed somehow. Or is there some kind of timeout in the protocol that prevents switching on/off frequently… Really strange…

BTW - I am using 1.43 downloaded from Vera Appstore. Is it exactly the same as AltHUE on Github?

And, is AltHUE 1.43 compliant with HUE version 1811120916?

Have tested a bit using the clip API debugger.

I can toggle the lamp on/off without any issues using the debugger:

/api/“username”/lights/4/state

{
“on”: true
}

And:

/api/“username”/lights/4/state

{
“on”: false
}

How can I see what is sent from AltHUE? I am not a programmer…

Checked the log:

  1. The lamp is On, and I set it to Off in AltUI GUI:

50 02/03/19 13:59:57.099 luup_log:732: ALTHUE: debug: UserSetPowerTarget(736,0) <0x727a3520>
50 02/03/19 13:59:57.099 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,0) <0x727a3520>
50 02/03/19 13:59:57.100 luup_log:732: ALTHUE: debug: HueLampSetState(736,{“on”: false}) <0x727a3520>
50 02/03/19 13:59:57.100 luup_log:732: ALTHUE: debug: ALTHueHttpCall(732,PUT,lights/5/state,{“on”: false}) <0x727a3520>

  1. In the GUI I set the lamp to ON, nothing happens - still Off:

50 02/03/19 14:01:06.533 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,60) <0x73ba3520>

  1. In the GUI I set the lamp to Off. Even though it is actually Off. And the state changes back to On after a few seconds.

50 02/03/19 14:03:12.042 luup_log:732: ALTHUE: debug: UserSetPowerTarget(736,0) <0x731a3520>
50 02/03/19 14:03:12.042 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,0) <0x731a3520>
50 02/03/19 14:03:12.043 luup_log:732: ALTHUE: debug: HueLampSetState(736,{“on”: false}) <0x731a3520>
50 02/03/19 14:03:12.043 luup_log:732: ALTHUE: debug: ALTHueHttpCall(732,PUT,lights/5/state,{“on”: false}) <0x731a3520>

  1. In the GUI, I set dimming level to 45 and the lamp lights up again:

50 02/03/19 14:04:40.800 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,45) <0x731a3520>
50 02/03/19 14:04:40.874 luup_log:732: ALTHUE: debug: HueLampSetState(736,{“on”: true, “bri”: 114}) <0x731a3520>
50 02/03/19 14:04:40.874 luup_log:732: ALTHUE: debug: ALTHueHttpCall(732,PUT,lights/5/state,{“on”: true, “bri”: 114}) <0x731a3520>

Something is wrong, but I don?t know what…

[quote=“epkulse, post:11, topic:200540”]Checked the log:

  1. The lamp is On, and I set it to Off in AltUI GUI:

50 02/03/19 13:59:57.099 luup_log:732: ALTHUE: debug: UserSetPowerTarget(736,0) <0x727a3520>
50 02/03/19 13:59:57.099 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,0) <0x727a3520>
50 02/03/19 13:59:57.100 luup_log:732: ALTHUE: debug: HueLampSetState(736,{“on”: false}) <0x727a3520>
50 02/03/19 13:59:57.100 luup_log:732: ALTHUE: debug: ALTHueHttpCall(732,PUT,lights/5/state,{“on”: false}) <0x727a3520>

  1. In the GUI I set the lamp to ON, nothing happens - still Off:

50 02/03/19 14:01:06.533 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,60) <0x73ba3520>

  1. In the GUI I set the lamp to Off. Even though it is actually Off. And the state changes back to On after a few seconds.

50 02/03/19 14:03:12.042 luup_log:732: ALTHUE: debug: UserSetPowerTarget(736,0) <0x731a3520>
50 02/03/19 14:03:12.042 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,0) <0x731a3520>
50 02/03/19 14:03:12.043 luup_log:732: ALTHUE: debug: HueLampSetState(736,{“on”: false}) <0x731a3520>
50 02/03/19 14:03:12.043 luup_log:732: ALTHUE: debug: ALTHueHttpCall(732,PUT,lights/5/state,{“on”: false}) <0x731a3520>

  1. In the GUI, I set dimming level to 45 and the lamp lights up again:

50 02/03/19 14:04:40.800 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,45) <0x731a3520>
50 02/03/19 14:04:40.874 luup_log:732: ALTHUE: debug: HueLampSetState(736,{“on”: true, “bri”: 114}) <0x731a3520>
50 02/03/19 14:04:40.874 luup_log:732: ALTHUE: debug: ALTHueHttpCall(732,PUT,lights/5/state,{“on”: true, “bri”: 114}) <0x731a3520>

Something is wrong, but I don?t know what…[/quote]

I use AltHUE 1.43 with HUE version 1811120916 constantly so yes it works
your log seems to indicate light 5, have you tested the API with light 5 ? also as I recommended earlier you need to make sure you test with the Philippe Hue mobile app on your phone to make sure you are not with some zigbee interference issues

otherwise, I need to see the whole log tp try to help. so I recommende this method ( after you confirm that the same works from Philipes Hue mobile app ) :
1- in DEBUG model, do a luup reload. then take a timestamp on a watch,
2- do the action , check the result , note the timestamp
3- send me the log extract for that window of time so I can look via PM or email

thx

I have tested with both light no 5 and another with same result. I have tested using the HUE Api, no issues. And it works OK using the HUE mobile app. Only control via Vera behaves strange…

I will try to follow your steps…

Hi,

can you PM your mailaddress? I am unable to attach the log as it is too big…

So, based on dialogue with amg0 it seems somehow that when trying to switch on a lamp some kind of error appears - see below debug log where I: 1) Switch off a lamp 2) Try to switch on - which fails 3) Change dimming, which causes the lamp to light up again

08 02/03/19 21:00:11.809 JobHandler_LuaUPnP::HandleActionRequest device: 736 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x732f6520>
08 02/03/19 21:00:11.810 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=736 <0x732f6520>
08 02/03/19 21:00:11.810 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x732f6520>
08 02/03/19 21:00:11.810 JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x732f6520>
08 02/03/19 21:00:11.810 JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=0 <0x732f6520>
50 02/03/19 21:00:11.811 luup_log:732: ALTHUE: debug: UserSetPowerTarget(736,0) <0x732f6520>
50 02/03/19 21:00:11.811 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,0) <0x732f6520>
50 02/03/19 21:00:11.812 luup_log:732: ALTHUE: debug: HueLampSetState(736,{“on”: false}) <0x732f6520>
50 02/03/19 21:00:11.812 luup_log:732: ALTHUE: debug: ALTHueHttpCall(732,PUT,lights/5/state,{“on”: false}) <0x732f6520>
08 02/03/19 21:00:13.883 JobHandler_LuaUPnP::HandleActionRequest device: 736 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x732f6520>
08 02/03/19 21:00:13.883 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=736 <0x732f6520>
08 02/03/19 21:00:13.884 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x732f6520>
08 02/03/19 21:00:13.884 JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x732f6520>
08 02/03/19 21:00:13.884 JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=1 <0x732f6520>
[size=14pt]02 02/03/19 21:00:13.884 JobHandler_LuaUPnP::ConfirmGlobalActionRules replaced binary on with dim 72 <0x732f6520>[/size]
50 02/03/19 21:00:13.885 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,72) <0x732f6520>
08 02/03/19 21:00:16.932 JobHandler_LuaUPnP::HandleActionRequest device: 736 service: urn:upnp-org:serviceId:Dimming1 action: SetLoadLevelTarget <0x7412f520>
08 02/03/19 21:00:16.932 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=736 <0x7412f520>
08 02/03/19 21:00:16.933 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:Dimming1 <0x7412f520>
08 02/03/19 21:00:16.933 JobHandler_LuaUPnP::HandleActionRequest argument action=SetLoadLevelTarget <0x7412f520>
08 02/03/19 21:00:16.933 JobHandler_LuaUPnP::HandleActionRequest argument newLoadlevelTarget=81 <0x7412f520>
50 02/03/19 21:00:16.933 luup_log:732: ALTHUE: debug: UserSetLoadLevelTarget(736,81) <0x7412f520>
06 02/03/19 21:00:16.934 Device_Variable::m_szValue_set device: 736 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelTarget was: 72 now: 81 #hooks: 0 upnp: 0 skip: 0 v:0xf18920/NONE duplicate:0 <0x7412f520>
06 02/03/19 21:00:16.935 Device_Variable::m_szValue_set device: 736 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelStatus was: 72 now: 81 #hooks: 0 upnp: 0 skip: 0 v:0xd5e898/NONE duplicate:0 <0x7412f520>
06 02/03/19 21:00:16.935 Device_Variable::m_szValue_set device: 736 service: urn:upnp-org:serviceId:SwitchPower1 variable: Target was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xd74e88/NONE duplicate:1 <0x7412f520>
06 02/03/19 21:00:16.935 Device_Variable::m_szValue_set device: 736 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xd74ef0/NONE duplicate:1 <0x7412f520>

So, for now I can not use the Hue Bridge as it is completely unreliable. Would like to use it in scenes - but useless now…

Are there other means to use to control Hue lamps? Noted this on the Philips developer web: https://github.com/Josef-Friedrich/Hue-shell

Is anyone else having issues controlling Hue-lamps using AltHue plugin, or is it only me?

Got this reply from Tinman in another thread:

What I’ve been told by those at Vera is that this is the way it works. It seems that any device that uses both the urn:upnp-org:serviceId:SwitchPower1 (usually for On/Off) and urn:upnp-org:serviceId:Dimming1 services to set a dim level also uses the LoadLevelLast variable. So whenever an attempt to just turn a device on it will instead set the dim level to the value in LoadLevelLast. I suppose this is how a regular dimmer switch works - when you turn it on it will just be illuminated to the last dimmer setting. If you really want to override this behavior you’ll need to set LoadLevelLast to 100 whenever you’re setting the device to anything but Off.

Made a brief test, but not working…

Found another way, create a Hue scene" and run it when switching on in a scene… Seems to be working OK…

Best Home Automation shopping experience. Shop at getvera!

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules