Hello there, im new to the community
I want to build a switch that, when toggled turns off after 2 seconds. The switch is connected to a Smart-Plug with sonoff-tasmota flashed and addressed over MQTT. For this reason I installed the Expire-Binding.
Switch Licht_1 "Licht 1" { mqtt=">[mosquitto:cmnd/Licht1/POWER:command:ON:1]", expire="2s,command=OFF"}
log:
12:14:41.391 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Licht_1' received command ON
12:14:41.393 [INFO ] [smarthome.event.ItemStateChangedEvent] - Licht_1 changed from NULL to ON
12:14:43.799 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Licht_1' received command OFF
12:14:43.801 [INFO ] [smarthome.event.ItemStateChangedEvent] - Licht_1 changed from ON to OFF
In Basic UI the switch turns ON and OFF after 2 sek but the Smart-Plug only turns ON but doesnt turn OFF. A normal switch is fully working with these MQTT commands.
How can I make this work?
Grettings