Draw graphs for avtech switch state.

This commit is contained in:
Tony Murray
2016-06-06 19:17:19 -05:00
parent ad8ecb0f82
commit b37d0f2e9e

View File

@ -781,8 +781,8 @@ function avtech_add_sensor($device, $sensor) {
//Create State Translation
if (isset($state_index_id)) {
$states = array(
array($state_index_id,'Off',0,0,-1),
array($state_index_id,'On',0,1,0),
array($state_index_id,'Off',1,0,-1),
array($state_index_id,'On',1,1,0),
);
foreach($states as $value){
$insert = array(