Browse Source
			
			
			Merge pull request #506 from chehrlic/chris_vz
			
				RPI: Fix reading negative temperature - now also for Hoymiles600/1200 inverters
			
			
				pull/524/head
			
			
		 
		
			
				
					
						 Lukas Pusch
					
					3 years ago
						Lukas Pusch
					
					3 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					tools/rpi/hoymiles/decoders/__init__.py
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -527,7 +527,7 @@ class Hm600Decode0B(StatusResponse): | 
			
		
	
		
		
			
				
					|  |  |     @property |  |  |     @property | 
			
		
	
		
		
			
				
					|  |  |     def temperature(self): |  |  |     def temperature(self): | 
			
		
	
		
		
			
				
					|  |  |         """ Inverter temperature in °C """ |  |  |         """ Inverter temperature in °C """ | 
			
		
	
		
		
			
				
					
					|  |  |         return self.unpack('>H', 38)[0]/10 |  |  |         return self.unpack('>h', 38)[0]/10 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     @property |  |  |     @property | 
			
		
	
		
		
			
				
					|  |  |     def event_count(self): |  |  |     def event_count(self): | 
			
		
	
		
		
			
				
					|  |  |         """ Event counter """ |  |  |         """ Event counter """ | 
			
		
	
	
		
		
			
				
					|  | @ -660,7 +660,7 @@ class Hm1200Decode0B(StatusResponse): | 
			
		
	
		
		
			
				
					|  |  |     @property |  |  |     @property | 
			
		
	
		
		
			
				
					|  |  |     def temperature(self): |  |  |     def temperature(self): | 
			
		
	
		
		
			
				
					|  |  |         """ Inverter temperature in °C """ |  |  |         """ Inverter temperature in °C """ | 
			
		
	
		
		
			
				
					
					|  |  |         return self.unpack('>H', 58)[0]/10 |  |  |         return self.unpack('>h', 58)[0]/10 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     @property |  |  |     @property | 
			
		
	
		
		
			
				
					|  |  |     def event_count(self): |  |  |     def event_count(self): | 
			
		
	
		
		
			
				
					|  |  |         """ Event counter """ |  |  |         """ Event counter """ | 
			
		
	
	
		
		
			
				
					|  | 
 |