@@ -2685,7 +2685,7 @@ public void decode_Temp()
26852685 if ( obj == null && OSAEObjectPropertyManager . GetObjectPropertyValue ( pName , "Learning Mode" ) . Value == "TRUE" )
26862686 {
26872687 this . Log . Info ( "New temperature sensor found. Adding to OSA" ) ;
2688- OSAEObjectManager . ObjectAdd ( "Temperature Sensor - " + ( recbuf [ ( byte ) TEMP . id1 ] * 256 + recbuf [ ( byte ) TEMP . id2 ] ) . ToString ( ) , "Temperature Sensor" , "OS TEMP SENSOR" , ( recbuf [ ( byte ) TEMP . id1 ] * 256 + recbuf [ ( byte ) TEMP . id2 ] ) . ToString ( ) , "" , true ) ;
2688+ OSAEObjectManager . ObjectAdd ( "Temperature Sensor - " + ( recbuf [ ( byte ) TEMP . id1 ] * 256 + recbuf [ ( byte ) TEMP . id2 ] ) . ToString ( ) , "" , " Temperature Sensor", "OS TEMP SENSOR" , ( recbuf [ ( byte ) TEMP . id1 ] * 256 + recbuf [ ( byte ) TEMP . id2 ] ) . ToString ( ) , "" , true ) ;
26892689 obj = obj = OSAEObjectManager . GetObjectByAddress ( ( recbuf [ ( byte ) TEMP . id1 ] * 256 + recbuf [ ( byte ) TEMP . id2 ] ) . ToString ( ) ) ;
26902690 }
26912691
@@ -2771,7 +2771,7 @@ public void decode_Hum()
27712771 if ( obj == null && OSAEObjectPropertyManager . GetObjectPropertyValue ( pName , "Learning Mode" ) . Value == "TRUE" )
27722772 {
27732773 this . Log . Info ( "New humidity sensor found. Adding to OSA" ) ;
2774- OSAEObjectManager . ObjectAdd ( "Humidity Sensor - " + ( recbuf [ ( byte ) HUM . id1 ] * 256 + recbuf [ ( byte ) HUM . id2 ] ) . ToString ( ) , "Humidity Sensor" , "HUMIDITY METER" , ( recbuf [ ( byte ) HUM . id1 ] * 256 + recbuf [ ( byte ) HUM . id2 ] ) . ToString ( ) , "" , true ) ;
2774+ OSAEObjectManager . ObjectAdd ( "Humidity Sensor - " + ( recbuf [ ( byte ) HUM . id1 ] * 256 + recbuf [ ( byte ) HUM . id2 ] ) . ToString ( ) , "" , " Humidity Sensor", "HUMIDITY METER" , ( recbuf [ ( byte ) HUM . id1 ] * 256 + recbuf [ ( byte ) HUM . id2 ] ) . ToString ( ) , "" , true ) ;
27752775 obj = obj = OSAEObjectManager . GetObjectByAddress ( ( recbuf [ ( byte ) HUM . id1 ] * 256 + recbuf [ ( byte ) HUM . id2 ] ) . ToString ( ) ) ;
27762776 }
27772777
@@ -2827,7 +2827,7 @@ public void decode_TempHum()
28272827 if ( obj == null && OSAEObjectPropertyManager . GetObjectPropertyValue ( pName , "Learning Mode" ) . Value == "TRUE" )
28282828 {
28292829 this . Log . Info ( "New temperature and humidity sensor found. Adding to OSA" ) ;
2830- OSAEObjectManager . ObjectAdd ( "Temp and Humidity Sensor - " + ( recbuf [ ( byte ) TEMP_HUM . id1 ] * 256 + recbuf [ ( byte ) TEMP_HUM . id2 ] ) . ToString ( ) , "Temp and Humidity Sensor" , "TEMP HUM METER" , ( recbuf [ ( byte ) TEMP_HUM . id1 ] * 256 + recbuf [ ( byte ) TEMP_HUM . id2 ] ) . ToString ( ) , "" , true ) ;
2830+ OSAEObjectManager . ObjectAdd ( "Temp and Humidity Sensor - " + ( recbuf [ ( byte ) TEMP_HUM . id1 ] * 256 + recbuf [ ( byte ) TEMP_HUM . id2 ] ) . ToString ( ) , "" , " Temp and Humidity Sensor", "TEMP HUM METER" , ( recbuf [ ( byte ) TEMP_HUM . id1 ] * 256 + recbuf [ ( byte ) TEMP_HUM . id2 ] ) . ToString ( ) , "" , true ) ;
28312831 obj = obj = OSAEObjectManager . GetObjectByAddress ( ( recbuf [ ( byte ) TEMP_HUM . id1 ] * 256 + recbuf [ ( byte ) TEMP_HUM . id2 ] ) . ToString ( ) ) ;
28322832 }
28332833
@@ -2996,7 +2996,7 @@ public void decode_TempHumBaro()
29962996 if ( obj == null && OSAEObjectPropertyManager . GetObjectPropertyValue ( pName , "Learning Mode" ) . Value == "TRUE" )
29972997 {
29982998 this . Log . Info ( "New temperature, humidity and barometric sensor found. Adding to OSA" ) ;
2999- OSAEObjectManager . ObjectAdd ( "Temp, Humidity and Baro Sensor - " + ( recbuf [ ( byte ) TEMP_HUM_BARO . id1 ] * 256 + recbuf [ ( byte ) TEMP_HUM_BARO . id2 ] ) . ToString ( ) , "Temp, Humidity and Baro Sensor" , "TEMP HUM BARO METER" , ( recbuf [ ( byte ) TEMP_HUM_BARO . id1 ] * 256 + recbuf [ ( byte ) TEMP_HUM_BARO . id2 ] ) . ToString ( ) , "" , true ) ;
2999+ OSAEObjectManager . ObjectAdd ( "Temp, Humidity and Baro Sensor - " + ( recbuf [ ( byte ) TEMP_HUM_BARO . id1 ] * 256 + recbuf [ ( byte ) TEMP_HUM_BARO . id2 ] ) . ToString ( ) , "" , " Temp, Humidity and Baro Sensor", "TEMP HUM BARO METER" , ( recbuf [ ( byte ) TEMP_HUM_BARO . id1 ] * 256 + recbuf [ ( byte ) TEMP_HUM_BARO . id2 ] ) . ToString ( ) , "" , true ) ;
30003000 obj = obj = OSAEObjectManager . GetObjectByAddress ( ( recbuf [ ( byte ) TEMP_HUM_BARO . id1 ] * 256 + recbuf [ ( byte ) TEMP_HUM_BARO . id2 ] ) . ToString ( ) ) ;
30013001 }
30023002
@@ -3094,7 +3094,7 @@ public void decode_Rain()
30943094 if ( obj == null && OSAEObjectPropertyManager . GetObjectPropertyValue ( pName , "Learning Mode" ) . Value == "TRUE" )
30953095 {
30963096 this . Log . Info ( "New temperature sensor found. Adding to OSA" ) ;
3097- OSAEObjectManager . ObjectAdd ( "Rain Meter - " + ( recbuf [ ( byte ) RAIN . id1 ] * 256 + recbuf [ ( byte ) RAIN . id2 ] ) . ToString ( ) , "Rain Meter" , "OS RAIN METER" , ( recbuf [ ( byte ) RAIN . id1 ] * 256 + recbuf [ ( byte ) RAIN . id2 ] ) . ToString ( ) , "" , true ) ;
3097+ OSAEObjectManager . ObjectAdd ( "Rain Meter - " + ( recbuf [ ( byte ) RAIN . id1 ] * 256 + recbuf [ ( byte ) RAIN . id2 ] ) . ToString ( ) , "" , " Rain Meter", "OS RAIN METER" , ( recbuf [ ( byte ) RAIN . id1 ] * 256 + recbuf [ ( byte ) RAIN . id2 ] ) . ToString ( ) , "" , true ) ;
30983098 obj = obj = OSAEObjectManager . GetObjectByAddress ( ( recbuf [ ( byte ) RAIN . id1 ] * 256 + recbuf [ ( byte ) RAIN . id2 ] ) . ToString ( ) ) ;
30993099 }
31003100
@@ -3152,7 +3152,7 @@ public void decode_Wind()
31523152 if ( obj == null && OSAEObjectPropertyManager . GetObjectPropertyValue ( pName , "Learning Mode" ) . Value == "TRUE" )
31533153 {
31543154 this . Log . Info ( "New wind sensor found. Adding to OSA" ) ;
3155- OSAEObjectManager . ObjectAdd ( "Wind Sensor - " + ( recbuf [ ( byte ) WIND . id1 ] * 256 + recbuf [ ( byte ) WIND . id2 ] ) . ToString ( ) , "Wind Sensor" , "WIND SENSOR" , ( recbuf [ ( byte ) WIND . id1 ] * 256 + recbuf [ ( byte ) WIND . id2 ] ) . ToString ( ) , "" , true ) ;
3155+ OSAEObjectManager . ObjectAdd ( "Wind Sensor - " + ( recbuf [ ( byte ) WIND . id1 ] * 256 + recbuf [ ( byte ) WIND . id2 ] ) . ToString ( ) , "" , " Wind Sensor", "WIND SENSOR" , ( recbuf [ ( byte ) WIND . id1 ] * 256 + recbuf [ ( byte ) WIND . id2 ] ) . ToString ( ) , "" , true ) ;
31563156 obj = obj = OSAEObjectManager . GetObjectByAddress ( ( recbuf [ ( byte ) WIND . id1 ] * 256 + recbuf [ ( byte ) WIND . id2 ] ) . ToString ( ) ) ;
31573157 }
31583158
@@ -3359,7 +3359,7 @@ public void decode_UV()
33593359 if ( obj == null && OSAEObjectPropertyManager . GetObjectPropertyValue ( pName , "Learning Mode" ) . Value == "TRUE" )
33603360 {
33613361 this . Log . Info ( "New UV sensor found. Adding to OSA" ) ;
3362- OSAEObjectManager . ObjectAdd ( "UV Sensor - " + ( recbuf [ ( byte ) UV . id1 ] * 256 + recbuf [ ( byte ) UV . id2 ] ) . ToString ( ) , "UV Sensor" , "UV SENSOR" , ( recbuf [ ( byte ) UV . id1 ] * 256 + recbuf [ ( byte ) UV . id2 ] ) . ToString ( ) , "" , true ) ;
3362+ OSAEObjectManager . ObjectAdd ( "UV Sensor - " + ( recbuf [ ( byte ) UV . id1 ] * 256 + recbuf [ ( byte ) UV . id2 ] ) . ToString ( ) , "" , " UV Sensor", "UV SENSOR" , ( recbuf [ ( byte ) UV . id1 ] * 256 + recbuf [ ( byte ) UV . id2 ] ) . ToString ( ) , "" , true ) ;
33633363 obj = obj = OSAEObjectManager . GetObjectByAddress ( ( recbuf [ ( byte ) UV . id1 ] * 256 + recbuf [ ( byte ) UV . id2 ] ) . ToString ( ) ) ;
33643364 }
33653365
@@ -3446,7 +3446,7 @@ public void decode_Current()
34463446 if ( obj == null && OSAEObjectPropertyManager . GetObjectPropertyValue ( pName , "Learning Mode" ) . Value == "TRUE" )
34473447 {
34483448 this . Log . Info ( "New Current meter found. Adding to OSA" ) ;
3449- OSAEObjectManager . ObjectAdd ( "Current Meter - " + ( recbuf [ ( byte ) CURRENT . id1 ] * 256 + recbuf [ ( byte ) CURRENT . id2 ] ) . ToString ( ) , "Current Meter" , "CURRENT METER" , ( recbuf [ ( byte ) CURRENT . id1 ] * 256 + recbuf [ ( byte ) CURRENT . id2 ] ) . ToString ( ) , "" , true ) ;
3449+ OSAEObjectManager . ObjectAdd ( "Current Meter - " + ( recbuf [ ( byte ) CURRENT . id1 ] * 256 + recbuf [ ( byte ) CURRENT . id2 ] ) . ToString ( ) , "" , " Current Meter", "CURRENT METER" , ( recbuf [ ( byte ) CURRENT . id1 ] * 256 + recbuf [ ( byte ) CURRENT . id2 ] ) . ToString ( ) , "" , true ) ;
34503450 obj = obj = OSAEObjectManager . GetObjectByAddress ( ( recbuf [ ( byte ) CURRENT . id1 ] * 256 + recbuf [ ( byte ) CURRENT . id2 ] ) . ToString ( ) ) ;
34513451 }
34523452
@@ -3489,7 +3489,7 @@ public void decode_Energy()
34893489 if ( obj == null && OSAEObjectPropertyManager . GetObjectPropertyValue ( pName , "Learning Mode" ) . Value == "TRUE" )
34903490 {
34913491 this . Log . Info ( "New Energy meter found. Adding to OSA" ) ;
3492- OSAEObjectManager . ObjectAdd ( "Energy Meter - " + ( recbuf [ ( byte ) ENERGY . id1 ] * 256 + recbuf [ ( byte ) ENERGY . id2 ] ) . ToString ( ) , "Energy Meter" , "ENERGY METER" , ( recbuf [ ( byte ) ENERGY . id1 ] * 256 + recbuf [ ( byte ) ENERGY . id2 ] ) . ToString ( ) , "" , true ) ;
3492+ OSAEObjectManager . ObjectAdd ( "Energy Meter - " + ( recbuf [ ( byte ) ENERGY . id1 ] * 256 + recbuf [ ( byte ) ENERGY . id2 ] ) . ToString ( ) , "" , " Energy Meter", "ENERGY METER" , ( recbuf [ ( byte ) ENERGY . id1 ] * 256 + recbuf [ ( byte ) ENERGY . id2 ] ) . ToString ( ) , "" , true ) ;
34933493 obj = obj = OSAEObjectManager . GetObjectByAddress ( ( recbuf [ ( byte ) ENERGY . id1 ] * 256 + recbuf [ ( byte ) ENERGY . id2 ] ) . ToString ( ) ) ;
34943494 }
34953495
@@ -3546,7 +3546,7 @@ public void decode_Weight()
35463546 if ( obj == null && OSAEObjectPropertyManager . GetObjectPropertyValue ( pName , "Learning Mode" ) . Value == "TRUE" )
35473547 {
35483548 this . Log . Info ( "New Scale found. Adding to OSA" ) ;
3549- OSAEObjectManager . ObjectAdd ( "Scale Meter - " + ( recbuf [ ( byte ) WEIGHT . id1 ] * 256 + recbuf [ ( byte ) WEIGHT . id2 ] ) . ToString ( ) , "Scale Meter" , "SCALE" , ( recbuf [ ( byte ) WEIGHT . id1 ] * 256 + recbuf [ ( byte ) WEIGHT . id2 ] ) . ToString ( ) , "" , true ) ;
3549+ OSAEObjectManager . ObjectAdd ( "Scale Meter - " + ( recbuf [ ( byte ) WEIGHT . id1 ] * 256 + recbuf [ ( byte ) WEIGHT . id2 ] ) . ToString ( ) , "" , " Scale Meter", "SCALE" , ( recbuf [ ( byte ) WEIGHT . id1 ] * 256 + recbuf [ ( byte ) WEIGHT . id2 ] ) . ToString ( ) , "" , true ) ;
35503550 obj = obj = OSAEObjectManager . GetObjectByAddress ( ( recbuf [ ( byte ) WEIGHT . id1 ] * 256 + recbuf [ ( byte ) WEIGHT . id2 ] ) . ToString ( ) ) ;
35513551 }
35523552
0 commit comments