Closed PeterV989 closed 1 year ago
function MyQAChild:__init(device)
QuickAppChild.__init(self, device)
self:trace("MyQAChild:__init")
end
local stocks = {
"com.fibaro.binarySwitch",
"com.fibaro.binarySensor",
"com.fibaro.multilevelSwitch",
"com.fibaro.multilevelSensor",
"com.fibaro.temperatureSensor",
"com.fibaro.humiditySensor",
"com.fibaro.energyMeter",
"com.fibaro.powerMeter",
"com.fibaro.colorController"
}
function QuickApp:onInit()
for _,t in ipairs(stocks) do
self:createChildDevice({ name = "test_"..t:match("%.(%w+)$"), type = t }, MyQAChild)
end
end
In the new frontend I'm still working with the visual representation...
Yes, I'm hunting that bug and have some ideas... but it shows up less and less. It seems to have to do with the python http library repeatedly retrying when it can't connect eventually eating too much stack space. It seems to become an issue for me as I have a memory limited Lua vm. I think there is an option to limit the http request trials...
Added "Not implemented yet" text...
Yes, it's not my UI widget and I don't really know what the right hand mark is used for. I can remove the + completely, if we get tired of it. The real cue is the left hand arrow.
Thanks, fixed
I like the new "frontend". However, I discovered a few issues on my first look.
I still don't see the stock UI elements. I added the directive "--%%nostock=false" with no apparent effect.
I clicked across the Navbar elements. At some point the emulator died again with the stack overflow crash. I tried to recreate what I did to cause the stack overflow but got nothing.
There is nothing displayed on the frontend config page. Just the Navbar and your ©Copyleft footer.
On the QA UI elements, when I open the drop down, there is a nice "swirl" animation at the right side of the page, but the "+" turns into a "+" again. I like being able to expand more than one element at a time. Please don't "fix" that. 😁
One last annoyance. This is merely a typo but it offends my OCD-ness. In the About text, please fix "pyton3" to "python3". My eye always snaps to that everywhere I see it.
Hope this helps. You have probably addressed these already but I wanted to help.