- Platform information:
- Hardware: Laptop MemTotal: 16270336 kB
- OS: Ubuntu 20.04
- Java Runtime Environment:
openjdk version “11.0.9.1” 2020-11-04 LTS
OpenJDK Runtime Environment Zulu11.43+55-CA (build 11.0.9.1+1-LTS)
OpenJDK 64-Bit Server VM Zulu11.43+55-CA (build 11.0.9.1+1-LTS, mixed mode) - openHAB version: openHAB 3.0.0
- Issue of the topic:
I’m able to turn on the sonoff-tasmota from OH3, but not able to turn it off.
The state on the channel also does not reflect the actual sonoff state (when refresh the page, it defaults to off always.
Toggling it manually from the tasmota page successfully triggers an event in OH3 event log:
==> events.log <==
2021-01-17 23:03:20.705 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘SonoffBasic01_ChSonoffBasic01’ changed from NULL to ON
2021-01-17 23:03:22.522 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘SonoffBasic01_ChSonoffBasic01’ changed from ON to OFF
2021-01-17 23:03:24.509 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘SonoffBasic01_ChSonoffBasic01’ changed from OFF to ON
2021-01-17 23:03:26.209 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘SonoffBasic01_ChSonoffBasic01’ changed from ON to OFF
When turning it on from OH3, the event log shows:
==> events.log <==
2021-01-17 23:04:09.166 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘SonoffBasic01_ChSonoffBasic01’ received command ON
2021-01-17 23:04:09.167 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘SonoffBasic01_ChSonoffBasic01’ predicted to become ON
2021-01-17 23:04:09.170 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘SonoffBasic01_ChSonoffBasic01’ changed from OFF to ON
But when turning it off from OH3, nothing is displayed in the event log.
- Please post configurations (if applicable):
UID: mqtt:topic:398e2a4556:efbbed260e
label: Sonoff Basic 01
thingTypeUID: mqtt:topic
configuration:
payloadNotAvailable: Offline
availabilityTopic: tele/tasmota-15845D/LWT
payloadAvailable: Online
bridgeUID: mqtt:broker:398e2a4556
channels:- id: ChSonoffBasic01
channelTypeUID: mqtt:switch
label: ChSonoffBasic01
description: “”
configuration:
commandTopic: cmnd/tasmota-15845D/POWER
stateTopic: stat/tasmota-15845D/POWER
off: OFF
on: ON
- id: ChSonoffBasic01
MQTT Explorer screenshot of stat:



