Many thanks for your reply. I edited the L_Harmony.lua file. Could you please check if I inserted the code on the right line.
Bolded line is the added line:
local success = true
-- local ipa = luup.devices[HData.DEVICE].ip
local ipa = luup.attr_get("ip", HData.DEVICE)
local ipAddress = string.match(ipa, '^(%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?)')
local ipAddress = '192.168.0.100'
-- Some cases IP gets stuck in variable and no in attribute (openLuup or ALTUI bug)
if (ipAddress == nil) or (email == '') or (pwd == '') then
setStatusIcon(HData.Icon.ERROR)
SetBusy(false,false)
setluupfailure(1, HData.DEVICE)
return false, "Configure IP Address, email and password.", HData.Description
end
log("Using Harmony Hub: IP address " .. ipAddress, 3)
Harmony = HarmonyAPI(ipAddress, email, pwd, commTimeOut, wait)
if (Harmony == nil) then
success = false
else