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?
vzorglub
(Vincent Regaud)
June 20, 2018, 7:01am
2
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
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
vzorglub
(Vincent Regaud)
June 20, 2018, 8:21am
6
I thought they did
Do you have door_xxx icons in your icons/classic folder?
vzorglub
(Vincent Regaud)
June 20, 2018, 8:31am
8
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
vzorglub
(Vincent Regaud)
June 20, 2018, 8:43am
10
Try removing door.svg, this one in included in the icon package
Ive made an error
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$
hr3
(Harry)
June 20, 2018, 9:00am
13
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.
vzorglub
(Vincent Regaud)
June 20, 2018, 9:04am
14
@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.
vzorglub
(Vincent Regaud)
June 20, 2018, 9:15am
15
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
Will do. Squid Ink pack doesnt really have anything