test: smartdevice variable wintermode initializied
Bridge consolidiert wifi/ethernet
This commit is contained in:
		@@ -1076,41 +1076,16 @@ sub WriteReadings {
 | 
			
		||||
                        )
 | 
			
		||||
                        && ref($v) eq 'HASH'
 | 
			
		||||
                      )
 | 
			
		||||
                    {
 | 
			
		||||
                        if ( $decode_json->{abilities}[0]{properties}
 | 
			
		||||
                            [$properties]{name} eq 'ethernet_status' )
 | 
			
		||||
                        {
 | 
			
		||||
                            readingsBulkUpdateIfChanged( $hash,
 | 
			
		||||
                                'ethernet_status-ip', $v->{ip} )
 | 
			
		||||
                              if ( ref( $v->{ip} ) ne 'HASH' );
 | 
			
		||||
                            readingsBulkUpdateIfChanged( $hash,
 | 
			
		||||
                                'ethernet_status-isconnected',
 | 
			
		||||
                                $v->{is_connected} );
 | 
			
		||||
                            # obsolet, not published anymore
 | 
			
		||||
                            # readingsBulkUpdateIfChanged( $hash,
 | 
			
		||||
                            #     'ethernet_status-mac', $v->{mac} );
 | 
			
		||||
                      {
 | 
			
		||||
                        if ($v->{is_connected} ) {
 | 
			
		||||
                          readingsBulkUpdateIfChanged( $hash,
 | 
			
		||||
                            [$properties]{name}.'-ip', $v->{ip} )
 | 
			
		||||
                            if ( ref( $v->{ip} ) ne 'HASH' );
 | 
			
		||||
                          readingsBulkUpdateIfChanged( $hash,
 | 
			
		||||
                            [$properties]{name}.'-isconnected', $v->{is_connected} )
 | 
			
		||||
                            if ( $v->{is_connected} );
 | 
			
		||||
                        }
 | 
			
		||||
                        elsif ( $decode_json->{abilities}[0]{properties}
 | 
			
		||||
                            [$properties]{name} eq 'wifi_status' )
 | 
			
		||||
                        {
 | 
			
		||||
                            # obsolet, not published anymore TODO: ask user using wifi
 | 
			
		||||
                            readingsBulkUpdateIfChanged( $hash,
 | 
			
		||||
                                'wifi_status-ssid', $v->{ssid} )
 | 
			
		||||
                              if (( ref( $v->{ssid} ) ne 'HASH' ) 
 | 
			
		||||
                              && ( $v->{is_connected} )) ;
 | 
			
		||||
                            # readingsBulkUpdateIfChanged( $hash,
 | 
			
		||||
                            #     'wifi_status-mac', $v->{mac} );
 | 
			
		||||
                            readingsBulkUpdateIfChanged( $hash,
 | 
			
		||||
                                'wifi_status-isconnected', $v->{is_connected} );
 | 
			
		||||
                            readingsBulkUpdateIfChanged( $hash,
 | 
			
		||||
                                'wifi_status-ip', $v->{ip} )
 | 
			
		||||
                              if (( ref( $v->{ip} ) ne 'HASH' )
 | 
			
		||||
                                && ( $v->{is_connected} )) ;
 | 
			
		||||
                            readingsBulkUpdateIfChanged( $hash,
 | 
			
		||||
                                'wifi_status-signal', $v->{signal} )
 | 
			
		||||
                              if ( $v->{is_connected} ) ;
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                      } # fi ethernet and wifi
 | 
			
		||||
                }
 | 
			
		||||
                $properties--;
 | 
			
		||||
 | 
			
		||||
@@ -1586,7 +1561,7 @@ sub DeletePassword {
 | 
			
		||||
  ],
 | 
			
		||||
  "release_status": "stable",
 | 
			
		||||
  "license": "GPL_2",
 | 
			
		||||
  "version": "v2.6.0",
 | 
			
		||||
  "version": "v2.6.1",
 | 
			
		||||
  "author": [
 | 
			
		||||
    "Marko Oldenburg <fhemdevelopment@cooltux.net>"
 | 
			
		||||
  ],
 | 
			
		||||
 
 | 
			
		||||
@@ -992,7 +992,7 @@ sub WriteReadings {
 | 
			
		||||
    }
 | 
			
		||||
    ;    # fi scheduled_events
 | 
			
		||||
 | 
			
		||||
    my $winter_mode;
 | 
			
		||||
    my $winter_mode = 'awake';
 | 
			
		||||
 | 
			
		||||
    do {
 | 
			
		||||
#Log3 $name, 1, "Settings pro Device : ".$decode_json->{settings}[$settings]{name};
 | 
			
		||||
@@ -2683,7 +2683,7 @@ sub SetPredefinedStartPoints {
 | 
			
		||||
  ],
 | 
			
		||||
  "release_status": "stable",
 | 
			
		||||
  "license": "GPL_2",
 | 
			
		||||
  "version": "v2.6.0",
 | 
			
		||||
  "version": "v2.6.1",
 | 
			
		||||
  "author": [
 | 
			
		||||
    "Marko Oldenburg <fhemdevelopment@cooltux.net>"
 | 
			
		||||
  ],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user