patch-offline_status_startup_undefined #73
							
								
								
									
										2
									
								
								CHANGED
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								CHANGED
									
									
									
									
									
								
							@@ -1 +1 @@
 | 
				
			|||||||
    [log] - removed valve_names log line
 | 
					    [fix] - remove _valve_ in non valve devices fpr schedules
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -793,7 +793,7 @@ sub WriteReadings {
 | 
				
			|||||||
                    my $sub_state = 0; my $sub_value = 0;
 | 
					                    my $sub_state = 0; my $sub_value = 0;
 | 
				
			||||||
                    while ( my ( $r, $v ) = each %{ $propertie->{value} } ) {
 | 
					                    while ( my ( $r, $v ) = each %{ $propertie->{value} } ) {
 | 
				
			||||||
                      if ( ref( $v ) ne "HASH" ) {
 | 
					                      if ( ref( $v ) ne "HASH" ) {
 | 
				
			||||||
                            readingsBulkUpdate(
 | 
					                            readingsBulkUpdateIfChanged(
 | 
				
			||||||
                              $hash,
 | 
					                              $hash,
 | 
				
			||||||
                              $decode_json->{abilities}[$abilities]{name} . '-'
 | 
					                              $decode_json->{abilities}[$abilities]{name} . '-'
 | 
				
			||||||
                                . $propertie->{name} . '_'
 | 
					                                . $propertie->{name} . '_'
 | 
				
			||||||
@@ -802,7 +802,7 @@ sub WriteReadings {
 | 
				
			|||||||
                            );
 | 
					                            );
 | 
				
			||||||
                        } else {
 | 
					                        } else {
 | 
				
			||||||
                          while ( my ( $i_r, $i_v ) = each %{ $v } ) {
 | 
					                          while ( my ( $i_r, $i_v ) = each %{ $v } ) {
 | 
				
			||||||
                            readingsBulkUpdate(
 | 
					                            readingsBulkUpdateIfChanged(
 | 
				
			||||||
                              $hash,
 | 
					                              $hash,
 | 
				
			||||||
                              $decode_json->{abilities}[$abilities]{name} . '-'
 | 
					                              $decode_json->{abilities}[$abilities]{name} . '-'
 | 
				
			||||||
                              . $propertie->{name} . '_'
 | 
					                              . $propertie->{name} . '_'
 | 
				
			||||||
@@ -1109,11 +1109,6 @@ sub setState {
 | 
				
			|||||||
          if ( ReadingsVal( $name, 'device_info-category', 'unknown' ) eq
 | 
					          if ( ReadingsVal( $name, 'device_info-category', 'unknown' ) eq
 | 
				
			||||||
            'sensor' );
 | 
					            'sensor' );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# if ( $online_state eq 'offline') {
 | 
					 | 
				
			||||||
#   readingsBulkUpdate( $hash, 'humidity-humidity', '-1' );
 | 
					 | 
				
			||||||
#   readingsBulkUpdate( $hash, 'ambient_temperature-temperature', '-1' ) if (ReadingsVal($name, 'device_info-category', 'unknown') eq 'sensor');
 | 
					 | 
				
			||||||
#   readingsBulkUpdate( $hash, 'light-light', '-1' ) if (ReadingsVal($name, 'device_info-category', 'unknown') eq 'sensor');
 | 
					 | 
				
			||||||
# }
 | 
					 | 
				
			||||||
        #online state sensor I II
 | 
					        #online state sensor I II
 | 
				
			||||||
        readingsBulkUpdate( $hash, 'state',
 | 
					        readingsBulkUpdate( $hash, 'state',
 | 
				
			||||||
            $online_state eq 'online' ? RigReadingsValue( $hash, $state_string) : RigReadingsValue( $hash, 'offline') );
 | 
					            $online_state eq 'online' ? RigReadingsValue( $hash, $state_string) : RigReadingsValue( $hash, 'offline') );
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,2 +1,2 @@
 | 
				
			|||||||
UPD 2022-07-21_19:43:48 49634 FHEM/73_GardenaSmartBridge.pm
 | 
					UPD 2022-07-21_19:43:48 49634 FHEM/73_GardenaSmartBridge.pm
 | 
				
			||||||
UPD 2022-08-02_14:51:12 79067 FHEM/74_GardenaSmartDevice.pm
 | 
					UPD 2022-08-02_14:58:44 78714 FHEM/74_GardenaSmartDevice.pm
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user