ITEAD Sonoff switches and sockets - cheap ESP8266 Wifi+MQTT hardware

Tape them? :smiley:

3 Likes

If there is no better solution I’ll need to :smiley:

Ah, there is your problem :smile:
Honestly, I’m pretty sure there is no option to turn the LED off. Just tape them.

If your using Snoff-Tasmota there are some commands that control the LED.

I found the best way to execute was via web browser to the sonoff and the goto the consol.

Try the command

LedState OFF

Not sure if this will work when wifi drops.

OK this is killing me. I have spent weeks trying to get 1 sonoff basic controlled from HABpanel. I have started from scratch 3-4 times. I have tried OH2 and OH2.1 stable. all I can think of is my mqtt binding is not installed. When I install it through the paper UI the indicator just spins and spins (2 hours last time I tried) until I refresh the screen. Then it says installed.

I then do the following:

mqtt.cfg

mosquitto.url=tcp://localhost:1883
mosquitto.clientId=openhabian
#mosquitto.user=openhabian
#mosquitto.pwd=
mosquitto.qos=0
mosquitto.retain=true
mosquitto.async=false
mosquitto.allow_anonymous=true

lights.items

Switch cord1 "Cord" 
    { mqtt=">[mosquitto:cmnd/diana/cord1/POWER:command:*:default],
            <[mosquitto:stat/diana/cord1/POWER:state:default]" }
            
            Switch cord1_Reachable "Cord: reachable" (gReachable)
    { mqtt="<[mosquitto:tele/diana/cord1/LWT:state:MAP(reachable.map)]" }
    
    Number cord1_RSSI "Cord: RSSI [%d %%]" (gRSSI)
    { mqtt="<[broker:tele/diana/cord1/STATE:state:JSONPATH($.Wifi.RSSI)]" }
    
    String cord1_Verbose "Cord: MQTT return message [%s]"
    { mqtt="<[mosquitto:tele/diana/cord1/INFO1:state:default],
            <[mosquitto:stat/diana/cord1A/STATUS2:state:default],
            <[mosquitto:sta/dianat/cord1/RESULT:state:default]" }

mosquitto.conf

# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example

pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
connection_messages true

addons.cfg

# The installation package of this openHAB instance
# Note: This is only regarded at the VERY FIRST START of openHAB
# Note: If you want to specify your add-ons yourself through entries below, set the package to "minimal"
# as otherwise your definition might be in conflict with what the installation package defines.
#
# Optional. If not set, the dashboard (https://<yourserver>:8080/) will ask you to choose a package.
#
# Valid options:
#   - minimal  : Installation only with dashboard, but no UIs or other add-ons. Use this for custom setups.
#   - simple   : Setup for using openHAB purely through UIs - you need to expect MANY constraints in functionality!
#   - standard : Default setup for normal users, best for textual setup
#   - expert   : Setup for expert users, especially for people migrating from openHAB 1.x
#   - demo     : A demo setup which includes UIs, a few bindings, config files etc.
#
# See http://docs.openhab.org/configuration/packages.html for a detailed explanation of these packages.
#
package = standard

# Access Remote Add-on Repository
# Defines whether the remote openHAB add-on repository should be used for browsing and installing add-ons.
# This not only makes latest snapshots of add-ons available, it is also required for the installation of
# any legacy 1.x add-on. (default is true)
#
remote = true

# Include legacy 1.x bindings. If set to true, it also allows the installation of 1.x bindings for which there is 
# already a 2.x version available (requires remote repo access, see above). (default is false)
#
legacy = true
# A comma-separated list of bindings to install (e.g. "sonos,knx,zwave")
binding = mqtt
# A comma-separated list of UIs to install (e.g. "basic,paper")
#ui = 
# A comma-separated list of persistence services to install (e.g. "rrd4j,jpa")
#persistence = 
# A comma-separated list of actions to install (e.g. "mail,pushover")
#action = 
# A comma-separated list of transformation services to install (e.g. "map,jsonpath")
transformation = map,jsonpath 
# A comma-separated list of voice services to install (e.g. "marytts,freetts")
#voice = 
# A comma-separated list of miscellaneous services to install (e.g. "myopenhab")
misc = node-red

On my Sonoff basic

Sonoff Basic Module
cord1

 MQTT parameters 

Host (domus1)   openhabianpi
Port (1883)   1883
Client Id (DVES_970D9F)   cord1
User (DVES_USER) openhabian
Password •••••••••
Topic = %topic% (sonoff)  cord1
Full Topic (%prefix%/%topic%/)    diana/%cmnd%/%cord1%/

default.sitemap

sitemap default label="Diana" {
    Frame label="Date" {
        Text item=Date
    }
    Frame label="Demo" {
       Switch item=Lights icon="big_bulb" mappings=[OFF="All Off"]

any help is appreciated.

on your Sonoff config is an mistake I think
Host ( domus1 ) openhabianpi try the ip of the raspi

1 Like

You should try to subscribe with a mqtt tool to your broker and see with messages are coming from the SonOFF.

I use mqttspy for this. Just connected to the broker and subscribed to all messages. If you get messages from SonOFF half the way is done.

Next step is to manually send a message to the SonOFF. If this works your problem is OH based.

Based on you files i see the following mistakes:

mqtt.cfg:
Mosquitto.url is empty. Should be something like mosquitto.url=tcp://:1883
Maybe 127.0.0.1 is possibele to

Light items:
The verbose items has a mistake at the last line dianat instead of diana

Thomas

1 Like

Your full topic seems wrong to me. Maybe try %prefix%/diana/%topic%/ instead?

Thank you all for your observations.
Actually missed the Mosquitto url. It is and has been tcp://localhost:1883
I’ll fix the verbose line, use ip address, and change the full topic.
I have mqtt lens but am having trouble understanding how to use it.
How would I subscribe to all messages?

In either client you could subscribe to the topic #

1 Like

Hello @Travalon,
there are a few conflicts in your configuration, as the others already pointed out. I wonder if you’ve actually looked at your openhab.log and events.log ?? Something like this:

Should not be a problem at all because the log will state clearly if the binding was installed or not. In the same way you’ll see if there is a problem connecting to the broker or if item changes are received. There should never be the need to do something like “I have started from scratch 3-4 times.” if you know how to troubleshoot your issue…

What also rattles me: Why did you change so many settings? You shouldn’t need to edit addons.cfg, Why did you modify the Full Topic? If something doesn’t work would staying as default as possible not be the first step in finding the problem?

Last thing: Your sitemap doesn’t contain the item cord1… what are you expecting to see then?

1 Like

I was trying to make it conform to the plan in my head to keep things separate. Tried to follow the tasmota wiki for openhab2 integration.

I tried using the default settings on a newly flashed Sonoff only changing SSID and PW. Failed.

Good point. So many edits, dropped the ball on that one.
New simple sitemap

sitemap default label="Default" {
    Frame label="Lights" {
    Switch item=cord1 label="Cord"                   
        }                                            }

Have to look at the logs again.
Add-ons.cfg is gone. Messed with it to see if it made a difference. Thanks

OK looked at the logs and there’s a LOT crud in there from weeks of foolishness. Is it a bad idea to clear the out to make it easier to find the pertinent info?

I tried to get as simple as possible. Here’s my new configuration.

Sonoff Basic

MQTT parameters

Host : 192.168.1.200
Port: 1883
Client ID: (default) DVES_%60X
User: openhabian
Password:zxxxxxxxxx
Topic = %topic% (sonoff): sonoff
Full Topic (%prefix%/%topic%/):
%prefix%/%topic/


Mosquitto.conf

pid_file /var/run/lib/mosquitto/
log_dest /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
connection_messages true
allow_anonymous true


lights.items

Switch DVES_%60X "Trav's-lamp" { mqtt=">[mosquitto:cmnd/sonoff/POWER:command:*:default], <[mosquitto:stat/sonoff/POWER:state:default]" }


default.sitemap

sitemap default label="Default" {
      Frame label="Lights"  {
      Switch item=DVES_%60X label="Trav's lamp"
            }
}


mqtt.cfg

mosquitto.url=tcp://localhost:1883
mosquitto.clientId=openhabian
mosquitto.qos=1
mosquitto.retain=true
mosquitto.async=false

I uninstalled all bindings and actions. Only the transformations are left since I believe those were installed by default. Thinking of clearing out the log folder to see clearly what’s going on.Then reinstall the mqtt binding only.

Now you should first check if the mqtt messages are reaching the mqtt broker with mqttlens. Just use the known credentials and try to connect to the brocker. If that works try to subscribe to topic # wich means all topics

2 Likes

It is not my intension to be unrespectfull, but just to try to help.

I still have a lot of questions, about home automation, that is the reason why I read and look a lot of tutorials and over here about openHAB.

I think this video of Andreas Spiess about Sonoff Pow, could be handfull.
#99 Measuring Power, hacked Sonoff POW, MQTT, Adafruit.io and Home Automation

Subjets such as MQTT, IOT and much more interesting stuff, especially IOT app.

[https://www.youtube.com/watch?v=hv_FpBqWFrg]
#99 Measuring Power, hacked Sonoff POW, MQTT, Adafruit.io and Home Automation
4:49 / 12:31
IOT appstore
[https://www.youtube.com/watch?v=UiAc3yYBsNU]
#78 First IOT Appstore: Remote Update of your ESP8266 from Webserver
[https://www.youtube.com/watch?v=va0MtvESVCk]
#105 Free Download of IOT Apps: Public Launch
[https://www.youtube.com/watch?v=j-Btx_TVvJg]
#109 How to write your first IOTapp for the ESP8266

1 Like

Ooops… I changed my mosquitto.conf and deleted anything that had to do with persistence. I also cleared out my openhab.log and events.log to try and see what was going on. Now I can’t get the openhabianpi:8080 page to load wiith “openhabianpi refused to connect” message.

working now.

Ok. K.I.S.S. still isn’t working for me. In MQTTlens I connect to my Mosquitto broker and subscribe to the topic:
%cmnd%/%sonoff%/POWER

My lights.items

Switch DVES_60X "Trav's-lamp" { mqtt=">[mosquitto:%cmnd%/%sonoff%/POWER:command:*:default], <[mosquitto:%stat%/%sonoff%/POWER:state:default]" }

my default.sitemap

sitemap default label="Default" {
      Frame label="Lights"  {
      Switch item=DVES_60X label="Trav's lamp"
            }
}

My Sonoff Basic

Sonoff Basic Module

xmas

 MQTT parameters 

Host (domus1)

192.168.1.200


Port (1883)

1883


Client Id (DVES_970D9F)

DVES_60X


User (DVES_USER)

openhabian


Password

•••••••••


Topic = %topic% (sonoff)

sonoff


Full Topic (%prefix%/%topic%/)

%cmnd%/%sonoff%/POWER

However, when i toggle my widget in HABpanel, MQTTlense receives the command, my logs openhab.log and events.log show the command, but no illumination.
I’ll post logs next.

openhab.log

2017-08-08 19:20:11.410 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.1.200:8080
2017-08-08 19:20:11.493 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.1.200:8443
2017-08-08 19:20:38.225 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lights.items'
2017-08-08 19:20:53.282 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'
2017-08-08 19:21:00.699 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2017-08-08 19:21:00.710 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mosquitto'
2017-08-08 19:21:02.404 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-08-08 19:21:02.954 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2017-08-08 19:21:03.646 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-08-08 19:21:04.226 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-08-08 19:21:04.699 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2017-08-08 19:21:04.715 [DEBUG] [org.openhab.binding.mqtt            ] - BundleEvent STARTING - org.openhab.binding.mqtt
2017-08-08 19:21:04.815 [DEBUG] [.binding.mqtt.internal.MqttActivator] - MQTT binding has been started.
2017-08-08 19:21:04.821 [DEBUG] [org.openhab.binding.mqtt            ] - BundleEvent STARTED - org.openhab.binding.mqtt
2017-08-08 19:21:04.885 [DEBUG] [org.openhab.binding.mqtt            ] - ServiceEvent REGISTERED - {org.openhab.model.item.binding.BindingConfigReader, org.openhab.binding.mqtt.MqttBindingProvider}={component.name=org.openhab.binding.mqtt.genericbindingprovider, component.id=202, service.id=320, service.bundleid=237, service.scope=bundle} - org.openhab.binding.mqtt
2017-08-08 19:21:05.177 [DEBUG] [binding.mqtt.internal.MqttItemConfig] - Loaded MQTT config for item 'DVES_60X' : 1 subscribers, 1 publishers
2017-08-08 19:21:05.314 [DEBUG] [org.openhab.binding.mqtt            ] - ServiceEvent REGISTERED - {org.osgi.service.event.EventHandler, org.osgi.service.cm.ManagedService}={event.topics=openhab/*, service.pid=org.openhab.mqtt-eventbus, component.name=org.openhab.binding.mqtt.eventbus, component.id=203, service.id=322, service.bundleid=237, service.scope=bundle} - org.openhab.binding.mqtt
2017-08-08 19:21:05.350 [DEBUG] [ng.mqtt.internal.MqttEventBusBinding] - MQTT: Activating event bus binding.
2017-08-08 19:21:05.395 [DEBUG] [org.openhab.binding.mqtt            ] - ServiceEvent REGISTERED - {org.osgi.service.event.EventHandler}={event.topics=openhab/*, component.name=org.openhab.binding.mqtt.MqttItemBinding, component.id=204, service.id=323, service.bundleid=237, service.scope=bundle} - org.openhab.binding.mqtt
2017-08-08 19:21:23.229 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
2017-08-08 19:21:23.497 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2017-08-08 19:21:27.432 [ERROR] [org.eclipse.smarthome.io.rest.sse   ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.rest.sse
org.osgi.framework.BundleException: Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.Module.doStart(Module.java:571)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.Module.start(Module.java:439)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleContainer.java:955)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1336)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
Caused by: java.lang.LinkageError: ClassCastException: attempting to castbundleresource://21.fwk4960074/javax/ws/rs/ext/RuntimeDelegate.class to bundleresource://21.fwk4960074/javax/ws/rs/ext/RuntimeDelegate.class
	at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:146)
	at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
	at javax.ws.rs.core.MediaType.valueOf(MediaType.java:179)
	at org.glassfish.jersey.media.sse.SseFeature.<clinit>(SseFeature.java:62)
	at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:44)
	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_121]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	... 14 more
2017-08-08 19:21:28.311 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-08-08 19:21:28.654 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-08-08 19:21:28.770 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-weather, openhab-binding-mqtt': Error restarting bundles
2017-08-08 19:23:58.272 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to cmnd/sonoff/POWER
2017-08-08 19:23:59.205 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command OFF to cmnd/sonoff/POWER
2017-08-08 19:24:10.418 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to cmnd/sonoff/POWER
2017-08-08 19:26:23.907 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command OFF to cmnd/sonoff/POWER
2017-08-08 19:26:34.434 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to cmnd/sonoff/POWER
2017-08-08 19:27:19.396 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command OFF to cmnd/sonoff/POWER
2017-08-08 19:27:29.682 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to cmnd/sonoff/POWER
2017-08-08 19:27:39.454 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command OFF to cmnd/sonoff/POWER
2017-08-08 19:32:10.788 [DEBUG] [.internal.MqttGenericBindingProvider] - Removing message consumers for item DVES_60X
2017-08-08 19:32:10.800 [DEBUG] [.internal.MqttGenericBindingProvider] - Removing message publishers for item DVES_60X
2017-08-08 19:32:10.956 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lights.items'
2017-08-08 19:32:10.993 [DEBUG] [binding.mqtt.internal.MqttItemConfig] - Loaded MQTT config for item 'DVES_60X' : 1 subscribers, 1 publishers
2017-08-08 19:32:11.087 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'lights.items'
2017-08-08 19:32:11.107 [DEBUG] [.internal.MqttGenericBindingProvider] - Removing message consumers for item DVES_60X
2017-08-08 19:32:11.113 [DEBUG] [.internal.MqttGenericBindingProvider] - Removing message publishers for item DVES_60X
2017-08-08 19:32:11.117 [DEBUG] [binding.mqtt.internal.MqttItemConfig] - Loaded MQTT config for item 'DVES_60X' : 1 subscribers, 1 publishers
2017-08-08 19:32:31.356 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to %cmnd%/%sonoff%/POWER
2017-08-08 19:33:36.218 [DEBUG] [.internal.MqttGenericBindingProvider] - Removing message consumers for item DVES_60X
2017-08-08 19:33:36.227 [DEBUG] [.internal.MqttGenericBindingProvider] - Removing message publishers for item DVES_60X
2017-08-08 19:33:36.283 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lights.items'
2017-08-08 19:33:36.306 [DEBUG] [binding.mqtt.internal.MqttItemConfig] - Loaded MQTT config for item 'DVES_60X' : 1 subscribers, 1 publishers
2017-08-08 19:33:36.342 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'lights.items'
2017-08-08 19:33:36.361 [DEBUG] [.internal.MqttGenericBindingProvider] - Removing message consumers for item DVES_60X
2017-08-08 19:33:36.371 [DEBUG] [.internal.MqttGenericBindingProvider] - Removing message publishers for item DVES_60X
2017-08-08 19:33:36.376 [DEBUG] [binding.mqtt.internal.MqttItemConfig] - Loaded MQTT config for item 'DVES_60X' : 1 subscribers, 1 publishers
2017-08-08 19:33:55.562 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to %cmnd%/%sonoff%/POWER
2017-08-08 19:34:00.201 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command OFF to %cmnd%/%sonoff%/POWER
2017-08-08 19:34:44.256 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to %cmnd%/%sonoff%/POWER
2017-08-08 19:34:49.559 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command OFF to %cmnd%/%sonoff%/POWER
2017-08-08 19:44:45.571 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to %cmnd%/%sonoff%/POWER
2017-08-08 19:59:42.960 [ERROR] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to broker was lost
Connection lost (32109) - java.io.EOFException
	at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:146)[238:org.openhab.io.transport.mqtt:1.10.0]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: java.io.EOFException
	at java.io.DataInputStream.readByte(DataInputStream.java:267)[:1.8.0_121]
	at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:65)[238:org.openhab.io.transport.mqtt:1.10.0]
	at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:107)[238:org.openhab.io.transport.mqtt:1.10.0]
	... 1 more
2017-08-08 19:59:43.259 [ERROR] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'mosquitto' was lost: Connection lost : ReasonCode 32109 : Cause : null
2017-08-08 19:59:43.262 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restore connection to broker 'mosquitto'
2017-08-08 19:59:51.971 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2017-08-08 19:59:53.268 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mosquitto'
2017-08-08 20:00:02.558 [DEBUG] [org.openhab.binding.mqtt            ] - BundleEvent STOPPING - org.openhab.binding.mqtt
2017-08-08 20:00:02.576 [DEBUG] [org.openhab.binding.mqtt            ] - ServiceEvent UNREGISTERING - {org.osgi.service.event.EventHandler}={event.topics=openhab/*, component.name=org.openhab.binding.mqtt.MqttItemBinding, component.id=204, service.id=323, service.bundleid=237, service.scope=bundle} - org.openhab.binding.mqtt
2017-08-08 20:00:02.590 [DEBUG] [org.openhab.binding.mqtt            ] - ServiceEvent UNREGISTERING - {org.openhab.model.item.binding.BindingConfigReader, org.openhab.binding.mqtt.MqttBindingProvider}={component.name=org.openhab.binding.mqtt.genericbindingprovider, component.id=202, service.id=320, service.bundleid=237, service.scope=bundle} - org.openhab.binding.mqtt
2017-08-08 20:00:02.600 [DEBUG] [org.openhab.binding.mqtt            ] - ServiceEvent UNREGISTERING - {org.osgi.service.event.EventHandler, org.osgi.service.cm.ManagedService}={event.topics=openhab/*, service.pid=org.openhab.mqtt-eventbus, component.name=org.openhab.binding.mqtt.eventbus, component.id=203, service.id=322, service.bundleid=237, service.scope=bundle} - org.openhab.binding.mqtt
2017-08-08 20:00:02.614 [DEBUG] [.binding.mqtt.internal.MqttActivator] - MQTT binding has been stopped.
2017-08-08 20:00:02.618 [DEBUG] [org.openhab.binding.mqtt            ] - BundleEvent STOPPED - org.openhab.binding.mqtt
2017-08-08 20:00:02.629 [INFO ] [penhab.io.transport.mqtt.MqttService] - Stopping broker connection 'mosquitto'
2017-08-08 20:00:02.962 [INFO ] [assic.internal.servlet.WebAppServlet] - Stopped Classic UI
2017-08-08 20:00:03.138 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
2017-08-08 20:00:03.954 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2017-08-08 20:00:03.987 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2017-08-08 20:00:04.019 [INFO ] [.dashboard.internal.DashboardService] - Stopped dashboard
2017-08-08 20:01:06.210 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.1.200:8080
2017-08-08 20:01:06.233 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.1.200:8443
2017-08-08 20:01:28.477 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lights.items'
2017-08-08 20:01:42.350 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'
2017-08-08 20:01:48.037 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2017-08-08 20:01:48.048 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mosquitto'
2017-08-08 20:01:49.165 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-08-08 20:01:50.495 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2017-08-08 20:01:50.851 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-08-08 20:01:51.103 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-08-08 20:01:51.250 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2017-08-08 20:01:51.331 [DEBUG] [org.openhab.binding.mqtt            ] - BundleEvent STARTING - org.openhab.binding.mqtt
2017-08-08 20:01:51.338 [DEBUG] [.binding.mqtt.internal.MqttActivator] - MQTT binding has been started.
2017-08-08 20:01:51.342 [DEBUG] [org.openhab.binding.mqtt            ] - BundleEvent STARTED - org.openhab.binding.mqtt
2017-08-08 20:01:51.453 [DEBUG] [binding.mqtt.internal.MqttItemConfig] - Loaded MQTT config for item 'DVES_60X' : 1 subscribers, 1 publishers
2017-08-08 20:01:51.496 [DEBUG] [org.openhab.binding.mqtt            ] - ServiceEvent REGISTERED - {org.openhab.model.item.binding.BindingConfigReader, org.openhab.binding.mqtt.MqttBindingProvider}={component.name=org.openhab.binding.mqtt.genericbindingprovider, component.id=202, service.id=319, service.bundleid=237, service.scope=bundle} - org.openhab.binding.mqtt
2017-08-08 20:01:51.536 [DEBUG] [ng.mqtt.internal.MqttEventBusBinding] - MQTT: Activating event bus binding.
2017-08-08 20:01:51.549 [DEBUG] [org.openhab.binding.mqtt            ] - ServiceEvent REGISTERED - {org.osgi.service.event.EventHandler, org.osgi.service.cm.ManagedService}={event.topics=openhab/*, service.pid=org.openhab.mqtt-eventbus, component.name=org.openhab.binding.mqtt.eventbus, component.id=203, service.id=321, service.bundleid=237, service.scope=bundle} - org.openhab.binding.mqtt
2017-08-08 20:01:51.630 [DEBUG] [org.openhab.binding.mqtt            ] - ServiceEvent REGISTERED - {org.osgi.service.event.EventHandler}={event.topics=openhab/*, component.name=org.openhab.binding.mqtt.MqttItemBinding, component.id=204, service.id=322, service.bundleid=237, service.scope=bundle} - org.openhab.binding.mqtt
2017-08-08 20:02:09.095 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
2017-08-08 20:02:09.204 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2017-08-08 20:02:14.172 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-08-08 20:02:14.497 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-08-08 20:09:28.506 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to %cmnd%/%sonoff%/POWER
2017-08-08 20:09:38.510 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to %cmnd%/%sonoff%/POWER
2017-08-08 20:09:46.498 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to %cmnd%/%sonoff%/POWER
2017-08-08 20:09:57.778 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command OFF to %cmnd%/%sonoff%/POWER
2017-08-08 20:10:34.840 [DEBUG] [inding.mqtt.internal.MqttItemBinding] - Publishing command ON to %cmnd%/%sonoff%/POWER

events.log

2017-08-02 22:42:18.140 [ExtensionEvent            ] - Extension 'package-expert' has been installed.
2017-08-02 22:43:07.531 [ExtensionEvent            ] - Extension 'misc-restdocs' has been installed.
2017-08-02 22:43:07.540 [ExtensionEvent            ] - Extension 'transformation-javascript' has been installed.
2017-08-02 22:43:07.545 [ExtensionEvent            ] - Extension 'ui-habpanel' has been installed.
2017-08-02 22:43:07.556 [ExtensionEvent            ] - Extension 'transformation-regex' has been installed.
2017-08-02 22:43:07.560 [ExtensionEvent            ] - Extension 'transformation-jsonpath' has been installed.
2017-08-02 22:43:07.568 [ExtensionEvent            ] - Extension 'transformation-xpath' has been installed.
2017-08-02 22:43:07.571 [ExtensionEvent            ] - Extension 'ui-basic' has been installed.
2017-08-02 22:43:07.575 [ExtensionEvent            ] - Extension 'transformation-map' has been installed.
2017-08-02 22:43:07.580 [ExtensionEvent            ] - Extension 'ui-classic' has been installed.
2017-08-02 22:43:07.586 [ExtensionEvent            ] - Extension 'ui-habmin' has been installed.
2017-08-02 22:43:07.597 [ExtensionEvent            ] - Extension 'transformation-xslt' has been installed.
2017-08-02 22:43:07.602 [ExtensionEvent            ] - Extension 'transformation-exec' has been installed.
2017-08-02 22:43:07.609 [ExtensionEvent            ] - Extension 'ui-paper' has been installed.
2017-08-02 22:43:07.615 [ExtensionEvent            ] - Extension 'transformation-scale' has been installed.
2017-08-02 22:50:13.460 [ExtensionEvent            ] - Extension 'binding-mqtt1' has been installed.
2017-08-02 22:59:19.215 [ExtensionEvent            ] - Extension 'binding-ntp' has been installed.
2017-08-02 22:59:20.176 [InboxAddedEvent           ] - Discovery Result with UID 'ntp:ntp:local' has been added.
2017-08-02 23:05:59.267 [InboxRemovedEvent         ] - Discovery Result with UID 'ntp:ntp:local' has been removed.
2017-08-02 23:05:59.300 [ThingAddedEvent           ] - Thing 'ntp:ntp:local' has been added.
2017-08-02 23:05:59.356 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from UNINITIALIZED to INITIALIZING
2017-08-02 23:05:59.468 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from INITIALIZING to ONLINE
2017-08-02 23:17:35.641 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from ONLINE to UNINITIALIZED
2017-08-02 23:17:35.656 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-08-02 23:17:36.554 [ThingRemovedEvent         ] - Thing 'ntp:ntp:local' has been removed.
2017-08-02 23:18:21.941 [ThingAddedEvent           ] - Thing 'ntp:ntp:local' has been added.
2017-08-02 23:18:29.681 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from UNINITIALIZED to INITIALIZING
2017-08-02 23:18:29.816 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from INITIALIZING to ONLINE
2017-08-02 23:18:30.357 [ThingUpdatedEvent         ] - Thing 'ntp:ntp:local' has been updated.
2017-08-03 15:50:40.359 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from ONLINE to ONLINE (COMMUNICATION_ERROR): ntp:ntp:local couldn't establish network connection [host '0.pool.ntp.org'] -> returning current sytem time instead.
2017-08-03 16:21:30.389 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from ONLINE (COMMUNICATION_ERROR): ntp:ntp:local couldn't establish network connection [host '0.pool.ntp.org'] -> returning current sytem time instead. to ONLINE
2017-08-03 20:13:46.937 [ExtensionEvent            ] - Extension 'binding-mqtt1' has been uninstalled.
2017-08-03 20:15:28.819 [ExtensionEvent            ] - Extension 'package-standard' has been installed.
2017-08-03 20:15:38.936 [ExtensionEvent            ] - Extension 'package-expert' has been uninstalled.
2017-08-03 20:16:04.776 [ExtensionEvent            ] - Extension 'transformation-scale' has been uninstalled.
2017-08-03 20:16:18.381 [ExtensionEvent            ] - Extension 'transformation-xpath' has been uninstalled.
2017-08-03 20:16:30.487 [ExtensionEvent            ] - Extension 'transformation-javascript' has been uninstalled.
2017-08-03 20:16:44.405 [ExtensionEvent            ] - Extension 'misc-restdocs' has been uninstalled.
2017-08-03 20:16:53.672 [ExtensionEvent            ] - Extension 'transformation-xslt' has been uninstalled.
2017-08-03 20:17:00.991 [ExtensionEvent            ] - Extension 'transformation-exec' has been uninstalled.
2017-08-03 20:17:09.158 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from ONLINE to UNINITIALIZED
2017-08-03 20:17:09.177 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-08-03 20:17:09.239 [ExtensionEvent            ] - Extension 'binding-ntp' has been uninstalled.
2017-08-03 20:17:19.232 [ExtensionEvent            ] - Extension 'transformation-regex' has been uninstalled.
2017-08-03 20:56:33.238 [ExtensionEvent            ] - Extension 'binding-mqtt1' has been installed.
2017-08-03 21:02:35.771 [ItemCommandEvent          ] - Item 'Switch1' received command ON
2017-08-03 21:02:35.865 [ItemStateChangedEvent     ] - Switch1 changed from NULL to ON
2017-08-03 21:03:11.954 [ItemCommandEvent          ] - Item 'Switch1' received command OFF
2017-08-03 21:03:11.977 [ItemStateChangedEvent     ] - Switch1 changed from ON to OFF
2017-08-03 21:05:01.877 [ItemCommandEvent          ] - Item 'Switch1' received command ON
2017-08-03 21:05:01.907 [ItemStateChangedEvent     ] - Switch1 changed from OFF to ON
2017-08-03 21:05:04.042 [ItemCommandEvent          ] - Item 'Switch1' received command OFF
2017-08-03 21:05:04.060 [ItemStateChangedEvent     ] - Switch1 changed from ON to OFF
2017-08-03 21:05:39.350 [ItemCommandEvent          ] - Item 'Switch1' received command ON
2017-08-03 21:05:39.369 [ItemStateChangedEvent     ] - Switch1 changed from OFF to ON
2017-08-03 21:05:43.240 [ItemCommandEvent          ] - Item 'Switch1' received command OFF
2017-08-03 21:05:43.259 [ItemStateChangedEvent     ] - Switch1 changed from ON to OFF
2017-08-03 21:07:54.144 [ItemCommandEvent          ] - Item 'Switch1' received command ON
2017-08-03 21:07:54.162 [ItemStateChangedEvent     ] - Switch1 changed from OFF to ON
2017-08-03 21:07:55.588 [ItemCommandEvent          ] - Item 'Switch1' received command OFF
2017-08-03 21:07:55.604 [ItemStateChangedEvent     ] - Switch1 changed from ON to OFF
2017-08-03 21:11:20.477 [ThingRemovedEvent         ] - Thing 'ntp:ntp:local' has been removed.
2017-08-03 21:12:20.412 [ThingAddedEvent           ] - Thing 'ntp:ntp:local' has been added.
2017-08-03 21:12:26.971 [ItemStateChangedEvent     ] - Switch1 changed from NULL to OFF
2017-08-03 21:12:49.501 [ExtensionEvent            ] - Extension 'binding-mqtt1' has been uninstalled.
2017-08-03 21:13:37.642 [ThingRemovedEvent         ] - Thing 'ntp:ntp:local' has been removed.
2017-08-03 21:15:14.367 [ThingAddedEvent           ] - Thing 'ntp:ntp:local' has been added.
2017-08-03 21:16:29.217 [ItemCommandEvent          ] - Item 'Switch1' received command ON
2017-08-03 21:16:29.281 [ItemStateChangedEvent     ] - Switch1 changed from NULL to ON
2017-08-03 21:16:31.188 [ItemCommandEvent          ] - Item 'Switch1' received command ON
2017-08-03 21:17:16.411 [ItemCommandEvent          ] - Item 'Switch1' received command OFF
2017-08-03 21:17:16.427 [ItemStateChangedEvent     ] - Switch1 changed from ON to OFF
2017-08-03 21:17:19.297 [ItemCommandEvent          ] - Item 'Switch1' received command OFF
2017-08-03 21:17:23.053 [ItemCommandEvent          ] - Item 'Switch1' received command OFF
2017-08-03 21:17:35.944 [ItemCommandEvent          ] - Item 'Switch1' received command OFF
2017-08-03 21:29:22.263 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command ON
2017-08-03 21:29:22.279 [ItemStateChangedEvent     ] - LivingRoom_Light changed from NULL to ON
2017-08-03 21:30:04.509 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command ON
2017-08-03 21:30:07.031 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command ON
2017-08-03 21:30:09.083 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command ON
2017-08-03 21:30:31.753 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command ON
2017-08-03 21:30:39.847 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command ON
2017-08-03 21:32:33.041 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command OFF
2017-08-03 21:32:33.054 [ItemStateChangedEvent     ] - LivingRoom_Light changed from ON to OFF
2017-08-03 21:32:34.071 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command OFF
2017-08-03 21:32:34.293 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command OFF
2017-08-03 21:34:01.901 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command OFF
2017-08-03 21:34:02.467 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command OFF
2017-08-03 21:34:02.658 [ItemCommandEvent          ] - Item 'LivingRoom_Light' received command OFF
2017-08-03 22:24:29.490 [ThingRemovedEvent         ] - Thing 'ntp:ntp:local' has been removed.
2017-08-03 22:26:00.991 [ThingAddedEvent           ] - Thing 'ntp:ntp:local' has been added.
2017-08-04 20:34:20.149 [ThingRemovedEvent         ] - Thing 'ntp:ntp:local' has been removed.
2017-08-07 01:18:33.914 [ThingAddedEvent           ] - Thing 'ntp:ntp:local' has been added.
2017-08-08 19:20:55.370 [ItemChannelLinkAddedEvent ] - Link 'WeMoLightSwitch_Switch-wemo:lightswitch:cord:state' has been added.
2017-08-08 19:20:55.737 [ThingAddedEvent           ] - Thing 'ntp:ntp:local' has been added.
2017-08-08 19:20:55.752 [ThingAddedEvent           ] - Thing 'yahooweather:weather:7e4604ff' has been added.
2017-08-08 19:23:58.261 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 19:23:58.314 [ItemStateChangedEvent     ] - DVES_60X changed from NULL to ON
2017-08-08 19:23:59.201 [ItemCommandEvent          ] - Item 'DVES_60X' received command OFF
2017-08-08 19:23:59.215 [ItemStateChangedEvent     ] - DVES_60X changed from ON to OFF
2017-08-08 19:24:10.413 [ItemStateChangedEvent     ] - DVES_60X changed from OFF to ON
2017-08-08 19:24:10.416 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 19:26:23.888 [ItemCommandEvent          ] - Item 'DVES_60X' received command OFF
2017-08-08 19:26:23.912 [ItemStateChangedEvent     ] - DVES_60X changed from ON to OFF
2017-08-08 19:26:34.429 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 19:26:34.442 [ItemStateChangedEvent     ] - DVES_60X changed from OFF to ON
2017-08-08 19:27:19.389 [ItemCommandEvent          ] - Item 'DVES_60X' received command OFF
2017-08-08 19:27:19.398 [ItemStateChangedEvent     ] - DVES_60X changed from ON to OFF
2017-08-08 19:27:29.678 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 19:27:29.687 [ItemStateChangedEvent     ] - DVES_60X changed from OFF to ON
2017-08-08 19:27:39.449 [ItemCommandEvent          ] - Item 'DVES_60X' received command OFF
2017-08-08 19:27:39.464 [ItemStateChangedEvent     ] - DVES_60X changed from ON to OFF
2017-08-08 19:32:31.350 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 19:32:31.365 [ItemStateChangedEvent     ] - DVES_60X changed from NULL to ON
2017-08-08 19:33:55.546 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 19:33:55.554 [ItemStateChangedEvent     ] - DVES_60X changed from NULL to ON
2017-08-08 19:34:00.193 [ItemCommandEvent          ] - Item 'DVES_60X' received command OFF
2017-08-08 19:34:00.199 [ItemStateChangedEvent     ] - DVES_60X changed from ON to OFF
2017-08-08 19:34:44.250 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 19:34:44.267 [ItemStateChangedEvent     ] - DVES_60X changed from OFF to ON
2017-08-08 19:34:49.550 [ItemCommandEvent          ] - Item 'DVES_60X' received command OFF
2017-08-08 19:34:49.555 [ItemStateChangedEvent     ] - DVES_60X changed from ON to OFF
2017-08-08 19:44:45.566 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 19:44:45.591 [ItemStateChangedEvent     ] - DVES_60X changed from OFF to ON
2017-08-08 20:00:03.439 [temChannelLinkRemovedEvent] - Link 'WeMoLightSwitch_Switch => wemo:lightswitch:cord:state' has been removed.
2017-08-08 20:00:03.506 [ThingRemovedEvent         ] - Thing 'ntp:ntp:local' has been removed.
2017-08-08 20:00:03.520 [ThingRemovedEvent         ] - Thing 'yahooweather:weather:7e4604ff' has been removed.
2017-08-08 20:01:43.233 [ItemChannelLinkAddedEvent ] - Link 'WeMoLightSwitch_Switch-wemo:lightswitch:cord:state' has been added.
2017-08-08 20:01:43.605 [ThingAddedEvent           ] - Thing 'ntp:ntp:local' has been added.
2017-08-08 20:01:43.615 [ThingAddedEvent           ] - Thing 'yahooweather:weather:7e4604ff' has been added.
2017-08-08 20:09:28.476 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 20:09:28.499 [ItemStateChangedEvent     ] - DVES_60X changed from NULL to ON
2017-08-08 20:09:38.507 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 20:09:46.479 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 20:09:57.766 [ItemCommandEvent          ] - Item 'DVES_60X' received command OFF
2017-08-08 20:09:57.843 [ItemStateChangedEvent     ] - DVES_60X changed from ON to OFF
2017-08-08 20:10:34.832 [ItemCommandEvent          ] - Item 'DVES_60X' received command ON
2017-08-08 20:10:34.837 [ItemStateChangedEvent     ] - DVES_60X changed from OFF to ON

Are you sure about your mqtt topics?

Within your openhab.log at around time 19:25 you are publishing to “cmnd/sonoff/POWER” which looks ok if your “Topic” insideTasmota is “sonoff”.

At around 19:34 your log says “%cmnd”/%sonoff%/POWER" which seems not ok. The “%” is normally used for replacements within ESP8266 mqtt Topics. (E.g. Setting the name of your ESP node in one field Transfers this Name to the full Topic)

I think you should try the following:
Sonoff Basic:

  • Topic = sonoff
  • Full Topic = %prefix%/%topic%

This gives your sonoff Basic the name sonoff and uses the full Topics “cmnd/sonoff/POWER” or “stat/sonoff/POWER”. You don’t have to specify cmnd or stat or POWER expicitly in your Sonoff Configuration.

Within openhap you should use as topics “cmnd/sonoff/POWER” resp. “stat/sonoff/POWER” (without “%”)

Andreas

2 Likes