Enocean Binding: Textfile configuration not working, while same config working via PaperUI

latform information:

Hardware: x86/KVM-VM/8GB RAM

OS: Ubuntu18.04

Java Runtime Environment: java version “1.8.0_201”
Java™ SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot™ 64-Bit Server VM (build 25.201-b09, mixed mode)

openHAB version: 2.5.0.M2

Issue of the topic:
Text configuration of enocean binding is not working:
I started with a very simple enocean configuration:

  • USB300 bridge
  • Nodon Temperature/Humidity Sensor.

When I define the setup via PaperUI (Bridge discovery via Inbox, then adding manually the Nodon Sensor and the channels) I do recieve at least temperature and humidity values. I do not receive e.g. lastReceived or repeatcount.
The items are configured via .item file still - I just do the linking of the item to the thing/channel via PaperUI there.

However when I define the same sensor via .thing file the enocean binding seems to initialize correctly, I do see Enocean Bridge and sensor as well as channels in status “online” - also I see correct linking to the respective items in the paper UI - but I do NOT receive any value update via these channels.

  • Items configuration related to the issue
Number Interior_Temp_Air_Sensor02 "Innentemperatur OG SZ [%.1f °C]" <temperature> (gOG) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelTemperature"}

//Number Interior_Humidity_Air_Sensor02 "Hygrom. OG SZ [%.1f %% rF]" <humidity> (gOG,gOnline) {channel="enocean:bridge:FT1ZI6TQ:thing_Sensor_Temp_Humidity_1:channel_Humidity"}

Number Interior_Humidity_Air_Sensor02 "Hygrom. OG SZ [%.1f %% rF]" <humidity> (gOG,gOnline) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelHumidity"}

Number Interior_Air_Sensor02_rssi "OG SZ Stat rssi" (gOG) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelrssi"}

Number Interior_Air_Sensor02_repeatCount "OG SZ Stat repeatCount" (gOG) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelrepeatCount"}

DateTime Interior_Air_Sensor02_channel_lastReceived "OG SZ Stat lastReceived" (gOG) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channellastReceived"}

Number Interior_Humidity_Air_Sensor02_Chart_Period_1 (gOG)

Switch Interior_Humidity_Air_Sensor02_Online (gOG,gOnline) {expire="20m,OFF"}
  • Thing definition:
Bridge enocean:bridge:FT1ZI6TQ "EnOcean Gateway USB300 No1 FT1ZI6TQ" [ path="/dev/ttyUSB0", rs485=false ]
{
	Thing temperatureHumiditySensor thingSensorTempHumidity1 "TempHumiditySensor_1" @ "OG_SZ"  [ enoceanId="0515AD99",  receivingEEPId="A5_04_01"]
	{
		Channels:
			Type temperature : channelTemperature 	
			Type humidity : channelHumidity
			Type rssi : channelrssi
			Type repeatCount : channelrepeatCount 
			Type lastReceived : channellastReceived 

			//Type receivingState : channel_receivingState "Empfangsstatus"
	}
}
  • logs:
    json definition when I create everything via PaperUI:
"enocean:bridge:FT1ZI6TQ": {
    "class": "org.eclipse.smarthome.core.thing.internal.BridgeImpl",
    "value": {
      "label": "Enocean USB300 Dongle (FT1ZI6TQ)",
      "channels": [
        {
          "acceptedItemType": "String",
          "kind": "STATE",
          "uid": {
            "segments": [
              "enocean",
              "bridge",
              "FT1ZI6TQ",
              "repeaterMode"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "enocean",
              "repeaterMode"
            ]
          },
          "label": "Repeater Mode",
          "description": "Repeater mode of EnOcean gateway/device",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "String",
          "kind": "STATE",
          "uid": {
            "segments": [
              "enocean",
              "bridge",
              "FT1ZI6TQ",
              "setBaseId"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "enocean",
              "setBaseId"
            ]
          },
          "label": "Set Base Id",
          "description": "Set base id of EnOcean gateway. Use this with care! Must be between 0xFF800000 and 0xFFFFFF80",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "path": "/dev/ttyUSB0",
          "rs485": false
        }
      },
      "properties": {
        "Remaining Base ID Write Cycles": "10",
        "usb_product_id": "24577.0",
        "APP Version": "2.11.1.0",
        "Description": "GATEWAYCTRL\u0000\u0000\u0000\u0000\u0000",
        "usb_vendor_id": "1027.0",
        "API Version": "2.6.3.0",
        "Chip ID": "050E3211",
        "Base ID": "FF990880"
      },
      "uid": {
        "segments": [
          "enocean",
          "bridge",
          "FT1ZI6TQ"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "enocean",
          "bridge"
        ]
      }
    }
  },

