-
Platform information:
- Hardware: Rasperry Pi3
- OS: Raspian Stretch
- Java Runtime Environment: 1.8.202
- openHAB version: 2.4
-
Issue of the topic: I am seeing “Command ‘0’ not supported by type ‘OnOffValue’: No enum constant org.eclipse.smarthome.core.library.types.OnOffType.0” Error when starting the OpenHab Service.
-
Please post configurations (if applicable):
- Items configuration related to the issue :
My Sample Item configuration Line is : Switch Hall_Light “Hall Light” (Lights, Hall) [ “Lighting” ] {mqtt=">[mosquitto:/home/switch1:command:ON:1],>[mosquitto:/home/switch1:command:OFF:0],<[mosquitto:/home/switch1:state:ON:1],<[mosquitto:/home/switch1:state:OFF:0],<[mosquitto:/home/switch1:state:MAP(onoff.map)]",autoupdate=“false”}
- Items configuration related to the issue :
-
If logs where generated please post these here using code fences:
2019-01-23 01:27:05.559 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘default.items’
2019-01-23 01:27:09.730 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘default.rules’ has errors, therefore ignoring it: [4,5]: mismatched input ‘’ expecting ‘end’
2019-01-23 01:27:09.979 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2019-01-23 01:27:10.614 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘default.sitemap’
2019-01-23 01:27:12.369 [WARN ] [lipse.smarthome.io.net.exec.ExecUtil] - Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program “arping” (in directory “.”): error=2, No such file or directory)
2019-01-23 01:27:12.488 [WARN ] [lipse.smarthome.io.net.exec.ExecUtil] - Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program “arping” (in directory “.”): error=2, No such file or directory)
2019-01-23 01:27:13.113 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.1.141:8080
2019-01-23 01:27:13.116 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.1.141:8443
2019-01-23 01:27:14.578 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2019-01-23 01:27:14.785 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2019-01-23 01:27:15.397 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘192.168.1.141’ with clientid paho871353120753 and file store ‘/var/lib/openhab2/mqtt/192.168.1.141’
2019-01-23 01:27:15.693 [WARN ] [eneric.internal.generic.ChannelState] - Command ‘0’ not supported by type ‘OnOffValue’: No enum constant org.eclipse.smarthome.core.library.types.OnOffType.0