Im trying to do a switch witch will expire after 2 seconds and it
s not working.
This is my working switch :
Switch PowerReleu1 "Power Releu 1" <poweroutlet> [ "Switchable" ] {mqtt=">[broker:SmartHome/Power/Releu1:command:ON:Z3ON],>[broker:SmartHome/Power/Releu1:command:OFF:Z3OFF],<[broker:SmartHome/Power/Releu1/state:state:ON:Z3ON],<[broker:SmartHome/Power/Releu1/state:state:OFF:Z3OFF]", autoupdate="false"}
This is my expire switch (not working) :
Switch PowerReleu1 "Power Releu 1" <poweroutlet> [ "Switchable" ] {mqtt=">[broker:SmartHome/Power/Releu1:command:*:default]",expire="2s,command=OFF"}
can someone tell me what i`m doing rong pls.
TY
rossko57
(Rossko57)
June 3, 2019, 10:25am
2
expire is a binding that you have to install.
It’s a 1.x binding, but as you are using MQTT 1.x you must have already enabled legacy bindings.
Your working Item has Z3OFF for the MQTT and your non-working one doesn’t - do you think that might be important? Is there some reason that you didn’t just add the expire part to the end of your working Item binding config { } ?
problem solved,i din`t have installed expire bindings…
I did try every combination but did not worked ,expire whos not installed.
THX for the help.
opus
(Jürgen Baginski)
June 3, 2019, 11:08am
4
If your Problem is solved, please mark this thread as solved and do the same on your duplicate thread:
I need some help pls,i need a switch to expire after 2 sec .
This is my switch ,and it works :
`
Switch PowerReleu1 "Power Releu 1" <poweroutlet> [ "Switchable" ] {mqtt=">[broker:SmartHome/Power/Releu1:command:ON:Z3ON],>[broker:SmartHome/Power/Releu1:command:OFF:Z3OFF],<[broker:SmartHome/Power/Releu1/state:state:ON:Z3ON],<[broker:SmartHome/Power/Releu1/state:state:OFF:Z3OFF]", autoupdate="false"}
`
and this is my expire try
Switch PowerReleu1 "Power Releu 1" <poweroutlet> [ …