Hi manu74!
I did it, but nothing happen.
my events.log
2017-03-31 11:31:02.500 [ItemCommandEvent ] - Item 'light2' received command ON
2017-03-31 11:31:02.512 [ItemStateChangedEvent ] - light2 changed from OFF to ON
2017-03-31 11:31:14.712 [ItemCommandEvent ] - Item 'light2' received command OFF
2017-03-31 11:31:14.725 [ItemStateChangedEvent ] - light2 changed from ON to OFF
2017-03-31 11:31:52.546 [ItemCommandEvent ] - Item 'light1' received command ON
2017-03-31 11:31:52.559 [ItemStateChangedEvent ] - light1 changed from OFF to ON
2017-03-31 11:31:55.452 [ItemCommandEvent ] - Item 'light2' received command ON
2017-03-31 11:31:55.464 [ItemStateChangedEvent ] - light2 changed from OFF to ON
2017-03-31 11:32:00.727 [ItemCommandEvent ] - Item 'light2' received command OFF
2017-03-31 11:32:00.739 [ItemStateChangedEvent ] - light2 changed from ON to OFF
2017-03-31 11:32:02.376 [ItemCommandEvent ] - Item 'light1' received command OFF
2017-03-31 11:32:02.392 [ItemStateChangedEvent ] - light1 changed from ON to OFF
2017-03-31 11:33:15.843 [ItemCommandEvent ] - Item 'light2' received command ON
2017-03-31 11:33:15.869 [ItemStateChangedEvent ] - light2 changed from OFF to ON
2017-03-31 11:33:19.484 [ItemCommandEvent ] - Item 'light1' received command ON
2017-03-31 11:33:19.497 [ItemStateChangedEvent ] - light1 changed from OFF to ON
my openhab.log
2017-03-31 11:31:00.148 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename `_default.sitemap` does not match the name `home` of the sitemap - please fix this as you might see unexpected behavior otherwise.
2017-03-31 11:31:00.747 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename `_default.sitemap` does not match the name `home` of the sitemap - please fix this as you might see unexpected behavior otherwise.
2017-03-31 11:31:46.443 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'sonoff.items'
2017-03-31 11:31:46.479 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2017-03-31 11:31:46.481 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2017-03-31 11:31:46.484 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2017-03-31 11:31:46.487 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type MAP
2017-03-31 11:31:46.490 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2017-03-31 11:31:46.504 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'sonoff.items'
2017-03-31 11:31:46.533 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2017-03-31 11:31:46.535 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2017-03-31 11:31:46.537 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2017-03-31 11:31:46.539 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type MAP
2017-03-31 11:31:46.541 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2017-03-31 11:31:49.936 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename `_default.sitemap` does not match the name `home` of the sitemap - please fix this as you might see unexpected behavior otherwise.
2017-03-31 11:31:50.471 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename `_default.sitemap` does not match the name `home` of the sitemap - please fix this as you might see unexpected behavior otherwise.
2017-03-31 11:33:10.848 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename `_default.sitemap` does not match the name `home` of the sitemap - please fix this as you might see unexpected behavior otherwise.
2017-03-31 11:33:11.327 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename `_default.sitemap` does not match the name `home` of the sitemap - please fix this as you might see unexpected behavior otherwise.
2017-03-31 11:33:13.122 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename `_default.sitemap` does not match the name `home` of the sitemap - please fix this as you might see unexpected behavior otherwise.
2017-03-31 11:33:13.601 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename `_default.sitemap` does not match the name `home` of the sitemap - please fix this as you might see unexpected behavior otherwise.
my mosquitto.log
1490944273: New connection from 192.168.0.50 on port 1883.
1490944273: New client connected from 192.168.0.50 as DVES_96F37E (c1, k15, u'DVES_USER').
1490945033: Client DVES_96F37E has exceeded timeout, disconnecting.
1490945033: Socket error on client DVES_96F37E, disconnecting.
1490945034: New connection from 192.168.0.50 on port 1883.
1490945034: New client connected from 192.168.0.50 as DVES_96F37E (c1, k15, u'DVES_USER').
1490945106: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1490945904: Client DVES_96F37E has exceeded timeout, disconnecting.
1490945904: Socket error on client DVES_96F37E, disconnecting.
1490945906: New connection from 192.168.0.50 on port 1883.
1490945921: New client connected from 192.168.0.50 as DVES_96F37E (c1, k15, u'DVES_USER').
1490945949: Client DVES_96F37E has exceeded timeout, disconnecting.
1490945949: Socket error on client DVES_96F37E, disconnecting.
1490945961: New connection from 192.168.0.50 on port 1883.
1490945961: New client connected from 192.168.0.50 as DVES_96F37E (c1, k15, u'DVES_USER').
my sonoff swich (sonoff_1) log:
11:25:01 MQTT: tele/sonoff_1/STATE = {"Time":"2017-03-31T11:25:01", "Uptime":3, "Vcc":3.152, "POWER":"OFF", "Wifi":{"AP":1, "SSID":"Sziszi WIFI", "RSSI":68}}
11:30:03 MQTT: tele/sonoff_1/STATE = {"Time":"2017-03-31T11:30:03", "Uptime":3, "Vcc":3.153, "POWER":"OFF", "Wifi":{"AP":1, "SSID":"Sziszi WIFI", "RSSI":68}}
11:35:03 MQTT: tele/sonoff_1/STATE = {"Time":"2017-03-31T11:35:03", "Uptime":3, "Vcc":3.154, "POWER":"OFF", "Wifi":{"AP":1, "SSID":"Sziszi WIFI", "RSSI":68}}
11:40:03 MQTT: tele/sonoff_1/STATE = {"Time":"2017-03-31T11:40:03", "Uptime":3, "Vcc":3.153, "POWER":"OFF", "Wifi":{"AP":1, "SSID":"Sziszi WIFI", "RSSI":68}}