Page 1 of 1

P1 "Object reference not set to an instance of an object"

Posted: Thu Jun 23, 2016 4:45 pm
by m_b_e
Hi,

I just installed my Smile P1 running firmware version 2.1.13, and am getting the expected data on the Smile's web page. However, in Homeseer 3 (Linux version 3.0.0.208) using the Plugwise Pro plug-in (version 3.0.3.0) I'm not seeing any data from the P1.

The HS log does show that the plug-in is connecting to the P1, but then runs into an error:

Code: Select all

Jun-23 16:30:08 	  	Plugwise Pro 	Smile P1 error 2 reading data: Object reference not set to an instance of an object
Jun-23 16:30:08 	  	Plugwise Pro 	Smile P1 information retreivement -- Smile P1 vendor model = Kaifa
Jun-23 16:30:08 	  	Plugwise Pro 	PollSmileP1: Query=http://192.168.2.2/core/modules
Jun-23 16:30:08 	  	Plugwise Pro 	Smile P1 information retreivement -- Smile P1 firmware = 2.1.13
Jun-23 16:30:01 	  	Plugwise Pro 	PollSmileP1: Query=http://192.168.2.2/update/firmware 
I do not have a gas meter, so my Smile only reports electricity data (/core/modules):

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modules>
	<module id='1568335aa844438cae0bb8195365d41b'>
		<vendor_name>Kaifa</vendor_name>
		<vendor_model>KFM5KAIFA-METER</vendor_model>
		<hardware_version></hardware_version>
		<firmware_version></firmware_version>
		<created_date>2016-06-23T14:51:20.275+02:00</created_date>
		<modified_date>2016-06-23T16:30:59.331+02:00</modified_date>
		<deleted_date></deleted_date>
		<services>
			<electricity_interval_meter id='7d8b5feca9a44d8e9ef45ccc7a1064cd'>
				<measurement log_date='2016-06-23T16:00:00+02:00' unit='Wh' interval='PT300S' directionality='produced' tariff_indicator='nl_offpeak'>0.000</measurement>
				<measurement log_date='2016-06-23T16:00:00+02:00' unit='Wh' interval='PT300S' directionality='produced' tariff_indicator='nl_peak'>0.000</measurement>
				<measurement log_date='2016-06-23T16:00:00+02:00' unit='Wh' interval='PT300S' directionality='consumed' tariff_indicator='nl_offpeak'>77.000</measurement>
				<measurement log_date='2016-06-23T16:00:00+02:00' unit='Wh' interval='PT300S' directionality='consumed' tariff_indicator='nl_peak'>0.000</measurement>
			</electricity_interval_meter>
			<electricity_cumulative_meter id='3228e520b4744bf7a587769f0546bc32'>
				<measurement log_date='2016-06-23T16:25:00+02:00' unit='Wh' directionality='produced' tariff_indicator='nl_offpeak'>0.000</measurement>
				<measurement log_date='2016-06-23T16:25:00+02:00' unit='Wh' directionality='produced' tariff_indicator='nl_peak'>0.000</measurement>
				<measurement log_date='2016-06-23T16:25:00+02:00' unit='Wh' directionality='consumed' tariff_indicator='nl_offpeak'>510.000</measurement>
				<measurement log_date='2016-06-23T16:25:00+02:00' unit='Wh' directionality='consumed' tariff_indicator='nl_peak'>0.000</measurement>
			</electricity_cumulative_meter>
			<electricity_point_meter id='446ff3f048394306a0ef09e00f13a172'>
				<measurement log_date='2016-06-23T16:30:49+02:00' unit='W' directionality='produced'>0.000</measurement>
				<measurement log_date='2016-06-23T16:30:49+02:00' unit='W' directionality='consumed'>268.000</measurement>
			</electricity_point_meter>
		</services>
		<protocols>
			<dsmrmain id='e1ba0a7df7e74ec1931c7d2d6550580b'>
				<serial>E0025000042349615</serial>
				<dsmrmbuses>
				</dsmrmbuses>
			</dsmrmain>
		</protocols>
	</module>
</modules>
Could that be the problem? Or does anyone else have any idea what the cause of the error could be?

Thanks,

Marc

Re: P1 "Object reference not set to an instance of an object"

Posted: Wed Sep 21, 2016 9:17 am
by bradnywells
Object reference not set to an instance of an object. exactly what it says, you are trying to use a null object as if it was a properly referenced object. Most of the time, when you try to assing value into object, and if the value is null, then this kind of exception occur. NullReferenceException indicates that you are trying to access member fields, or function types, on an object reference that points to null. That means the reference to an Object which is not initialized.



Wells

Re: P1 "Object reference not set to an instance of an object"

Posted: Thu Sep 22, 2016 3:47 pm
by m_b_e
Yes, I know what the error means, but it's thrown by a third party plugin, so I don't have access to the code to try and debug it...