- lots of debugging
- beginning to add graphical stats - beginning to add device by type - added a dashboard "etage" - begining to add notification to multiple recipients in freemobile hook
This commit is contained in:
@@ -17,4 +17,12 @@
|
||||
array(METEO, "UV"),
|
||||
array(METEO, "solarradiation")
|
||||
);
|
||||
?>
|
||||
$dashboards["etage"] = array(
|
||||
array(ETAGE_SALON_RADIATEUR,"current_heating_setpoint"),
|
||||
array(ETAGE_BUREAU_RADIATEUR,"current_heating_setpoint"),
|
||||
array(ETAGE_BUREAU_PANNEAU, "state"),
|
||||
array(ETAGE_CUISINE_PLAN_TRAVAIL_ECLAIRAGE, "state"),
|
||||
array(ETAGE_CUISINE_PLAN_TRAVAIL_SPOT, "state_l1")
|
||||
|
||||
);
|
||||
?>
|
||||
|
||||
@@ -31,11 +31,14 @@ $deviceTable = array(
|
||||
// "" => "ETAGE_SDB_RADIATEUR",
|
||||
"0x5c0272fffec4de9e" => "ETAGE_BUREAU_RADIATEUR",
|
||||
"0x00158d0001a0028c" => "ETAGE_BUREAU_FENETRE",
|
||||
"0x14b457fffe42a2c9" => "ETAGE_BUREAU_PANNEAU",
|
||||
"0x842e14fffe8e3b67" => "ETAGE_BUREAU_ECLAIRAGE_INTER",
|
||||
"0x00158d0001de080d" => "ETAGE_CHAMBRE_FENETRE",
|
||||
"0x842e14fffe8c53a5" => "ETAGE_CUISINE_PLAN_TRAVAIL_INTER",
|
||||
"0x00124b00251ea4a7" => "ETAGE_CUISINE_PLAN_TRAVAIL_INTER",
|
||||
"0x680ae2fffe403f22" => "ETAGE_CUISINE_PLAN_TRAVAIL_ECLAIRAGE",
|
||||
"0xbc33acfffe65621b" => "ETAGE_CUISINE_PLAN_TRAVAIL_SPOT",
|
||||
"0x00158d0001ddefe1" => "ETAGE_ENTREE_PORTE",
|
||||
"1" => "ETAGE_CUISINE_PLAN_TRAVAIL_GROUPE_ECLAIRAGE",
|
||||
"0x00158d00019f370e" => "ETAGE_PORTE_ENTREE",
|
||||
"0x00158d00044fd579" => "ETAGE_SALON_FENETRE",
|
||||
"0x00158d0004621e1f" => "ETAGE_CUISINE_FENETRE",
|
||||
"0x00158d0001ddefe1" => "ETAGE_PORTE_FENETRE",
|
||||
|
||||
@@ -13,22 +13,22 @@ $properties2log = array(
|
||||
"local_temperature" => 0.5,
|
||||
"state_l1" => null,
|
||||
"state_l2" => null,
|
||||
"humidity" => null,
|
||||
"humidity" => 0.9,
|
||||
"current_heating_setpoint" => null,
|
||||
"position" => null,
|
||||
"pressure" => 10,
|
||||
"occupancy" => null,
|
||||
"illuminance_lux" => function($value) {($value < 500?50:$value*10/100); return $value;},
|
||||
"illuminance_lux" => function($value) {$r = ($value < 500?50:$value*10/100); return $r;},
|
||||
// "illuminance" => 8,
|
||||
"requested_brightness_level" => function($value) {($value < 500?50:$value*10/100);return $value;},
|
||||
"requested_brightness_level" => function($value) {$r = ($value < 500?50:$value*10/100);return $r;},
|
||||
"tempc" => 0.5,
|
||||
"humidity" => null,
|
||||
"humidity" => 1,
|
||||
"dewptc" => 0.5,
|
||||
"windchillc" => 0.5,
|
||||
"winddir" => 40,
|
||||
"windspeedkmh" => 5,
|
||||
"windgustkmh" => 5,
|
||||
"rainin" => null,
|
||||
"rainin" => 0.5,
|
||||
//"dailyrainin" => null,
|
||||
//"weeklyrainin" => null,
|
||||
//"monthlyrainin" => null,
|
||||
@@ -36,7 +36,7 @@ $properties2log = array(
|
||||
"solarradiation" => 10,
|
||||
"UV" => null,
|
||||
"indoortempc" => 0.5,
|
||||
"indoorhumidity" => null,
|
||||
"indoorhumidity" => 0.5,
|
||||
"baromin" => 10
|
||||
);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ $propertyByType = array(
|
||||
"brightness",
|
||||
"state_l1",
|
||||
"state_l2"
|
||||
)
|
||||
),
|
||||
"climate" => array(
|
||||
"local_temperature",
|
||||
"value",
|
||||
|
||||
31
config/types.php
Normal file
31
config/types.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
$types = array(
|
||||
"light" => array(
|
||||
"0xbc33acfffe6561e4",
|
||||
"0xbc33acfffe65621b",
|
||||
"0x086bd7fffe5aeab6",
|
||||
"0x588e81fffe343e8f",
|
||||
"0x680ae2fffe403f22",
|
||||
"0x14b457fffe42a2c9"
|
||||
),
|
||||
"switch" => array(
|
||||
"0xbc33acfffe458c65",
|
||||
"0xbc33acfffe4583f7",
|
||||
"0x00158d0005c1a998",
|
||||
"0x842e14fffe9be0fc",
|
||||
"0x086bd7fffe40482d",
|
||||
"0x5c0272fffec4de9"
|
||||
),
|
||||
"climate" => array(
|
||||
"0x00158d0001923c21",
|
||||
"0xbc33acfffe458c65",
|
||||
"0x5c0272fffec4de9e",
|
||||
"0xbc33acfffe4583f7"
|
||||
),
|
||||
"cover" => array(
|
||||
"0x842e14fffe9be0fc"
|
||||
),
|
||||
"hvac" =>
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user