HC2 date and time

Hello,
How do you know with HC2 since when a door was last closed ?

I don’t know. Is it in the JSON?

Open the URL below & then attach the JSON so I can look at it. Update the HC2_IPADDRESS & FIBARO_DEVICE_ID fields to match your actual values.

http://HC2_IPADDRESS/api/devices/FIBARO_DEVICE_ID

yes, probably “lastBreached”: “1611117931” ?

{
“id”: 58,
“name”: “Porte entrée”,
“roomID”: 13,
“type”: “com.fibaro.doorSensor”,
“baseType”: “com.fibaro.doorWindowSensor”,
“enabled”: true,
“visible”: true,
“isPlugin”: false,
“parentId”: 240,
“remoteGatewayId”: 0,
“interfaces”: [
“battery”,
“fibaroAlarm”,
“fibaroAlarmArm”,
“fibaroBreach”,
“zwave”,
“zwaveConfiguration”,
“zwaveWakeup”
],
“properties”: {
“parameters”: [
{
“id”: 1,
“lastSetValue”: 99,
“size”: 1,
“value”: 99
},
{
“id”: 2,
“lastSetValue”: 1,
“size”: 1,
“value”: 1
}
],
“pollingTimeSec”: 0,
“wakeUpTime”: 4000,
“zwaveCompany”: “Everspring”,
“zwaveInfo”: “6,2,64”,
“zwaveVersion”: “1.3”,
“alarmDelay”: “0”,
“alarmExclude”: “true”,
“alarmTimeTimestamp”: “0”,
“armConditions”: “{“auto”:false,“devices”:[{“id”:58,“propertyName”:“value”,“propertyValue”:“0”}],“time”:0}”,
“armConfig”: “0”,
“armDelay”: “0”,
“armError”: “{}”,
“armTimeTimestamp”: “0”,
“armed”: “true”,
“batteryLevel”: “100”,
“batteryLowNotification”: “true”,
“categories”: “[“security”]”,
“configured”: true,
“dead”: “false”,
“deadReason”: “”,
“defInterval”: “0”,
“deviceControlType”: “0”,
“deviceIcon”: “1036”,
“emailNotificationID”: “0”,
“emailNotificationType”: “0”,
“endPointId”: “0”,
“fibaroAlarm”: “false”,
“lastBreached”: “1611117931”,
“log”: “”,
“logTemp”: “”,
“manufacturer”: “”,
“markAsDead”: “true”,
“maxInterval”: “0”,
“minInterval”: “0”,
“model”: “”,
“nodeId”: “37”,
“parametersTemplate”: “24”,
“productInfo”: “0,96,0,2,0,1,1,3”,
“pushNotificationID”: “0”,
“pushNotificationType”: “0”,
“remoteGatewayId”: “0”,
“saveLogs”: “true”,
“serialNumber”: “”,
“smsNotificationID”: “0”,
“smsNotificationType”: “0”,
“stepInterval”: “0”,
“useTemplate”: “true”,
“userDescription”: “REF : M0016”,
“value”: “false”
},
“actions”: {
“associationGet”: 1,
“associationSet”: 2,
“forceArm”: 0,
“getParameter”: 1,
“meetArmConditions”: 0,
“reconfigure”: 0,
“setArmed”: 1,
“setInterval”: 1,
“setParameter”: 2
},
“created”: 1610110429,
“modified”: 1610110429,
“sortOrder”: 53
}

That’s probably it. I’ll try & add support for that to the next release.

1 Like

I need to determine whether that timestamp is in local time or UTC time.

What was the actual local time that this device was breached?

Does the official Fibaro app show the breached time? If so can you attach a snapshot of it.

It may be easier for you to just upload a new set of data: current screenshot & current JSON.

Ok Bill,

yes this is official Fibaro app.

On the picture it is inscribed, 12 hours ago
image

