1
0
moha/config/properties2log.php

44 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(
2022-01-19 00:22:34 +01:00
"availability" => null,
2022-01-17 00:18:50 +01:00
"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,
"humidity" => 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,
"tamper" => null,
2022-01-23 09:46:06 +01:00
"illuminance_lux" => function($value) {($value < 500?50:$value*10/100); return $value;},
2022-01-17 00:18:50 +01:00
// "illuminance" => 8,
2022-01-23 09:46:06 +01:00
"requested_brightness_level" => function($value) {($value < 500?50:$value*10/100);return $value;},
2022-01-19 00:22:34 +01:00
"tempf" => 0.5,
2022-01-17 00:18:50 +01:00
"humidity" => null,
2022-01-19 00:22:34 +01:00
"dewptf" => 0.5,
"windchillf" => 0.5,
"winddir" => 40,
2022-01-17 00:18:50 +01:00
"windspeedmph" => 20,
"windgustmph" => 20,
"rainin" => null,
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,
2022-01-19 00:22:34 +01:00
"indoortempf" => 0.5,
2022-01-17 00:18:50 +01:00
"indoorhumidity" => null,
2022-01-19 00:22:34 +01:00
"baromin" => 10
2022-01-17 00:18:50 +01:00
);