classic UI, widget order inverse

77 views
Skip to first unread message

Karel Goderis

unread,
Jul 29, 2015, 6:36:01 AM7/29/15
to open...@googlegroups.com
Just something I noticed on one of the latest builds: the order of the buttons for switches (when using “mappings” in the sitemap) seems to inversed in the classic UI

e.g.

It first displays (left to right) “OFF”, then “ON”, instead of “ON”, “OFF"
or 10, 9, 8 …. instead of 1,2,3,4,…

the iOS app it is still ok

Karel


Karel Goderis

unread,
Jul 29, 2015, 9:36:40 AM7/29/15
to open...@googlegroups.com
in .sitemap:

Switch item=AtticValloxPower label="Power" mappings=[ON=ON, OFF=OFF ] icon="switch"
Switch item=AtticValloxPower label="Power" mappings=[OFF=OFF, ON=ON ] icon="switch” 

Is rendered as follows:


It seems that the order of the mappings definition is processed in the inverse order by the Classic UI?

Karel

Kai Kreuzer

unread,
Jul 29, 2015, 9:49:20 AM7/29/15
to open...@googlegroups.com
Is this only since recently or has it always been like this?

Am 29 Jul 2015 um 15:36 schrieb Karel Goderis <karel....@me.com>:

in .sitemap:

Switch item=AtticValloxPower label="Power" mappings=[ON=ON, OFF=OFF ] icon="switch"
Switch item=AtticValloxPower label="Power" mappings=[OFF=OFF, ON=ON ] icon="switch” 

Is rendered as follows:

<PastedGraphic-1.tiff>

It seems that the order of the mappings definition is processed in the inverse order by the Classic UI?

Karel

--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/3A0D096B-DD40-4C32-ACAF-AC27CED0B3A5%40me.com.
For more options, visit https://groups.google.com/d/optout.

Karel Goderis

unread,
Jul 29, 2015, 10:07:10 AM7/29/15
to open...@googlegroups.com
No, I noticed it only recently. I am currently running the 20150724 snapshot. 

Karel Goderis

unread,
Jul 29, 2015, 12:43:10 PM7/29/15
to open...@googlegroups.com
Oh, and btw, I just noticed that icons are displayed in the iOS app anymore with this build….

K
> --
> You received this message because you are subscribed to the Google Groups "openhab2" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
> To post to this group, send email to open...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/EA8ACD3C-EA18-47A7-B4C2-CE0996751213%40me.com.

Kai Kreuzer

unread,
Jul 31, 2015, 11:32:27 AM7/31/15
to open...@googlegroups.com
Good point!
This must have been broken since a while…
I now introduced a forwarding from the old /images to the new /icon url: https://github.com/openhab/openhab2/commit/a36281b1ec80afe38530dea6a1f34f7fe127f6bc
This at least makes the Android app show icons again, I hope the same is true for iOS!

Regards,
Kai
> To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/1729A100-A01B-4595-A9EE-12447E0D365F%40me.com.

Kai Kreuzer

unread,
Aug 7, 2015, 11:10:19 AM8/7/15
to openhab2
I have no clue why this could have possibly changed the order in the past, but I was able to reproduce it and provided a fix: https://github.com/eclipse/smarthome/pull/417

Regards,
Kai

Karel Goderis

unread,
Aug 8, 2015, 8:33:16 AM8/8/15
to open...@googlegroups.com
Yeah, I saw it. Strange indeed. 

btw, after running non-stop for about 2 weeks (20150724 snapshot with the ThreadManager) my operational runtime ran into an OutOfMemory while trying to create a native thread. I will try to investigate what is going on.

K

--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.

Kai Kreuzer

unread,
Aug 8, 2015, 4:29:23 PM8/8/15
to open...@googlegroups.com
Still running your LIFX binding…?

Karel Goderis

unread,
Aug 9, 2015, 5:49:05 AM8/9/15
to open...@googlegroups.com
No, no LIFX.

Just had a glimpse, after 24h, I now have 1700 live threads (up from 250 ish). The culprit seem to be a large amount of “Timer” threads still running. I *presume* (not sure) that these stem from cron-triggered Rules, or Timers that are created in Rules (I have a few of these)? btw, the ThingHandler pool is 10 threads, all having approx 20% usage.
 I am currently not able to hook up the debugger as I am currently accessing the runtime via VPN over a shaky wifi connection. 

K

Reply all
Reply to author
Forward
0 new messages