Hey Folks,
I’ve been banging my head off the wall for the last few weeks trying to get the battery level, battery percent, tamper switch, temperature, LowBattery, LightLevelAboveBelowThreshold and light level extended data from several Insteon Motion 2 things to be registered by OH3 (I’m new to OpenHab but not home/industrial automation stuff), the contact closure works a treat. I’ve validated that when the device is triggered that several data bursts are sent and the Insteon terminal shows all the fields of interest. I’ve tried the fixes and notes mentioned in the docs and the forums to no avail (I’m not totally sure I’m entering them in the right place or not). Two things of interest are that sometimes the data does get captured but then won’t update again, and other times multiple persistence files are created but are null.
To aid in debugging I’ve switched persistence over to MySql so I can easily monitor the tables (the multiple item persistence files occur with the jrrd files as well).
I wasn’t sure where I should post this as I am a new OH users so this could totally PEBKAC, but I also suspect there is/are a couple of bugs at play. Figured this was the best place to start.
I’ve included the Insteon binding trace log as well capturing the motion start event and the timeout event. To me it appears that the extended data is there but I do not have a current protocol doc (only one I have is from 2007) so I’m not sure.
Any help that can be offered would be most appreciated, and as an aside The work that has been done is on OpenHab is impressive Kudos to all involved
EDIT: I can’t seem to post the trace log inline as its exceeds the body lenght: 2844-222-trace.txt (98.4 KB)
- Platform information:
- Hardware: ARMv7 Processor rev 4 (v7l)
Hardware : BCM2835
Revision : a020d3
Model : Raspberry Pi 3 Model B Plus Rev 1.3 - OS: Centos 7 (32 bit)
- Java Runtime Environment:
OpenJDK Runtime Environment Zulu11.43+100-CA (build 11.0.9.1+1-LTS)
OpenJDK Client VM Zulu11.43+100-CA (build 11.0.9.1+1-LTS, mixed mode) - openHAB version: 3.0.0-1 from openHAB-Stable yum repo
- Hardware: ARMv7 Processor rev 4 (v7l)
Things JSON object
"insteon:device:a8664baef9:5587FF": {
"class": "org.openhab.core.thing.internal.ThingImpl",
"value": {
"label": "testingMotion",
"bridgeUID": {
"segments": [
"insteon",
"network",
"a8664baef9"
],
"uid": "insteon:network:a8664baef9"
},
"channels": [
{
"acceptedItemType": "Number",
"kind": "STATE",
"uid": {
"segments": [
"insteon",
"device",
"a8664baef9",
"5587FF",
"batteryLevel"
],
"uid": "insteon:device:a8664baef9:5587FF:batteryLevel"
},
"channelTypeUID": {
"segments": [
"insteon",
"batteryLevel"
],
"uid": "insteon:batteryLevel"
},
"label": "Battery Level",
"configuration": {
"properties": {}
},
"properties": {},
"defaultTags": [],
"autoUpdatePolicy": "DEFAULT"
},
{
"acceptedItemType": "Number:Dimensionless",
"kind": "STATE",
"uid": {
"segments": [
"insteon",
"device",
"a8664baef9",
"5587FF",
"batteryPercent"
],
"uid": "insteon:device:a8664baef9:5587FF:batteryPercent"
},
"channelTypeUID": {
"segments": [
"insteon",
"batteryPercent"
],
"uid": "insteon:batteryPercent"
},
"label": "Battery Percent",
"configuration": {
"properties": {}
},
"properties": {},
"defaultTags": [],
"autoUpdatePolicy": "DEFAULT"
},
{
"acceptedItemType": "Contact",
"kind": "STATE",
"uid": {
"segments": [
"insteon",
"device",
"a8664baef9",
"5587FF",
"contact"
],
"uid": "insteon:device:a8664baef9:5587FF:contact"
},
"channelTypeUID": {
"segments": [
"insteon",
"contact"
],
"uid": "insteon:contact"
},
"label": "Contact",
"configuration": {
"properties": {}
},
"properties": {},
"defaultTags": [],
"autoUpdatePolicy": "DEFAULT"
},
{
"acceptedItemType": "DateTime",
"kind": "STATE",
"uid": {
"segments": [
"insteon",
"device",
"a8664baef9",
"5587FF",
"lastHeardFrom"
],
"uid": "insteon:device:a8664baef9:5587FF:lastHeardFrom"
},
"channelTypeUID": {
"segments": [
"insteon",
"lastHeardFrom"
],
"uid": "insteon:lastHeardFrom"
},
"label": "Last Heard From",
"configuration": {
"properties": {}
},
"properties": {},
"defaultTags": [],
"autoUpdatePolicy": "DEFAULT"
},
{
"acceptedItemType": "Number",
"kind": "STATE",
"uid": {
"segments": [
"insteon",
"device",
"a8664baef9",
"5587FF",
"lightLevel"
],
"uid": "insteon:device:a8664baef9:5587FF:lightLevel"
},
"channelTypeUID": {
"segments": [
"insteon",
"lightLevel"
],
"uid": "insteon:lightLevel"
},
"label": "Light Level",
"configuration": {
"properties": {}
},
"properties": {},
"defaultTags": [],
"autoUpdatePolicy": "DEFAULT"
},
{
"acceptedItemType": "Contact",
"kind": "STATE",
"uid": {
"segments": [
"insteon",
"device",
"a8664baef9",
"5587FF",
"lightLevelAboveThreshold"
],
"uid": "insteon:device:a8664baef9:5587FF:lightLevelAboveThreshold"
},
"channelTypeUID": {
"segments": [
"insteon",
"lightLevelAboveThreshold"
],
"uid": "insteon:lightLevelAboveThreshold"
},
"label": "Light Level Above/Below Threshold",
"configuration": {
"properties": {}
},
"properties": {},
"defaultTags": [],
"autoUpdatePolicy": "DEFAULT"
},
{
"acceptedItemType": "Contact",
"kind": "STATE",
"uid": {
"segments": [
"insteon",
"device",
"a8664baef9",
"5587FF",
"lowBattery"
],
"uid": "insteon:device:a8664baef9:5587FF:lowBattery"
},
"channelTypeUID": {
"segments": [
"insteon",
"lowBattery"
],
"uid": "insteon:lowBattery"
},
"label": "Low Battery",
"configuration": {
"properties": {}
},
"properties": {},
"defaultTags": [],
"autoUpdatePolicy": "DEFAULT"
},
{
"acceptedItemType": "Contact",
"kind": "STATE",
"uid": {
"segments": [
"insteon",
"device",
"a8664baef9",
"5587FF",
"tamperSwitch"
],
"uid": "insteon:device:a8664baef9:5587FF:tamperSwitch"
},
"channelTypeUID": {
"segments": [
"insteon",
"tamperSwitch"
],
"uid": "insteon:tamperSwitch"
},
"label": "Tamper Switch",
"configuration": {
"properties": {}
},
"properties": {},
"defaultTags": [],
"autoUpdatePolicy": "DEFAULT"
},
{
"acceptedItemType": "Number",
"kind": "STATE",
"uid": {
"segments": [
"insteon",
"device",
"a8664baef9",
"5587FF",
"temperatureLevel"
],
"uid": "insteon:device:a8664baef9:5587FF:temperatureLevel"
},
"channelTypeUID": {
"segments": [
"insteon",
"temperatureLevel"
],
"uid": "insteon:temperatureLevel"
},
"label": "Temperature Level",
"configuration": {
"properties": {}
},
"properties": {},
"defaultTags": [],
"autoUpdatePolicy": "DEFAULT"
}
],
"configuration": {
"properties": {
"deviceConfig": "{\u0027heartbeatOnly\u0027: true}",
"address": "55.87.FF",
"productKey": "F00.00.24"
}
},
"properties": {},
"uid": {
"segments": [
"insteon",
"device",
"a8664baef9",
"5587FF"
],
"uid": "insteon:device:a8664baef9:5587FF"
},
"thingTypeUID": {
"segments": [
"insteon",
"device"
],
"uid": "insteon:device"
}
}
},
Item JSON object
"testingMotion_TemperatureLevel": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"testingMotion"
],
"itemType": "Number",
"tags": [
"Point"
],
"label": "Temperature Level"
},
"testingMotion_BatteryLevel": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"testingMotion"
],
"itemType": "Number",
"tags": [
"Point"
],
"label": "Battery Level"
}
},
},
"testingMotion_BatteryPercent": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"testingMotion"
],
"itemType": "Number:Dimensionless",
"tags": [
"Point"
],
"label": "Battery Percent"
}
},
"testingMotion_LowBattery": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"testingMotion"
],
"itemType": "Contact",
"tags": [
"Point"
],
"label": "Low Battery"
}
},
"testingMotion_LightLevelAboveBelowThreshold": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"testingMotion"
],
"itemType": "Contact",
"tags": [
"Point"
],
"label": "Light Level Above/Below Threshold"
}
},
"testingMotion_Contact": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"testingMotion"
],
"itemType": "Contact",
"tags": [
"Point"
],
"label": "Contact"
}
},
"testingMotion_TamperSwitch": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"testingMotion"
],
"itemType": "Contact",
"tags": [
"Point"
],
"label": "Tamper Switch"
}
},
"testingMotion_LastHeardFrom": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"testingMotion"
],
"itemType": "DateTime",
"tags": [
"Point"
],
"label": "Last Heard From"
}
},
"testingMotion": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"testing"
],
"itemType": "Group",
"tags": [
"MotionDetector"
],
"label": "testingMotion",
"category": "motion"
}
},
"testingMotion_LightLevel": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"testingMotion"
],
"itemType": "Number",
"tags": [
"Point"
],
"label": "Light Level"
}
},
**MySQL Persistence Tables that show the double entries**
MariaDB [openHabPers]> select * from items;
+--------+-------------------------------------+
| ItemId | itemname |
+--------+-------------------------------------+
| 1 | testingMotion_Contact |
| 2 | testingMotion_LastHeardFrom |
| 3 | testingMotion_BatteryLevel |
| 4 | testingMotion_BatteryLevel |
+--------+-------------------------------------+
23 rows in set (0.00 sec)
MariaDB [openHabPers]> show tables;
+------------------------------------------+
| Tables_in_openHabPers |
+------------------------------------------+
| items |
| testingmotion_batterylevel_0003 |
| testingmotion_batterylevel_0004 |
| testingmotion_contact_0001 |
| testingmotion_lastheardfrom_0002 |
+------------------------------------------+
24 rows in set (0.00 sec)
MariaDB [openHabPers]> select * from testingmotion_contact_0001;
+---------------------+--------+
| time | value |
+---------------------+--------+
| 2021-01-17 10:32:21 | CLOSED |
| 2021-01-17 10:32:34 | OPEN |
| 2021-01-17 10:33:03 | CLOSED |
| 2021-01-17 11:07:43 | OPEN |
| 2021-01-17 11:08:08 | CLOSED |
+---------------------+--------+
5 rows in set (0.00 sec)
MariaDB [openHabPers]> select * from testingmotion_batterylevel_0003;
Empty set (0.00 sec)
MariaDB [openHabPers]> select * from testingmotion_batterylevel_0004;
Empty set (0.00 sec)
MariaDB [openHabPers]>