"enocean:temperatureHumiditySensor:1538dbc7": {
    "class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
    "value": {
      "label": "Temperature/Humidity Sensor",
      "bridgeUID": {
        "segments": [
          "enocean",
          "bridge",
          "FT1ZI6TQ"
        ]
      },
      "channels": [
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "enocean",
              "temperatureHumiditySensor",
              "1538dbc7",
              "temperature"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "enocean",
              "temperature"
            ]
          },
          "label": "",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "DateTime",
          "kind": "STATE",
          "uid": {
            "segments": [
              "enocean",
              "temperatureHumiditySensor",
              "1538dbc7",
              "lastReceived"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "enocean",
              "lastReceived"
            ]
          },
          "label": "",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "enocean",
              "temperatureHumiditySensor",
              "1538dbc7",
              "repeatCount"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "enocean",
              "repeatCount"
            ]
          },
          "label": "",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "enocean",
              "temperatureHumiditySensor",
              "1538dbc7",
              "rssi"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "enocean",
              "rssi"
            ]
          },
          "label": "",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "enocean",
              "temperatureHumiditySensor",
              "1538dbc7",
              "humidity"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "enocean",
              "humidity"
            ]
          },
          "label": "",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "enoceanId": "0515AD99",
          "receivingEEPId": "A5_04_01"
        }
      },
      "properties": {},
      "uid": {
        "segments": [
          "enocean",
          "temperatureHumiditySensor",
          "1538dbc7"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "enocean",
          "temperatureHumiditySensor"
        ]
      }
    }
  }
  • logfile in case of PaperUI definition:

