Jag vet inte hur jag fick till det med ID:400 innan.
fibaro:debug('Value = ' .. fibaro:getValue(444, "value"))
rule("trueFor(00:00:01,HT.badrum.fuktsensor:value==52.00) => HT.vindhus.flkt:value=60;log('Fuktsensor, värde 60 ventilation',again(1)*1)")
rule("trueFor(00:00:01,HT.badrum.fuktsensor:value > 50.00) => HT.vindhus.flkt:value=60;log('Fuktsensor, värde 60 ventilation',again(1)*1)")
Code: Select all
{
"id": 444,
"name": "Luftfuktighetssensor",
"roomID": 25,
"type": "com.fibaro.humiditySensor",
"baseType": "com.fibaro.multilevelSensor",
"enabled": true,
"visible": true,
"isPlugin": false,
"parentId": 440,
"remoteGatewayId": 0,
"interfaces": [
"zwave"
],
"properties": {
"parameters": [
{
"id": 2,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 1,
"value": 0
},
{
"id": 3,
"lastReportedValue": 30,
"lastSetValue": 30,
"size": 2,
"value": 30
},
{
"id": 4,
"lastReportedValue": 5,
"lastSetValue": 5,
"size": 1,
"value": 5
},
{
"id": 5,
"lastReportedValue": 1,
"lastSetValue": 1,
"size": 1,
"value": 1
},
{
"id": 39,
"lastReportedValue": 20,
"lastSetValue": 20,
"size": 1,
"value": 20
},
{
"id": 40,
"lastReportedValue": 1,
"lastSetValue": 1,
"size": 1,
"value": 1
},
{
"id": 41,
"lastReportedValue": 1310976,
"lastSetValue": 1310976,
"size": 4,
"value": 1310976
},
{
"id": 42,
"lastReportedValue": 5,
"lastSetValue": 5,
"size": 1,
"value": 5
},
{
"id": 43,
"lastReportedValue": 50,
"lastSetValue": 50,
"size": 2,
"value": 50
},
{
"id": 44,
"lastReportedValue": 10,
"lastSetValue": 10,
"size": 1,
"value": 10
},
{
"id": 9,
"lastReportedValue": 256,
"lastSetValue": 256,
"size": 2,
"value": 256
},
{
"id": 45,
"lastReportedValue": 2,
"lastSetValue": 2,
"size": 1,
"value": 2
},
{
"id": 46,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 1,
"value": 0
},
{
"id": 101,
"lastReportedValue": 241,
"lastSetValue": 241,
"size": 4,
"value": 241
},
{
"id": 102,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 4,
"value": 0
},
{
"id": 103,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 4,
"value": 0
},
{
"id": 111,
"lastReportedValue": 300,
"lastSetValue": 300,
"size": 4,
"value": 300
},
{
"id": 112,
"lastReportedValue": 3600,
"lastSetValue": 3600,
"size": 4,
"value": 3600
},
{
"id": 113,
"lastReportedValue": 3600,
"lastSetValue": 3600,
"size": 4,
"value": 3600
},
{
"id": 201,
"lastReportedValue": 1,
"lastSetValue": 1,
"size": 2,
"value": 1
},
{
"id": 202,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 1,
"value": 0
},
{
"id": 203,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 2,
"value": 0
},
{
"id": 204,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 1,
"value": 0
},
{
"id": 252,
"lastReportedValue": 0,
"lastSetValue": 0,
"size": 1,
"value": 0
}
],
"pollingTimeSec": 0,
"wakeUpTime": 3600,
"zwaveCompany": "AEON Labs",
"zwaveInfo": "3,4,54",
"zwaveVersion": "1.12",
"categories": "[\"other\"]",
"configured": true,
"dead": "false",
"deadReason": "",
"deviceControlType": "0",
"deviceIcon": "31",
"emailNotificationID": "0",
"emailNotificationType": "0",
"endPointId": "0",
"log": "",
"logTemp": "",
"manufacturer": "",
"markAsDead": "true",
"model": "",
"nodeId": "89",
"parametersTemplate": "755",
"productInfo": "0,134,0,2,0,100,1,12",
"pushNotificationID": "0",
"pushNotificationType": "0",
"remoteGatewayId": "0",
"saveLogs": "true",
"serialNumber": "h'0c000100010108040900010407090800000000",
"smsNotificationID": "0",
"smsNotificationType": "0",
"unit": "%",
"useTemplate": "true",
"userDescription": "",
"value": "52.00"
},
"actions": {
"reconfigure": 0
},
"created": 1617431596,
"modified": 1617431596,
"sortOrder": 270
}