1
0
moha/config/properties2log.php.template

42 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2022-09-10 14:58:55 +02: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,
"temperature" => 0.5,
"local_temperature" => 0.5,
"state_l1" => null,
"state_l2" => null,
"current_heating_setpoint" => null,
"position" => null,
"pressure" => 10,
"occupancy" => null,
"illuminance_lux" => function($value) {$r = ($value < 500?50:$value*10/100); return $r;},
"requested_brightness_level" => function($value) {$r = ($value < 500?50:$value*10/100);return $r;},
"tempc" => 0.5,
"humidity" => 2,
"dewptc" => 0.5,
"windchillc" => 0.5,
"winddir" => 40,
"windspeedkmh" => 5,
"windgustkmh" => 5,
"rainin" => 0.5,
//"dailyrainin" => null,
//"weeklyrainin" => null,
//"monthlyrainin" => null,
//"yearlyrainin" => null,
"solarradiation" => 10,
"UV" => null,
"indoortempc" => 0.5,
"indoorhumidity" => 0.5,
"baromin" => 10,
"presence" => null,
"vibration" => null
);