```csv
2019-10-12 22:41:53.174 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '47.772393199999996,16.0542503'.
2019-10-12 22:41:53.181 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'de'.
2019-10-12 22:41:55.897 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1.items'
2019-10-12 22:41:55.962 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_heartbeat.items'
2019-10-12 22:41:56.000 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_wheather.items'
2019-10-12 22:41:56.039 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_Postbox.items'
2019-10-12 22:41:56.072 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_Pellet.items'
2019-10-12 22:41:56.178 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_Sprinkler.items'
2019-10-12 22:41:56.308 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_oebb.items'
2019-10-12 22:41:56.511 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'jdbc.persist'
2019-10-12 22:41:56.539 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mysql.persist'
2019-10-12 22:41:56.841 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Haus.sitemap'
2019-10-12 22:41:57.007 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'MQTT.things'
2019-10-12 22:41:57.023 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Bridge_Enocean_USB300_GW.things'
2019-10-12 22:41:57.029 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Bridge_MQTT_Broker.things'
2019-10-12 22:41:57.032 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'iec6205621meter.things'
2019-10-12 22:41:57.036 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'standard.things'
2019-10-12 22:41:58.105 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007


2019-10-12 22:42:18.414 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'Bridge_Enocean_USB300_GW.things' is either empty or cannot be parsed correctly!


2019-10-12 22:42:18.965 [DEBUG] [org.openhab.binding.enocean         ] - BundleEvent STARTING - org.openhab.binding.enocean
2019-10-12 22:42:18.966 [DEBUG] [org.openhab.binding.enocean         ] - BundleEvent STARTED - org.openhab.binding.enocean
2019-10-12 22:42:18.987 [DEBUG] [org.openhab.binding.enocean         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.usbserial.UsbSerialDiscoveryParticipant}={service.id=334, service.bundleid=221, service.scope=bundle, component.name=org.openhab.binding.enocean.internal.discovery.EnOceanUsbSerialDiscoveryParticipant, component.id=191} - org.openhab.binding.enocean




2019-10-12 22:42:19.705 [DEBUG] [org.openhab.binding.enocean         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=358, service.bundleid=221, service.scope=bundle, component.name=org.openhab.binding.enocean.internal.EnOceanHandlerFactory, component.id=190} - org.openhab.binding.enocean
2019-10-12 22:42:19.732 [DEBUG] [org.openhab.binding.enocean         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=359, service.bundleid=221, service.scope=singleton} - org.openhab.binding.enocean
2019-10-12 22:42:19.734 [DEBUG] [org.openhab.binding.enocean         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.core.status.ConfigStatusProvider}={service.id=360, service.bundleid=221, service.scope=singleton} - org.openhab.binding.enocean


2019-10-12 22:42:19.849 [DEBUG] [org.openhab.binding.enocean         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.core.status.ConfigStatusProvider}={service.id=362, service.bundleid=221, service.scope=singleton} - org.openhab.binding.enocean
2019-10-12 22:42:19.858 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - Initializing enocean base thing handler.
2019-10-12 22:42:19.859 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - initializeThing thing enocean:temperatureHumiditySensor:1538dbc7 bridge status OFFLINE
2019-10-12 22:42:19.878 [INFO ] [enhab.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:home



2019-10-12 22:42:19.975 [INFO ] [transceiver.EnOceanSerialTransceiver] - EnOceanSerialTransceiver initialized


2019-10-12 22:42:20.006 [DEBUG] [nternal.handler.EnOceanBridgeHandler] - request base id
2019-10-12 22:42:20.009 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type COMMON_COMMAND with callback


2019-10-12 22:42:20.021 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Sending data, type COMMON_COMMAND, payload 08


2019-10-12 22:42:20.028 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type COMMON_COMMAND with callback
2019-10-12 22:42:20.035 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Received Sync Byte
2019-10-12 22:42:20.036 [TRACE] [ernal.transceiver.EnOceanTransceiver] - >> Received header, data length 5 optional length 1 packet type 2
2019-10-12 22:42:20.037 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - RESPONSE with code RET_OK payload 00FF9908800A received
2019-10-12 22:42:20.041 [DEBUG] [nternal.handler.EnOceanBridgeHandler] - received response for base id
2019-10-12 22:42:20.046 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Response handled
2019-10-12 22:42:20.047 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - initializeThing thing enocean:temperatureHumiditySensor:1538dbc7 bridge status ONLINE


2019-10-12 22:42:20.145 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Listener added: 85306777
2019-10-12 22:42:20.278 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Sending data, type COMMON_COMMAND, payload 03
2019-10-12 22:42:20.290 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Received Sync Byte
2019-10-12 22:42:20.290 [TRACE] [ernal.transceiver.EnOceanTransceiver] - >> Received header, data length 33 optional length 0 packet type 2
2019-10-12 22:42:20.305 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - RESPONSE with code RET_OK payload 00020B010002060300050E3211454F0103474154455741594354524C0000000000 received
2019-10-12 22:42:20.306 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Response handled
  • Logfile in case of text configuration:
2019-10-13 15:58:32.407 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '47.772393199999996,16.0542503'.
2019-10-13 15:58:32.414 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'de'.
2019-10-13 15:58:35.065 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1.items'
2019-10-13 15:58:35.125 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_heartbeat.items'
2019-10-13 15:58:35.164 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_wheather.items'
2019-10-13 15:58:35.205 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_Postbox.items'
2019-10-13 15:58:35.231 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_Pellet.items'
2019-10-13 15:58:35.310 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_Sprinkler.items'
2019-10-13 15:58:35.528 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HomeTaf1_oebb.items'
2019-10-13 15:58:35.715 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'jdbc.persist'
2019-10-13 15:58:36.091 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Haus.sitemap'
2019-10-13 15:58:36.269 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'MQTT.things'
2019-10-13 15:58:36.289 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Bridge_Enocean_USB300_GW.things'
2019-10-13 15:58:36.295 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Bridge_MQTT_Broker.things'
2019-10-13 15:58:36.298 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'iec6205621meter.things'
2019-10-13 15:58:36.302 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'standard.things'
2019-10-13 15:58:37.298 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007


2019-10-13 15:58:59.336 [DEBUG] [org.openhab.binding.enocean         ] - BundleEvent STARTING - org.openhab.binding.enocean
2019-10-13 15:58:59.339 [DEBUG] [org.openhab.binding.enocean         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.usbserial.UsbSerialDiscoveryParticipant}={service.id=334, service.bundleid=221, service.scope=bundle, component.name=org.openhab.binding.enocean.internal.discovery.EnOceanUsbSerialDiscoveryParticipant, component.id=191} - org.openhab.binding.enocean
2019-10-13 15:58:59.365 [DEBUG] [org.openhab.binding.enocean         ] - BundleEvent STARTED - org.openhab.binding.enocean

2019-10-13 15:58:59.866 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'enocean:bridge:FT1ZI6TQ' to inbox.

N<< for item: Interior_Temp_Air stored in Interior_Temp_Air_Online
2019-10-13 15:59:12.810 [DEBUG] [org.openhab.binding.enocean         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=358, service.bundleid=221, service.scope=singleton} - org.openhab.binding.enocean
2019-10-13 15:59:12.812 [DEBUG] [org.openhab.binding.enocean         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.core.status.ConfigStatusProvider}={service.id=359, service.bundleid=221, service.scope=singleton} - org.openhab.binding.enocean
2019-10-13 15:59:12.832 [DEBUG] [org.openhab.binding.enocean         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.core.status.ConfigStatusProvider}={service.id=360, service.bundleid=221, service.scope=singleton} - org.openhab.binding.enocean
2019-10-13 15:59:12.848 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - Initializing enocean base thing handler.
2019-10-13 15:59:12.849 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - initializeThing thing enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1 bridge status OFFLINE
2019-10-13 15:59:12.869 [DEBUG] [org.openhab.binding.enocean         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=357, service.bundleid=221, service.scope=bundle, component.name=org.openhab.binding.enocean.internal.EnOceanHandlerFactory, component.id=190} - org.openhab.binding.enocean
2019-10-13 15:59:12.963 [INFO ] [transceiver.EnOceanSerialTransceiver] - EnOceanSerialTransceiver initialized


2019-10-13 15:59:12.989 [DEBUG] [nternal.handler.EnOceanBridgeHandler] - request base id


2019-10-13 15:59:13.015 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type COMMON_COMMAND with callback
2019-10-13 15:59:13.017 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Sending data, type COMMON_COMMAND, payload 08
2019-10-13 15:59:13.026 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type COMMON_COMMAND with callback
2019-10-13 15:59:13.040 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Received Sync Byte
2019-10-13 15:59:13.040 [INFO ] [enhab.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:home
2019-10-13 15:59:13.057 [TRACE] [ernal.transceiver.EnOceanTransceiver] - >> Received header, data length 5 optional length 1 packet type 2
2019-10-13 15:59:13.059 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - RESPONSE with code RET_OK payload 00FF9908800A received
2019-10-13 15:59:13.060 [DEBUG] [nternal.handler.EnOceanBridgeHandler] - received response for base id

2019-10-13 15:59:13.074 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Response handled
2019-10-13 15:59:13.081 [INFO ] [enhab.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:home

2019-10-13 15:59:13.097 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - initializeThing thing enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1 bridge status ONLINE
2019-10-13 15:59:13.130 [INFO ] [enhab.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:home

2019-10-13 15:59:13.214 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Listener added: 85306777
2019-10-13 15:59:13.279 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - Sending data, type COMMON_COMMAND, payload 03
2019-10-13 15:59:13.291 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Received Sync Byte
2019-10-13 15:59:13.300 [TRACE] [ernal.transceiver.EnOceanTransceiver] - >> Received header, data length 33 optional length 0 packet type 2
2019-10-13 15:59:13.306 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - RESPONSE with code RET_OK payload 00020B010002060300050E3211454F0103474154455741594354524C0000000000 received

2019-10-13 15:59:13.319 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Response handled





2019-10-13 16:00:01.483 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelHumidity
2019-10-13 16:00:01.483 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelHumidity
2019-10-13 16:00:01.484 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelHumidity
2019-10-13 16:00:01.484 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelHumidity
2019-10-13 16:00:01.484 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelHumidity
2019-10-13 16:00:01.485 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelHumidity
2019-10-13 16:00:01.485 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:topic:mqttbrokerhs1anew:thingraspiSprinkler2SensorReporter:channelPiFace2ActuatorPort1
2019-10-13 16:00:01.486 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:topic:mqttbrokerhs1anew:thingraspiSprinkler2SensorReporter:channelPiFace2ActuatorPort1
2019-10-13 16:00:01.487 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:topic:mqttbrokerhs1anew:thingraspiSprinkler2SensorReporter:channelPiFace2ActuatorPort1
2019-10-13 16:00:01.488 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:topic:mqttbrokerhs1anew:thingraspiSprinkler2SensorReporter:channelPiFace2ActuatorPort1
2019-10-13 16:00:01.494 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:topic:mqttbrokerhs1anew:thingraspiSprinkler2SensorReporter:channelPiFace2ActuatorPort1
2019-10-13 16:00:01.499 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:topic:mqttbrokerhs1anew:thingraspiSprinkler2SensorReporter:channelPiFace2ActuatorPort1


2019-10-13 16:00:01.653 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelTemperature
2019-10-13 16:00:01.654 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelTemperature
2019-10-13 16:00:01.655 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelTemperature

2019-10-13 16:00:01.679 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelTemperature

2019-10-13 16:00:01.679 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelTemperature
2019-10-13 16:00:01.680 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel iec6205621meter:meter:2ffd6527:meterType
2019-10-13 16:00:01.680 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelTemperature
2019-10-13 16:00:01.681 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel iec6205621meter:meter:2ffd6527:meterType

2019-10-13 16:00:01.685 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelrepeatCount

2019-10-13 16:00:01.716 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:channelrepeatCount

Is there anything wrong in my text config file - or something which I did not consider?
Thanks for any hint.

Try changing Things file and do links there.

Somewhat example from soneone that doesn’t use Enocean:

Thing temperatureHumiditySensor thingSensorTempHumidity1 "TempHumiditySensor_1" @ "OG_SZ"  [ enoceanId="0515AD99",  receivingEEPId="A5_04_01"]
	{
		Channels:
			Type number : temperature  "channelTemperature" [ stateTopic="some/thing/TEMPERATURE" ] 	

not sure how how this should be used in my case:

If I define it like the following configuration:

Bridge enocean:bridge:FT1ZI6TQ "EnOcean Gateway USB300 No1 FT1ZI6TQ" [ path="/dev/ttyUSB0", rs485=false ]
{
	Thing temperatureHumiditySensor thingSensorTempHumidity1 "TempHumiditySensor_1" @ "OG_SZ"  [ enoceanId="0515AD99",  receivingEEPId="A5_04_01"]
	
	{
		Channels:
			Type number : temperature "channelTemperature"
			//Type temperature : channelTemperature 	
			//Type humidity : channelHumidity
			//Type rssi : channelrssi
			//Type repeatCount : channelrepeatCount 
			//Type lastReceived : channellastReceived 

			//Type receivingState : channel_receivingState "Empfangsstatus"
	}
}

I get the following log:

2019-10-13 21:58:08.913 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'Bridge_Enocean_USB300_GW.things'
2019-10-13 21:58:08.918 [ERROR] [.thing.internal.GenericThingProvider] - Channel type enocean:number could not be resolved.
2019-10-13 21:58:08.924 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - Initializing enocean base thing handler.
2019-10-13 21:58:08.925 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - initializeThing thing enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1 bridge status ONLINE

In PaperUI however the Thing is offline with the following status:

TempHumiditySensor_1

Temperature/Humidity Sensor

Sensor which sends temperature and humidity data (EEP: A5-04)

Status: OFFLINE - CONFIGURATION_ERROR Receiving EEP is not supported

Which is not easy to understand: EEP: A5-04 is not given in config, I provide still A5_04_01. I tried even A5-04-01 in config - no change.

Also enocean does not define a number type for this thing - which is seen in the logs:

2019-10-13 21:58:08.918 [ERROR] [.thing.internal.GenericThingProvider] - Channel type enocean:number could not be resolved.

When I use my original .thing config (as initially posted) the thing is online and all channels are linked correctly to the respective items:

Which looks more correct then when the thing is offline in PaperUI

Hi @jrieder,

just try the following .thing file

Bridge enocean:bridge:FT1ZI6TQ "EnOcean Gateway USB300 No1 FT1ZI6TQ" [ path="/dev/ttyUSB0", rs485=false ]
{
	Thing temperatureHumiditySensor thingSensorTempHumidity1 "TempHumiditySensor_1" @ "OG_SZ"  [ enoceanId="0515AD99",  receivingEEPId="A5_04_01"]
}

You do not need to define the channels in the .thing file when you do not want to configure them in any special way.

Your .item file should look like this

Number:Temperature Interior_Temp_Air_Sensor02 "Innentemperatur OG SZ [%.1f °C]" <temperature> (gOG) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:temperature"}

Number Interior_Air_Sensor02_rssi "OG SZ Stat rssi" (gOG) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:rssi"}

Number Interior_Air_Sensor02_repeatCount "OG SZ Stat repeatCount" (gOG) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:repeatCount"}

DateTime Interior_Air_Sensor02_channel_lastReceived "OG SZ Stat lastReceived" (gOG) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:lastReceived"}

This works for me.

Best regards
Daniel

1 Like

For some reason I had MQTT on my mind when reading the post.:roll_eyes: Thanks for stepping in to correct my confusion.

Hi @fruggy83,
Thanks a lot for the suggestion.:+1:
I changed like you suggested and it is working (at least partly). :slight_smile:
Maybe this hint should be added also in the Enocean documentation section (e.g.that channels should not be redefined if not necessary). Some more examples in that section might be helpful as well.

Still following open topic:
Temperature and Humidity are updated, however I do not get any value for the other three channels: rssi, repeatCount and lastReceived.

All channels appear as linked to the items in PaperUI - but items do not get any values.

Current item definition (as suggested).

Number:Temperature Interior_Temp_Air_Sensor02 "Innentemperatur OG SZ [%.1f °C]" <temperature> (gOG) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:temperature"}
Number Interior_Humidity_Air_Sensor02 "Hygrom. OG SZ [%.1f %% rF]" <humidity> (gOG,gOnline) {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:humidity"}
Number Interior_Air_Sensor02_rssi "OG SZ Stat rssi"  (gOG)  {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:rssi"}
Number Interior_Air_Sensor02_repeatCount "OG SZ Stat repeatCount"  (gOG)  {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:repeatCount"}
DateTime Interior_Air_Sensor02_channel_lastReceived "OG SZ Stat lastReceived"  (gOG)  {channel="enocean:temperatureHumiditySensor:FT1ZI6TQ:thingSensorTempHumidity1:lastReceived"}

.thing definition same as you suggested

Bridge enocean:bridge:FT1ZI6TQ "EnOcean Gateway USB300 No1 FT1ZI6TQ" [ path="/dev/ttyUSB0", rs485=false ]
{
	Thing temperatureHumiditySensor thingSensorTempHumidity1 "TempHumiditySensor_1" @ "OG_SZ"  [ enoceanId="0515AD99",  receivingEEPId="A5_04_01"]
}

logfile shows the following when a new measurement is received:

2019-10-14 20:49:12.553 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Received Sync Byte
2019-10-14 20:49:12.554 [TRACE] [ernal.transceiver.EnOceanTransceiver] - >> Received header, data length 10 optional length 7 packet type 1
2019-10-14 20:49:12.555 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - RADIO_ERP1 with RORG _4BS for 0515AD99 payload A500699C0A0515AD990001FFFFFFFF4C00 received
2019-10-14 20:49:12.555 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - ESP Packet payload A500699C0A0515AD9900 for 0515AD99 received

Maybe something can be deduced out of that?
I guess the lastreceived channel will be anyway updated by the binding/channel - and not decoded from the received payload.
Thanks a lot anyway already.
Best regards!

Hi Jo @jrieder ,

the logfile looks goods. In the last line you can see that the EnOcean packet could be decoded and handled by the handler. However the next few lines of the log would be of interest.
Are you sure that you have 2.5 M3 installed? These three new channels were introduced in M1 or M2. So you definitely need a 2.5 version. 2.4 would not work.
RSSI and RepeatCount are decoded from the packet, but LastReceived is just set to current DateTime whenever an EnOcean packet is received. So at least LastReceived should get updated.

Best regards
Daniel

Hi,

Binding is 2.5.0M2, see Karaf output:

openhab> bundle:list |grep En
206 x Active x  80 x 1.0.0                 x IO.Socket Engine Client
221 x Active x  80 x 2.5.0.M2              x openHAB Add-ons :: Bundles :: EnOcean Binding
openhab> 

the logfile does not show more for each measurement
Next entry is already my rule which is triggered by the update of the item:

2019-10-16 22:16:03.716 [TRACE] [ernal.transceiver.EnOceanTransceiver] - Received Sync Byte
2019-10-16 22:16:03.716 [TRACE] [ernal.transceiver.EnOceanTransceiver] - >> Received header, data length 10 optional length 7 packet type 1
2019-10-16 22:16:03.733 [DEBUG] [ernal.transceiver.EnOceanTransceiver] - RADIO_ERP1 with RORG _4BS for 0515AD99 payload A5006F960A0515AD990001FFFFFFFF5C00 received
2019-10-16 22:16:03.733 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - ESP Packet payload A5006F960A0515AD9900 for 0515AD99 received
2019-10-16 22:16:03.736 [INFO ] [pt.HeartbeatRule:expiry_reset_Global] - HeartbeatRule:expiry_reset_Global triggeringItem = Interior_Humidity_Air_Sensor02
2019-10-16 22:16:03.739 [INFO ] [pt.HeartbeatRule:expiry_reset_Global] - HeartbeatRule:expiry_reset_Global <*>_Online updated to >>ON<< for item: Interior_Humidity_Air_Sensor02 stored in Interior_Humidity_Air_Sensor02_Online

I activated the following for logging:

openhab> log:set DEBUG org.eclipse.binding.enocean

Is there something missing in the logs? Should I activate more logging which can help for debugging?

I remember that rssi was updated once I defined the thing completely via PaperUI - but never seen again then.
I checked also the Nodon Sensor via EnOcean Dolphin Viewer Software - the RSSI value is definitely received by the USB Enocean GW.

Best regards

Hi, jrieder
Can I have a question please? How do you connect between enocean and openhab? Can I use USB300db enocean to connect? If I need to connect between openhab and enocean, what is the syntax in the declaration in “things”? and I have 2 sensors: temperatureHumiditySensor andoccupancySensor, how should I report in “Things”? can you help me? I just started working on openhab so I don’t know much.
Regards

Hello, sorry for late response.
I use an USB300 receiver with TM310 chipset connected to my server.

here is my things file (also with my notes and experiences)

> // Things for Enocean Binding
> // definition of the Enocean Gateway USB300
> //
> //
> 
> // USB gateway connected via ser2net to a TCP Port  rfc2217://x.x.x.x:3001
> 
> //Bridge enocean:bridge:gateway_1 "EnOcean Gateway USB300 Number1" [ path="/dev/ttyAMA0" ]
> // rfc2217 for remote connection - not tested
> //Bridge enocean:bridge:gateway_1 "EnOcean Gateway USB300 No1" [ path="rfc2217://xx.xx.xx.xx:2000" ]    
> //Bridge enocean:bridge:gateway_1 "EnOcean Gateway USB300 No1" [ path="rfc2217://xx.xx.xx.xx:2000" ]
> 
> //thing in inbox FT1ZI6TQ
> 
> // local Gateway configuration at server
> //Bridge enocean:bridge:gateway_1 "EnOcean Gateway USB300 No1" [ path="/dev/USB_ENOCEAN_GW_1" ]
> //Bridge enocean:bridge:FT1ZI6TQ "EnOcean Gateway USB300 No1 FT1ZI6TQ" [ path="/dev/ttyUSB0", rs485=false ]
> Bridge enocean:bridge:FT1ZI6TQ "EnOcean Gateway USB300 No1 FT1ZI6TQ" [ path="/dev/USB_ENOCEAN_GW_1", rs485=false ]
> {
> 	Thing temperatureHumiditySensor thingSensorTempHumidity1 "TempHumiditySensor_1" @ "OG_KZ1"  [ enoceanId="0515AD99",  receivingEEPId="A5_04_01"]
> 	Thing temperatureHumiditySensor thingSensorTempHumidity2 "TempHumiditySensor_2" @ "OG_SZ"  [ enoceanId="051757EF",  receivingEEPId="A5_04_01"]
> 	Thing temperatureHumiditySensor thingSensorTempHumidity3 "TempHumiditySensor_3" @ "EG_WZ"  [ enoceanId="0581CD45",  receivingEEPId="A5_04_01"]
> 	
> }
> 
> 
> 
> // 2.5.0. M2
> //Warning:  EnOcean Binding: Channel 'receivingState' has been removed, because this was a string containing many information. For this, there are three new channels: 'rssi', 'repeatCount' and 'lastReceived'.
> 
> 
> // Standalone Thing configuration seems to be not supported by the enocean Bridge definition - it is not working
> //Thing enocean:bridge:gateway_1:temperatureHumiditySensor thing_Sensor_Temp_Humidity_1 "TempHumiditySensor_1" @ "OG_SZ"
> //Thing enocean:bridge:gateway_1:temperatureHumiditySensor thing_Sensor_Temp_Humidity_1 "TempHumiditySensor_1" @ "OG_SZ"  [ enoceanId="aabbcc07",  receivingEEPId="A5_04_01"]

First I used my own Gateway name (gateway_1), but this was not working (including ser2net config at the beginning).
Then I used the same name as appeared when it was discovered via PaperUI in the inbox.

All the lines which are commeted out you do not need.
Hope this helps…