What do these errors mean and how to fix?

this may be from the reboots I do.

2017-08-28 22:42:27.414 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2017-08-28 22:42:27.416 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mosquitto'
2017-08-28 22:42:27.427 [ERROR] [org.apache.felix.configadmin        ] - Cannot use configuration org.openhab.mqtt for [org.openhab.core.scriptengine.action.ActionService, org.osgi.service.cm.ManagedService, id=335, bundle=216/mvn:org.openhab.action/org.openhab.action.mqtt/1.10.0]: No visibility to configuration bound to mvn:org.openhab.io/org.openhab.io.transport.mqtt/1.10.0
2017-08-28 22:42:27.432 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2017-08-28 22:42:27.434 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mosquitto'
2017-08-28 22:42:27.439 [ERROR] [org.apache.felix.configadmin        ] - Cannot use configuration org.openhab.mqtt for [org.openhab.core.scriptengine.action.ActionService, org.osgi.service.cm.ManagedService, id=335, bundle=216/mvn:org.openhab.action/org.openhab.action.mqtt/1.10.0]: No visibility to configuration bound to mvn:org.openhab.io/org.openhab.io.transport.mqtt/1.10.0

If I can fix this I think I’ll be good.

2017-08-28 22:51:49.023 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'mqtt' of item 'cord1' could not be parsed correctly.