{
“id”: 58,
“name”: “Porte entrée”,
“roomID”: 13,
“type”: “com.fibaro.doorSensor”,
“baseType”: “com.fibaro.doorWindowSensor”,
“enabled”: true,
“visible”: true,
“isPlugin”: false,
“parentId”: 240,
“remoteGatewayId”: 0,
“interfaces”: [
“battery”,
“fibaroAlarm”,
“fibaroAlarmArm”,
“fibaroBreach”,
“zwave”,
“zwaveConfiguration”,
“zwaveWakeup”
],
“properties”: {
“parameters”: [
{
“id”: 1,
“lastSetValue”: 99,
“size”: 1,
“value”: 99
},
{
“id”: 2,
“lastSetValue”: 1,
“size”: 1,
“value”: 1
}
],
“pollingTimeSec”: 0,
“wakeUpTime”: 4000,
“zwaveCompany”: “Everspring”,
“zwaveInfo”: “6,2,64”,
“zwaveVersion”: “1.3”,
“alarmDelay”: “0”,
“alarmExclude”: “true”,
“alarmTimeTimestamp”: “0”,
“armConditions”: “{“auto”:false,“devices”:[{“id”:58,“propertyName”:“value”,“propertyValue”:“0”}],“time”:0}”,
“armConfig”: “0”,
“armDelay”: “0”,
“armError”: “{}”,
“armTimeTimestamp”: “0”,
“armed”: “true”,
“batteryLevel”: “100”,
“batteryLowNotification”: “true”,
“categories”: “[“security”]”,
“configured”: true,
“dead”: “false”,
“deadReason”: “”,
“defInterval”: “0”,
“deviceControlType”: “0”,
“deviceIcon”: “1036”,
“emailNotificationID”: “0”,
“emailNotificationType”: “0”,
“endPointId”: “0”,
“fibaroAlarm”: “false”,
“lastBreached”: “1611337675”,
“log”: “”,
“logTemp”: “”,
“manufacturer”: “”,
“markAsDead”: “true”,
“maxInterval”: “0”,
“minInterval”: “0”,
“model”: “”,
“nodeId”: “37”,
“parametersTemplate”: “24”,
“productInfo”: “0,96,0,2,0,1,1,3”,
“pushNotificationID”: “0”,
“pushNotificationType”: “0”,
“remoteGatewayId”: “0”,
“saveLogs”: “true”,
“serialNumber”: “”,
“smsNotificationID”: “0”,
“smsNotificationType”: “0”,
“stepInterval”: “0”,
“useTemplate”: “true”,
“userDescription”: “REF : M0016”,
“value”: “false”
},
“actions”: {
“associationGet”: 1,
“associationSet”: 2,
“forceArm”: 0,
“getParameter”: 1,
“meetArmConditions”: 0,
“reconfigure”: 0,
“setArmed”: 1,
“setInterval”: 1,
“setParameter”: 2
},
“created”: 1611321724,
“modified”: 1611321724,
“sortOrder”: 53
}

and another : here, 7 days ago

image

{
“id”: 391,
“name”: “Porte chaufferie”,
“roomID”: 578,
“type”: “com.fibaro.doorSensor”,
“baseType”: “com.fibaro.doorWindowSensor”,
“enabled”: true,
“visible”: true,
“isPlugin”: false,
“parentId”: 390,
“remoteGatewayId”: 0,
“interfaces”: [
“battery”,
“fibaroAlarm”,
“fibaroAlarmArm”,
“fibaroBreach”,
“zwave”,
“zwaveConfiguration”,
“zwaveWakeup”
],
“properties”: {
“parameters”: [
{
“id”: 1,
“lastReportedValue”: 99,
“lastSetValue”: 99,
“size”: 1,
“value”: 99
},
{
“id”: 2,
“lastReportedValue”: 1,
“lastSetValue”: 1,
“size”: 1,
“value”: 1
}
],
“pollingTimeSec”: 0,
“wakeUpTime”: 4000,
“zwaveCompany”: “Everspring”,
“zwaveInfo”: “6,2,64”,
“zwaveVersion”: “1.3”,
“alarmDelay”: “0”,
“alarmExclude”: “true”,
“alarmTimeTimestamp”: “0”,
“armConditions”: “{“auto”:false,“devices”:[{“id”:391,“propertyName”:“value”,“propertyValue”:“0”}],“time”:0}”,
“armConfig”: “0”,
“armDelay”: “0”,
“armError”: “{}”,
“armTimeTimestamp”: “0”,
“armed”: “false”,
“batteryLevel”: “80”,
“batteryLowNotification”: “true”,
“categories”: “[“security”]”,
“configured”: true,
“dead”: “false”,
“deadReason”: “”,
“defInterval”: “0”,
“deviceControlType”: “0”,
“deviceIcon”: “1020”,
“emailNotificationID”: “0”,
“emailNotificationType”: “0”,
“endPointId”: “0”,
“fibaroAlarm”: “false”,
“lastBreached”: “1610794286”,
“log”: “”,
“logTemp”: “”,
“manufacturer”: “”,
“markAsDead”: “true”,
“maxInterval”: “0”,
“minInterval”: “0”,
“model”: “”,
“nodeId”: “117”,
“parametersTemplate”: “24”,
“productInfo”: “0,96,0,2,0,1,1,3”,
“pushNotificationID”: “0”,
“pushNotificationType”: “0”,
“remoteGatewayId”: “0”,
“saveLogs”: “true”,
“serialNumber”: “”,
“smsNotificationID”: “0”,
“smsNotificationType”: “0”,
“stepInterval”: “0”,
“useTemplate”: “true”,
“userDescription”: “”,
“value”: “false”
},
“actions”: {
“forceArm”: 0,
“getParameter”: 1,
“meetArmConditions”: 0,
“reconfigure”: 0,
“setArmed”: 1,
“setInterval”: 1,
“setParameter”: 2
},
“created”: 1611321727,
“modified”: 1611321727,
“sortOrder”: 50
}

