openhab / openhab-android

openHAB client for Android
https://play.google.com/store/apps/details?id=org.openhab.habdroid
Eclipse Public License 2.0
599 stars 315 forks source link

on/off is used for roller shutter icon state #3482

Closed mueller-ma closed 1 year ago

mueller-ma commented 1 year ago

I have a group of roller shutters: grafik

In Main UI I can see that the icon state is currently 0 as all roller shutters in this group are up. I expect that the icon rollershutter with state 0 is fetched. However it's fetched with state OFF. A corresponding icon doesn't exist in the classic iconset, so the stateless icon is shown.

Sitemap: Switch item=<item name>

Can you reproduce the issue in demo mode?

No, it's working in demo mode: Widget Overview => Demo Roller Shutter

So there's something I could change in the server config, but maybe we should add a special handling for roller shutter switches, so it works out of the box.

Environment data

Client

lolodomo commented 1 year ago

A group item has no state except if you define an aggregation function. So I don't understand your use case.

mueller-ma commented 1 year ago

The use case is that I can controll two blinds with one widget. I see that I didn't set an aggregation function. This could fix the issue, but I switched the icon set and the new set doesn't support states in the blinds widget.