I’m seeing a couple of warning in my log file, everything is working so I don’t know if I should worry about it or if a small change to my code will remove the warnings.
I have built a RF blaster using a ESP8266 that is connected to a Mosquito MQTT broker on the same windows machine that my openHAB runtime is on.
The way I have set it up is that the topic and payload work together to send all the RF Blaster.
eg.
myhome/blaster/rf/182/24 - 1381836
The ESP8266 then transmits 1381836 with a bitrate of 24 and a pulse length of 182.
The reason for doing it this way is so that when I add a new RF device I don;t have to hardcode any of the details into the ESP8266 I just add it into openHAB.
mqtt.things file
Bridge mqtt:broker:myUnsecureBroker [ host="192.168.2.3", secure=false ]
{
Thing mqtt:topic:mything {
Channels:
Type switch : rfSocket1 "RF Socket 1" [ stateTopic="myhome/blaster/rf/182/24", commandTopic="myhome/blaster/rf/182/24", on="1381683", off="1381692" ]
Type switch : rfSocket2 "RF Socket 2" [ stateTopic="myhome/blaster/rf/182/24", commandTopic="myhome/blaster/rf/182/24", on="1381827", off="1381836" ]
}
}
OpenHAB log file
2019-01-27 14:57:25.265 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2019-01-27 14:57:25.288 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Started Home Builder at /homebuilder
2019-01-27 14:57:26.787 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 906e3d21-e0b8-40e4-bc9d-c8ae0d1bc443, base URL = http://localhost:8085)
2019-01-27 14:57:30.114 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'amazon.items'
2019-01-27 14:57:30.223 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'astro.items'
2019-01-27 14:57:30.263 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'heating.items'
2019-01-27 14:57:30.353 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lights.items'
2019-01-27 14:57:30.447 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt.items'
2019-01-27 14:57:30.471 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'my.items'
2019-01-27 14:57:30.485 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'virtual.items'
2019-01-27 14:57:32.727 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2019-01-27 14:57:34.227 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'presence.rules'
2019-01-27 14:57:35.257 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.rules'
2019-01-27 14:57:35.803 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.sitemap'
2019-01-27 14:57:36.142 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'mqtt.things', using it anyway:
Provide a thing type ID and a thing ID in this format:
<thingTypeId> <thingId>
2019-01-27 14:57:36.147 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt.things'
2019-01-27 14:57:36.264 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'astro.things'
2019-01-27 14:57:36.891 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:home
2019-01-27 14:57:37.001 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:home
2019-01-27 14:57:38.148 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.2.3:8085
2019-01-27 14:57:38.151 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.2.3:8443
2019-01-27 14:57:38.459 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2019-01-27 14:57:39.192 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.2.3' with clientid paho234607406832035 and file store 'C:\OpenHAB2\userdata\mqtt\192.168.2.3'
2019-01-27 14:57:45.447 [WARN ] [eneric.internal.generic.ChannelState] - Command '1381683' not supported by type 'OnOffValue': No enum constant org.eclipse.smarthome.core.library.types.OnOffType.1381683
mqtt.items
Group RF433
Switch RFSocket1 "RF Socket 1" (RF433) {channel="mqtt:topic:mything:rfSocket1"}
Switch RFSocket2 "RF Socket 2" (RF433) {channel="mqtt:topic:mything:rfSocket2"}
I am unsure of what is causing the Validation error with my mqtt.items file.
I have added these two switched to a simple sitemap, when I change the switch the RF gets transmitted and the sockets turn on and off as they should.
If I turn on one of the sockets then turn it off using a test MQTT client the switch state updates on the sitemap.
As I said everything is working as I would have expected it, should I ignore those warning message in the log file or do I need to make changed to my configuration.
I’ve only been using openHab for a couple days so apologies if I am missing something of I have left out any info you would need.
Any help appreciated.
Thanks.