Android App doesnt update Icon states after updating to OH2.3

Hi All,

The android app doesnt appear to update the dynamic icon for my garage.This used to work but has broken since updating to the 2.3 release.

I have 3 items, the Contact item shows closed, but the switches show open.

The Beta and Normal release verions of the Android App have the same issue.

Thoughts?

Hi Kris, I was thinking about you are your gate yesterday.
I am quite stumped as to why it doesn’t work.

Can you remind me and post the Gate Status item and sitemap

Also, as the icons for “Fully” and “partial” are working, do you really need gate status anymore?

Hi Vincent just on the way home. I’ll post them when I return.

It would be nice to remove the gate status when the other items update their dynamic icon ! Definitely :slight_smile:

Sitemap

}
Frame label="Garage & Gate" {
    //comment
    Switch item=GateFullyProxy mappings=[ON="Open", ON="Close"]
    Switch item=GatePartialProxy mappings=[ON="Open", ON="Close"]
    Text   item=Gate
}

Items

Switch GatePartialProxy "Partial" <door> { autoupdate="false" }
Switch GateFully "Fully" <door> { mqtt=">[broker:cmnd/gate/POWER1:command:*:default], <broker:stat/gate/POWER1:state:default]", autoupdate="false" }

Switch GatePartial "Partial" <door> { mqtt=">[broker:cmnd/gate/POWER2:command:*:default], <broker:stat/gate/POWER2:state:default]", autoupdate="false" }

Contact Gate "Gate Status" <door> { mqtt="<[broker:cmnd/gate_switch/POWER4:st

Rules

rule "GateFullyProxy"
when
    Item GateFullyProxy received command
then
    logInfo("TEST","TEST1")
    GateFully.sendCommand(receivedCommand)
    logInfo("TEST","TEST2")
end

rule "GatePartialProxy"
when
    Item GatePartialProxy received command
then
    GatePartial.sendCommand(receivedCommand)
end

rule "Gate changed"
when
    Item Gate changed
then
    val gateState = Gate.state
    if (gateState == OPEN) {
        GateFullyProxy.postUpdate(ON)
        GatePartialProxy.postUpdate(ON)
    } else {
        GateFullyProxy.postUpdate(OFF)
        GatePartialProxy.postUpdate(OFF)
    }
end

I thought they did

Do you have door_xxx icons in your icons/classic folder?

Yes I do

door.svg, door_on.svg, door_off.svg, door_open.svg and door_closed.svg?

No, as per your previous messages only door.svg, door-on.svg & door-off.svg

Try removing door.svg, this one in included in the icon package

Ive made an error :smiley:
The icons are not ‘door’ they are gate! lol

Can I just update the item file with instead of

Same issue

kris@OpenHAB:/etc/openhab2/icons/classic$ ls
door-off.svg door-on.svg door.svg microphone.svg usage.svg video.svg
kris@OpenHAB:/etc/openhab2/icons/classic$

I hope, I have understand you logik.
I checked you code with BasicUI and have the same problems, so it’s generally.
I think there are some reasons.

Switch  GateFully   "Fully[%s]"       <door> { mqtt=">[broker:cmnd/gate/POWER1:command:*:default], <broker:stat/gate/POWER1:state:default]" }
Switch  GatePartial "Partial[%s]"     <door> { mqtt=">[broker:cmnd/gate/POWER2:command:*:default], <broker:stat/gate/POWER2:state:default]" }
Contact Gate        "Gate Status[%s]" <door> { mqtt="<[broker:cmnd/gate_switch/POWER4:st...
    Switch  item=GateFully   mappings=[ON="Open", OFF="Closed"]
    Switch  item=GatePartial mappings=[ON="Open", OFF="Closed"]
    Default item=Gate
rule "Gate changed"
when
    Item Gate changed
then
    if (Gate.state == OPEN) {
        GateFully.sendCommand(ON)
        GatePartial.sendCommand(ON)
    } else {
        GateFully.sendCommand(OFF)
        GatePartial.sendCommand(OFF)
    }
end

Thats all you need.

@hr3

That will not work, The GateFully only take an ON command to open of closed the gate. It’s like a pulse item.

We are using proxy items to reflect the state of the gate.

OK

copy rename door.svg to gate.svg
copy door-on.svg to gate-open.svg
copy door-off.svg to gate-close.svg

change the gate item to:

Contact Gate "Gate Status" <gate> ...

OK, i need to find some better icons firstly. These arent very good :confused:

Ok, let me know

1 Like

Will do. Squid Ink pack doesnt really have anything