Author Topic: LED Strip issues with latest firmware (7.0.21)  (Read 219 times)

Offline supsen

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +1/-0
LED Strip issues with latest firmware (7.0.21)
« on: June 25, 2017, 04:11:51 pm »
Hi all,

I'm not sure if I am the only once experiencing this issue, but it is happening on 2 Vera Edge units (1 in the US, 1 in Europe).

On 1 Vera Edge (US), I am running the Milight RGBW plugin for my LED strip lighting. Everything works perfectly well and normal under firmware 7.0.20. As soon as I upgrade to 7.0.21, Vera cannot control the LEDs whatsoever. I manually downgraded back to 7.0.20 and they work again.

On the other Vera Edge (EU), I am running the MagicHome plugin for my LED strips. Same exact problem as above.

Since I am not running the same plugin on both, I having a feeling that something must have changed drastically in the new firmware.

Is it just me?  :-\

Offline Juppers

  • Jr. Member
  • **
  • Posts: 70
  • Karma: +2/-1
Re: LED Strip issues with latest firmware (7.0.21)
« Reply #1 on: June 25, 2017, 06:00:21 pm »
You are not alone. I use the MagicHome plugin as well and can no longer turn on the LED lights. After they are on, every other function works though.

Offline jkp

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: LED Strip issues with latest firmware (7.0.21)
« Reply #2 on: July 02, 2017, 12:44:09 pm »
One more user experiencing the same issue.

Maybe someone could help with this information.

Using test Luup code:
-- turn on
luup.call_action("urn:upnp-org:serviceId:SwitchPower1","SetTarget",{ newTargetValue=1},21)
-- turn off
luup.call_action("urn:upnp-org:serviceId:SwitchPower1","SetTarget",{ newTargetValue=0},21)

In the log file it looks like this first line 'ConfirmGlobalActionRules' is replacing the on commands with dim commands.  There is no 'Target' set to '1'.  The off log file below has the Target set to '0'.

35   07/02/17 13:46:48.785   JobHandler_LuaUPnP::ConfirmGlobalActionRules start <0x758df520>
02   07/02/17 13:46:48.786   JobHandler_LuaUPnP::ConfirmGlobalActionRules replaced binary on with dim 100 <0x758df520>
06   07/02/17 13:46:48.790   Device_Variable::m_szValue_set device: 21 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelTarget was: 100 now: 100 #hooks: 0 upnp: 0 skip: 0 v:0xad7ce8/NONE duplicate:1 <0x778f9000>
06   07/02/17 13:46:48.790   Device_Variable::m_szValue_set device: 21 service: urn:ceefin-mcvforum-com:serviceId:MagicHomeRGBW1 variable: RGBW_DIM was: 100 now: 100 #hooks: 0 upnp: 0 skip: 0 v:0xb50b90/NONE duplicate:1 <0x778f9000>
06   07/02/17 13:46:48.846   Device_Variable::m_szValue_set device: 21 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelStatus was: 100 now: 100 #hooks: 2 upnp: 0 skip: 0 v:0xad7d50/NONE duplicate:1 <0x778f9000>
06   07/02/17 13:46:48.847   Device_Variable::m_szValue_set device: 21 service: urn:ceefin-mcvforum-com:serviceId:MagicHomeRGBW1 variable: RGBW_DIM was: 100 now: 100 #hooks: 0 upnp: 0 skip: 0 v:0xb50b90/NONE duplicate:1 <0x778f9000>
06   07/02/17 13:46:48.848   Device_Variable::m_szValue_set device: 21 service: urn:ceefin-mcvforum-com:serviceId:MagicHomeRGBW1 variable: Mode was: 97 now: 97 #hooks: 0 upnp: 0 skip: 0 v:0xb4b510/NONE duplicate:1 <0x778f9000>
06   07/02/17 13:46:48.849   Device_Variable::m_szValue_set device: 21 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 1 now: 1 #hooks: 3 upnp: 0 skip: 0 v:0xad5878/NONE duplicate:1 <0x778f9000>
06   07/02/17 13:46:48.849   Device_Variable::m_szValue_set device: 21 service: urn:ceefin-mcvforum-com:serviceId:MagicHomeRGBW1 variable: IconState was: 100 now: 100 #hooks: 0 upnp: 0 skip: 0 v:0xb50cb8/NONE duplicate:1 <0x778f9000>
04   07/02/17 13:46:48.919   <Job ID="93" Name="" Device="21" Created="2017-07-02 13:46:48" Started="2017-07-02 13:46:48" Completed="2017-07-02 13:46:48" Duration="0.121108000" Runtime="0.129158000" Status="Successful" LastNote=""/> <0x778f9000>


-- Turn off log file
35   07/02/17 13:47:54.904   JobHandler_LuaUPnP::ConfirmGlobalActionRules start <0x746df520>
06   07/02/17 13:47:54.908   Device_Variable::m_szValue_set device: 21 service: urn:upnp-org:serviceId:SwitchPower1 variable: Target was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xa58ae0/NONE duplicate:1 <0x778f9000>
06   07/02/17 13:47:54.909   Device_Variable::m_szValue_set device: 21 service: urn:ceefin-mcvforum-com:serviceId:MagicHomeRGBW1 variable: IconState was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xb50cb8/NONE duplicate:1 <0x778f9000>
06   07/02/17 13:47:54.912   Device_Variable::m_szValue_set device: 21 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 0 now: 0 #hooks: 3 upnp: 0 skip: 0 v:0xad5878/NONE duplicate:1 <0x778f9000>
04   07/02/17 13:47:54.968   <Job ID="97" Name="" Device="21" Created="2017-07-02 13:47:54" Started="2017-07-02 13:47:54" Completed="2017-07-02 13:47:54" Duration="0.62596000" Runtime="0.61321000" Status="Successful" LastNote=""/> <0x778f9000>
25   07/02/17 13:47:54.969   LuaInterface::CallFunction_Job device 21 job 97 set to status 4 seconds -1 proc -1 <0x778f9000>
12   07/02/17 13:47:55.995   luvd_get_info_data_request starting /data_request?id=lu_status&DataVersion=19025302&MinimumDelay=1000&Timeout=60&LoadTime=1499019025&rand=0.5401744873009919 pMem 0xedd000/15585280 diff: 4775936 <0x746df520>
« Last Edit: July 02, 2017, 03:04:33 pm by jkp »

Offline jkp

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: LED Strip issues with latest firmware (7.0.21)
« Reply #3 on: July 25, 2017, 04:37:50 pm »
If anyone else is in this predicament the code below might help.  I added this to a scene that turns the LED strip on.  Change 21 in "local ip = luup.attr_get("ip", 21)"  to your device ID.  This is a hard code to turn on the LEDs and it runs before any other trigger logic in the scene.

function sendMagicHomeCommand (onOff)
    socket = require("socket")
    local s = socket.tcp()

    local ip = luup.attr_get("ip", 21)
    local ipaddress, ipport
    ipaddress, ipport = string.match(ip,"(%d+%.%d+%.%d+%.%d+)%:?(%d*)")
   
    s:connect(ipaddress, ipport)
    local sendString = string.char(0x71) .. string.char(onOff) .. string.char(0x0f) .. string.char(0xA3)
    s:send(sendString)
   
    s:close()
end

sendMagicHomeCommand(0x23)