Thanks for your reply waaren.
I just want to store the batteryLevel in a local variable. No need to create a new device in Domoticz.
I already have a LUA script that sends weekly email and pushover notifications of my battery-powered devices. I just miss my door sensors because they are managed in the HC3.
I'm not quite sure what you mean with curl (sorry... I'm beginning). I've tried this :
Code: Select all
{
"id": 184,
"name": "Porte Chambre",
"roomID": 228,
"view": {
"assetsPath": "/dynamic-plugins/com.fibaro.securitySensor/assets",
"jsPath": "/dynamic-plugins/com.fibaro.securitySensor",
"name": "com.fibaro.securitySensor",
"translatesPath": "/dynamic-plugins/com.fibaro.securitySensor/i18n",
"type": "ts"
},
"type": "com.fibaro.doorSensor",
"baseType": "com.fibaro.doorWindowSensor",
"enabled": true,
"visible": true,
"isPlugin": false,
"parentId": 183,
"viewXml": false,
"configXml": false,
"interfaces": [
"battery",
"fibaroAlarm",
"fibaroAlarmArm",
"fibaroBreach",
"fibaroFirmwareUpdate",
"tamper",
"zwave",
"zwaveAlarm",
"zwaveMultiChannelAssociation",
"zwaveWakeup"
],
"properties": {
"parameters": [
{
"id": 1,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 1,
"value": 0
},
{
"id": 2,
"lastReportedValue": 6,
"lastSetValue": 6,
"size": 1,
"value": 6
},
{
"id": 3,
"lastReportedValue": 3,
"lastSetValue": 3,
"size": 1,
"value": 3
},
{
"id": 11,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 1,
"value": 0
},
{
"id": 12,
"lastReportedValue": 255,
"lastSetValue": 255,
"size": 2,
"value": 255
},
{
"id": 13,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 2,
"value": 0
},
{
"id": 14,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 2,
"value": 0
},
{
"id": 15,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 2,
"value": 0
},
{
"id": 30,
"lastReportedValue": 5,
"lastSetValue": 5,
"size": 2,
"value": 5
},
{
"id": 31,
"lastReportedValue": 1,
"lastSetValue": 1,
"size": 1,
"value": 1
},
{
"id": 50,
"lastReportedValue": 300,
"lastSetValue": 300,
"size": 2,
"value": 300
},
{
"id": 51,
"lastReportedValue": 10,
"lastSetValue": 10,
"size": 2,
"value": 10
},
{
"id": 52,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 2,
"value": 0
},
{
"id": 53,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 2,
"value": 0
},
{
"id": 54,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 1,
"value": 0
},
{
"id": 55,
"lastReportedValue": 350,
"lastSetValue": 350,
"size": 2,
"value": 350
},
{
"id": 56,
"lastReportedValue": 100,
"lastSetValue": 100,
"size": 2,
"value": 100
}
],
"pollingTimeSec": 0,
"wakeUpTime": 21600,
"zwaveCompany": "Fibargroup",
"zwaveInfo": "3,4,38",
"zwaveVersion": "3.2",
"alarmDelay": 0,
"alarmExclude": true,
"alarmLevel": 0,
"alarmTimeTimestamp": 0,
"alarmType": 0,
"armConditions": {
"auto": false,
"devices": [
{
"id": 164,
"propertyName": "value",
"propertyValue": "0"
}
],
"time": 0
},
"armConfig": 0,
"armDelay": 0,
"armError": {},
"armTimeTimestamp": 0,
"armed": false,
"batteryLevel": 60,
"batteryLowNotification": true,
"categories": [
"security"
],
"configured": true,
"dead": false,
"deadReason": "",
"defInterval": 0,
"deviceControlType": 0,
"deviceIcon": 42,
"emailNotificationID": 0,
"emailNotificationType": 0,
"endPointId": 0,
"fibaroAlarm": false,
"firmwareUpdate": {
"info": "",
"progress": 0,
"status": "UpToDate",
"updateVersion": "3.2"
},
"lastBreached": 1589104821,
"log": "",
"logTemp": "",
"manufacturer": "",
"markAsDead": true,
"maxInterval": 0,
"minInterval": 0,
"model": "",
"nodeId": 27,
"parametersTemplate": "802",
"pendingActions": false,
"productInfo": "1,15,7,2,16,0,3,2",
"pushNotificationID": 0,
"pushNotificationType": 0,
"remoteGatewayId": 0,
"saveLogs": true,
"serialNumber": "h'000000000001a775",
"smsNotificationID": 0,
"smsNotificationType": 0,
"stepInterval": 0,
"tamper": true,
"updateVersion": "",
"useTemplate": true,
"userDescription": "",
"value": true
},
"actions": {},
"created": 1588543434,
"modified": 1588543434,
"sortOrder": 63
}