1
0
moha/config/properties2log.php

43 lines
1.1 KiB
PHP
Raw Normal View History

2022-01-17 00:18:50 +01:00
<?php
// list of properties to log in database
// key is property name => value is % of difference with stocked value. if new value is stored if
// superior or inferior at value +/- x%
$properties2log = array(
"action" => null,
"state" =>null,
"contact" => null,
2022-01-19 00:22:34 +01:00
"temperature" => 0.5,
"local_temperature" => 0.5,
2022-01-17 00:18:50 +01:00
"state_l1" => null,
"state_l2" => null,
"current_heating_setpoint" => null,
"position" => null,
2022-01-19 00:22:34 +01:00
"pressure" => 10,
2022-01-17 00:18:50 +01:00
"occupancy" => null,
"illuminance_lux" => function($value) {$r = ($value < 500?50:$value*10/100); return $r;},
2022-01-17 00:18:50 +01:00
// "illuminance" => 8,
"requested_brightness_level" => function($value) {$r = ($value < 500?50:$value*10/100);return $r;},
"tempc" => 0.5,
2022-06-10 12:44:09 +02:00
"humidity" => 2,
"dewptc" => 0.5,
"windchillc" => 0.5,
2022-01-19 00:22:34 +01:00
"winddir" => 40,
2022-05-29 01:55:22 +02:00
"windspeedkmh" => 5,
"windgustkmh" => 5,
2022-09-19 23:40:29 +02:00
"rainin" => 0.005,
2022-01-19 00:22:34 +01:00
//"dailyrainin" => null,
//"weeklyrainin" => null,
//"monthlyrainin" => null,
//"yearlyrainin" => null,
2022-01-17 00:18:50 +01:00
"solarradiation" => 10,
"UV" => null,
"indoortempc" => 0.5,
"indoorhumidity" => 0.5,
2022-12-05 12:23:43 +01:00
"barominmb" => 10,
2022-09-05 13:47:41 +02:00
"presence" => null,
"vibration" => null
2022-01-17 00:18:50 +01:00
);