OK. I was hoping they would show the exact date & time. So what date/time approximately was that in your local time zone? And what time zone are you in?

image

image
With this capture, in reality it is 09:02 (GMT + 1)

What I was wanting to see is the JSON along with the approximate local time that the sensor breached. 09:02 (GMT + 1) is exactly what I want in terms of time but you didn’t attach the JSON.

After all the back & forth, I can just go ahead & assume the JSON is in local time. If it’s an hour off, I can fix it in the following release.

Sorry Bill,

Local time 05:07 am

{
“id”: 58,
“name”: “Porte entrée”,
“roomID”: 13,
“type”: “com.fibaro.doorSensor”,
“baseType”: “com.fibaro.doorWindowSensor”,
“enabled”: true,
“visible”: true,
“isPlugin”: false,
“parentId”: 240,
“remoteGatewayId”: 0,
“interfaces”: [
“battery”,
“fibaroAlarm”,
“fibaroAlarmArm”,
“fibaroBreach”,
“zwave”,
“zwaveConfiguration”,
“zwaveWakeup”
],
“properties”: {
“parameters”: [
{
“id”: 1,
“lastSetValue”: 99,
“size”: 1,
“value”: 99
},
{
“id”: 2,
“lastSetValue”: 1,
“size”: 1,
“value”: 1
}
],
“pollingTimeSec”: 0,
“wakeUpTime”: 4000,
“zwaveCompany”: “Everspring”,
“zwaveInfo”: “6,2,64”,
“zwaveVersion”: “1.3”,
“alarmDelay”: “0”,
“alarmExclude”: “true”,
“alarmTimeTimestamp”: “0”,
“armConditions”: “{“auto”:false,“devices”:[{“id”:58,“propertyName”:“value”,“propertyValue”:“0”}],“time”:0}”,
“armConfig”: “0”,
“armDelay”: “0”,
“armError”: “{}”,
“armTimeTimestamp”: “0”,
“armed”: “true”,
“batteryLevel”: “100”,
“batteryLowNotification”: “true”,
“categories”: “[“security”]”,
“configured”: true,
“dead”: “false”,
“deadReason”: “”,
“defInterval”: “0”,
“deviceControlType”: “0”,
“deviceIcon”: “1036”,
“emailNotificationID”: “0”,
“emailNotificationType”: “0”,
“endPointId”: “0”,
“fibaroAlarm”: “false”,
“lastBreached”: “1611425751”,
“log”: “”,
“logTemp”: “”,
“manufacturer”: “”,
“markAsDead”: “true”,
“maxInterval”: “0”,
“minInterval”: “0”,
“model”: “”,
“nodeId”: “37”,
“parametersTemplate”: “24”,
“productInfo”: “0,96,0,2,0,1,1,3”,
“pushNotificationID”: “0”,
“pushNotificationType”: “0”,
“remoteGatewayId”: “0”,
“saveLogs”: “true”,
“serialNumber”: “”,
“smsNotificationID”: “0”,
“smsNotificationType”: “0”,
“stepInterval”: “0”,
“useTemplate”: “true”,
“userDescription”: “REF : M0016”,
“value”: “false”
},
“actions”: {
“associationGet”: 1,
“associationSet”: 2,
“forceArm”: 0,
“getParameter”: 1,
“meetArmConditions”: 0,
“reconfigure”: 0,
“setArmed”: 1,
“setInterval”: 1,
“setParameter”: 2
},
“created”: 1611460251,
“modified”: 1611460251,
“sortOrder”: 53
}

No worries. Thanks for the data. I’ll let you know if I need anything else.

1 Like

The 3.18.0.0 update is live. The attribute LastContact will have the timestamp your sensor was last breached.

Many thank’s Bill ! I test today.