with the item defined like this I get

  Switch cord1 "Cord-1" <poweroutlet> (Cords, Lights, Power)
     { mqtt=">[mosquitto:diana/cord1/cmnd:POWER:on], >[mosquitto:diana/cord1/cmnd:POWER:off]
             <[mosquitto:stat/diana/cord1/POWER:state:default]" }

i get this error

2017-08-28 23:03:38.510 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'mqtt' of item 'cord1' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: Configuration 'mosquitto:diana/cord1/cmnd:POWER:on' is not a valid outbound configuration: Configuration requires 5 parameters separated by ':'

If I change it to this

Switch cord1 "Cord-1" <poweroutlet> (Cords, Lights, Power)
     { mqtt=">[mosquitto:diana:cord1:cmnd:POWER:on], >[mosquitto:diana:cord1:cmnd:POWER:off],            <[mosquitto:stat:cord1:POWER:state:default]" }

I get the same error

2017-08-28 23:07:23.643 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'mqtt' of item 'cord1' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: Configuration 'mosquitto:diana:cord1:cmnd:POWER:on' is not a valid outbound configuration: Configuration requires 5 parameters separated by ':'

the following commands will toggle the light.

openhabian@DianaHAB:~$ mosquitto_pub -u openhabian -P Dxxxxxx -t diana/cord1/cmnd/POWER -m on
openhabian@DianaHAB:~$ mosquitto_pub -u openhabian -P Dxxxxxx -t diana/cord1/cmnd/POWER -m off

thanks for your help.

Try:

Switch		cord1		"Cord-1"		<poweroutlet>		(Cords, Lights, Power)
			{mqtt=">[mosquitto:diana/cord1/cmnd/POWER:command:*:default],
				   <[mosquitto:stat/diana/cord1/POWER:state:default]"}

For the outbound, you need to use: [<broker>:<topic>:<type>:<trigger>:<transformation>]
I am not sure about the topics… check your Sonoff settings

For this, try to re-install the mqtt.action addon to see if it helps

This

{mqtt=">[mosquitto:diana/cord1/cmnd/POWER:command:*:default],<[mosquitto:stat/diana/cord1/POWER:state:default]"}

gives me the same error

2017-08-28 23:51:52.703 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'mqtt' of item 'cord1' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: Configuration 'mosquitto/diana/cord1/cmnd/POWER:command:*:default' is not a valid outbound configuration: Configuration requires 5 parameters separated by ':'

So what does openhab consider parameters?

some stale entry in your system appears to be wrong (or you did a typo when copy/pasting the item config :slight_smile:)

there is a missing : after the broker name

restart OH2 to see if this goes away

check in OH2 console if you have multiple cord1 items

the sonoff log

01:38:54 MQTT: Connected
01:38:55 MQTT: diana/cord1/LWT = Online (retained)
01:38:55 MQTT: diana/cord1/cmnd/POWER = 
01:38:55 UPnP: Multicast (re)joined
01:39:50 MQTT: diana/cord1/STATE = {"Time":"1970-01-02T01:39:50", "Uptime":26, "Vcc":3.250, "POWER":"OFF", "Wifi":{"AP":1, "SSID":"Travalon", "RSSI":100, "APMac":"30:5A:3A:A0:4A:18"}}
01:44:50 MQTT: diana/cord1/STATE = {"Time":"1970-01-02T01:44:50", "Uptime":26, "Vcc":3.249, "POWER":"OFF", "Wifi":{"AP":1, "SSID":"Travalon", "RSSI":100, "APMac":"30:5A:3A:A0:4A:18"}}
01:49:50 MQTT: diana/cord1/STATE = {"Time":"1970-01-02T01:49:50", "Uptime":26, "Vcc":3.251, "POWER":"OFF", "Wifi":{"AP":1, "SSID":"Travalon", "RSSI":100, "APMac":"30:5A:3A:A0:4A:18"}}
01:50:46 MQTT: diana/cord1/RESULT = {"POWER":"ON"}
01:50:46 MQTT: diana/cord1/POWER = ON
01:50:55 MQTT: diana/cord1/RESULT = {"POWER":"OFF"}
01:50:55 MQTT: diana/cord1/POWER = OFF
01:54:50 MQTT: diana/cord1/STATE = {"Time":"1970-01-02T01:54:50", "Uptime":26, "Vcc":3.250, "POWER":"OFF", "Wifi":{"AP":1, "SSID":"Travalon", "RSSI":100, "APMac":"30:5A:3A:A0:4A:18"}}
01:59:50 MQTT: diana/cord1/STATE = {"Time":"1970-01-02T01:59:50", "Uptime":26, "Vcc":3.250, "POWER":"OFF", "Wifi":{"AP":1, "SSID":"Travalon", "RSSI":100, "APMac":"30:5A:3A:A0:4A:18"}}
02:02:00 MQTT: diana/cord1/UPTIME = {"Time":"1970-01-02T02:02:00", "Uptime":27}

this is a fresh install. the Hurricane killed my other one. I used everything you @Dim helped me with last time.

2017-08-28 23:51:52.703 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'mqtt' of item 'cord1' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: Configuration 'mosquitto/diana/cord1/cmnd/POWER:command:*:default' is not a valid outbound configuration: Configuration requires 5 parameters separated by ':'

no typo

OH2 console?

http://docs.openhab.org/administration/console.html

items list |grep -i cord1

got to look for the thread to remove the old configs.

instead of / after the broker name, it should be :
mosquitto:diana…

5 config parameters:
[<broker>:<topic>:<type>:<trigger>:<transformation>]
<broker> = mosquitto
<topic> = diana/cord1/cmnd/POWER (no need to use / as first character
<type> = command
<trigger> = * (means every command will trigger this)
<transformation> = default (means that there will be no “translation” of the command)

my bad
fixed it and reloaded

1 Like

this is the most progress I’ve made so far.

openhabian@DianaHAB:~$ mosquitto_pub -u openhabian -P Dxxxxxx -t diana/cord1/cmnd/POWER -m on
openhabian@DianaHAB:~$ mosquitto_pub -u openhabian -P Dxxxxxx -t diana/cord1/cmnd/POWER -m off

and it works.

what I don’t understand is why you are using a different logic for your command and status topics:

command: diana/cord1/cmnd/POWER (order: name/item/type/POWER)
status: stat/diana/cord1/POWER (order: type/name/item/POWER)

maybe this is how Sonoff works… not sure cause I don’t have one

I would use the same order (if possible) to avoid confusion in my topics (both inbound and outbound)

name/item/type

example: diana/cord1/cmnd/POWER for commands and diana/cord1/stat/POWER for status
I need to read the Sonoff stuff to be sure :slight_smile:

so, clearly, your command topic is: diana/cord1/cmnd/POWER

so in your item config, you should use:

... mqtt=">[mosquitto:diana/cord1/cmnd/POWER:command:*:default] ...

for the outbound part

Tasmota Wiki

Sonoff responds to the following MQTT commands using MQTT Topic for cmnd/sonoff/<command> and MQTT Message/Payload for <parameter>:

The relay can be controlled with cmnd/sonoff/power on, cmnd/sonoff/power off or cmnd/sonoff/power toggle. Sonoff will send a MQTT status message like stat/sonoff/POWER ON.

where as his “sonoff” is his topic.
So my topic is cord1

forget the wiki defaults :slight_smile:
I believe that you can customize the topics in your Sonoff device
did you change the defaults by any chance on the Sonoff? (I would)

changes

Sonoff Basic Module

Cord1

 MQTT parameters 

Host (domus1)

192.168.1.200


Port (1883)

1883


Client Id (DVES_970D9F)

Cord1


User (DVES_USER)

openhabian


Password

•••••••••


Topic = %topic% (sonoff)

cord1

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

diana/cord1

Save

looking at the example from the master thread:

try to use:

Switch		cord1		"Cord-1"		<poweroutlet>		(Cords, Lights, Power)
			{mqtt=">[mosquitto:cmnd/diana/cord1/power:command:*:default],
				   <[mosquitto:stat/diana/cord1/power:state:default]"}

topic structure:

for outbound commands: cmnd/%prefix%/%topic%/power
for status reports: stat/%prefix%/%topic%/power

just switched it to that

making progress I think. rebooting.

1 Like

not sure if the last part of the topic should be power (with small letters) or POWER with capital letters…
try both :stuck_out_tongue: