Bug 2335 - Current Cost Plugin does not create devices for additional sensors
Current Cost Plugin does not create devices for additional sensors
Status: CONFIRMED
Product: HS3
Classification: Unclassified
Component: CurrentCost Plugin
unspecified
Other Linux Raspberry PI
: High major
Assigned To: wade
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-25 17:31 UTC by Al V
Modified: 2016-02-26 17:53 UTC (History)
3 users (show)

See Also:
Version being used: 3.0.0.35
Web Browser: Chrome-latest


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Al V 2014-10-25 17:31:42 UTC
The CC plugin does not create devices for additional sensors.  I have additional IAM sensors that the plugin sees, but does not create devices for and floods the HS log with the messages below.

Oct-25 3:52:18 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:18 PM	 	Current Cost	Debug: Additional value read: sensor=6
Oct-25 3:52:17 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:17 PM	 	Current Cost	Debug: Additional value read: sensor=8
Oct-25 3:52:17 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:17 PM	 	Current Cost	Debug: Additional value read: sensor=4
Oct-25 3:52:16 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:16 PM	 	Current Cost	Debug: Additional value read: sensor=2
Oct-25 3:52:15 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:15 PM	 	Current Cost	Debug: Additional value read: sensor=7
Oct-25 3:52:14 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:14 PM	 	Current Cost	Debug: Additional value read: sensor=5
Oct-25 3:52:13 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:13 PM	 	Current Cost	Debug: Additional value read: sensor=3
Oct-25 3:52:12 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:12 PM	 	Current Cost	Debug: Additional value read: sensor=1
Oct-25 3:52:12 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:12 PM	 	Current Cost	Debug: Additional value read: sensor=0
Oct-25 3:52:11 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:11 PM	 	Current Cost	Debug: Additional value read: sensor=8
Oct-25 3:52:07 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:07 PM	 	Current Cost	Debug: Additional value read: sensor=6
Oct-25 3:52:06 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:06 PM	 	Current Cost	Debug: Additional value read: sensor=4
Oct-25 3:52:06 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:06 PM	 	Current Cost	Debug: Additional value read: sensor=2
Oct-25 3:52:05 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:05 PM	 	Current Cost	Debug: Additional value read: sensor=8
Oct-25 3:52:05 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:05 PM	 	Current Cost	Debug: Additional value read: sensor=7
Oct-25 3:52:04 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:04 PM	 	Current Cost	Debug: Additional value read: sensor=5
Oct-25 3:52:02 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:02 PM	 	Current Cost	Debug: Additional value read: sensor=3
Oct-25 3:52:02 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:02 PM	 	Current Cost	Debug: Additional value read: sensor=1
Oct-25 3:52:01 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:52:01 PM	 	Current Cost	Debug: Additional value read: sensor=0
Oct-25 3:51:59 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:51:59 PM	 	Current Cost	Debug: Additional value read: sensor=8
Oct-25 3:51:57 PM	 	Current Cost	Debug: Additional value read: type=1
Oct-25 3:51:57 PM	 	Current Cost	Debug: Additional value read: sensor=6
Comment 1 Richard Helmke 2014-12-02 11:48:33 UTC
ver 3.0.0.35 of the CC plugin is in the beta section of the updater with some changes, please see if you still have an issue with that version.
Comment 2 Al V 2014-12-02 19:43:53 UTC
Hi Rich,

I don't get the errors in the log with that version of the plugin, but the devices do not update with it and the device for the additional sensors do not get created.

Thanks
Al
Comment 3 Al V 2014-12-05 20:43:52 UTC
Hi Rich,

Looks like the baud settings did not save properly which is why the devices did not update.  However, after correcting that, the additional devices for the IAM sensors still do not get created.

Thanks
Al
Comment 4 Al V 2015-01-01 21:18:59 UTC
Here's the debug log output. It looks like it's interpreting the additional IAM sensors as updates to the main channel. 

Jan-01 7:15:56 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:53 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:52 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:51 PM	 	Current Cost	Debug: SensorID has been updated.
Jan-01 7:15:51 PM	 	Current Cost	Debug: DisplayTime has been updated.
Jan-01 7:15:51 PM	 	Current Cost	Debug: Temperature has been updated.
Jan-01 7:15:50 PM	 	Current Cost	Debug: RealUsageNowCh3 has been updated.
Jan-01 7:15:50 PM	 	Current Cost	Debug: RealUsageNowCh2 has been updated.
Jan-01 7:15:50 PM	 	Current Cost	Debug: RealUsageNowCh1 has been updated.
Jan-01 7:15:50 PM	 	Current Cost	Debug: RealUsageNowTotal has been updated.
Jan-01 7:15:49 PM	 	Current Cost	Debug: ChargeRate has been updated.
Jan-01 7:15:49 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 7, Channels=0/0/0
Jan-01 7:15:46 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:45 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:44 PM	 	Current Cost	Debug: SensorID has been updated.
Jan-01 7:15:44 PM	 	Current Cost	Debug: DisplayTime has been updated.
Jan-01 7:15:43 PM	 	Current Cost	Debug: Temperature has been updated.
Jan-01 7:15:43 PM	 	Current Cost	Debug: RealUsageNowCh3 has been updated.
Jan-01 7:15:43 PM	 	Current Cost	Debug: RealUsageNowCh2 has been updated.
Jan-01 7:15:42 PM	 	Current Cost	Debug: RealUsageNowCh1 has been updated.
Jan-01 7:15:42 PM	 	Current Cost	Debug: RealUsageNowTotal has been updated.
Jan-01 7:15:42 PM	 	Current Cost	Debug: ChargeRate has been updated.
Jan-01 7:15:42 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 5, Channels=32/0/0
Jan-01 7:15:41 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 0, Channels=563/1702/0
Jan-01 7:15:38 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:36 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:32 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:31 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 0, Channels=400/1705/0
Jan-01 7:15:28 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:26 PM	 	Current Cost	Debug: SensorID has been updated.
Jan-01 7:15:26 PM	 	Current Cost	Debug: DisplayTime has been updated.
Jan-01 7:15:26 PM	 	Current Cost	Debug: Temperature has been updated.
Jan-01 7:15:26 PM	 	Current Cost	Debug: RealUsageNowCh3 has been updated.
Jan-01 7:15:25 PM	 	Current Cost	Debug: RealUsageNowCh2 has been updated.
Jan-01 7:15:25 PM	 	Current Cost	Debug: RealUsageNowCh1 has been updated.
Jan-01 7:15:25 PM	 	Current Cost	Debug: RealUsageNowTotal has been updated.
Jan-01 7:15:25 PM	 	Current Cost	Debug: ChargeRate has been updated.
Jan-01 7:15:24 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 2, Channels=135/0/0
Jan-01 7:15:23 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:21 PM	 	Current Cost	Debug: SensorID has been updated.
Jan-01 7:15:21 PM	 	Current Cost	Debug: DisplayTime has been updated.
Jan-01 7:15:21 PM	 	Current Cost	Debug: Temperature has been updated.
Jan-01 7:15:21 PM	 	Current Cost	Debug: RealUsageNowCh3 has been updated.
Jan-01 7:15:21 PM	 	Current Cost	Debug: RealUsageNowCh2 has been updated.
Jan-01 7:15:20 PM	 	Current Cost	Debug: RealUsageNowCh1 has been updated.
Jan-01 7:15:20 PM	 	Current Cost	Debug: RealUsageNowTotal has been updated.
Jan-01 7:15:20 PM	 	Current Cost	Debug: ChargeRate has been updated.
Jan-01 7:15:19 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 8, Channels=163/0/0
Jan-01 7:15:15 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:13 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:11 PM	 	Current Cost	Debug: SensorID has been updated.
Jan-01 7:15:11 PM	 	Current Cost	Debug: DisplayTime has been updated.
Jan-01 7:15:11 PM	 	Current Cost	Debug: Temperature has been updated.
Jan-01 7:15:10 PM	 	Current Cost	Debug: RealUsageNowCh3 has been updated.
Jan-01 7:15:10 PM	 	Current Cost	Debug: RealUsageNowCh2 has been updated.
Jan-01 7:15:10 PM	 	Current Cost	Debug: RealUsageNowCh1 has been updated.
Jan-01 7:15:09 PM	 	Current Cost	Debug: RealUsageNowTotal has been updated.
Jan-01 7:15:09 PM	 	Current Cost	Debug: ChargeRate has been updated.
Jan-01 7:15:09 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 0, Channels=3046/4080/0
Jan-01 7:15:07 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:04 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:15:01 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:14:58 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 0, Channels=2889/4090/0
Jan-01 7:14:57 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 7, Channels=0/0/0
Jan-01 7:14:54 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:14:53 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:14:51 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 6, Channels=3/0/0
Jan-01 7:14:50 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 8, Channels=160/0/0
Jan-01 7:14:49 PM	 	Current Cost	Debug: SensorID has been updated.
Jan-01 7:14:48 PM	 	Current Cost	Debug: DisplayTime has been updated.
Jan-01 7:14:48 PM	 	Current Cost	Debug: Temperature has been updated.
Jan-01 7:14:48 PM	 	Current Cost	Debug: RealUsageNowCh3 has been updated.
Jan-01 7:14:48 PM	 	Current Cost	Debug: RealUsageNowCh2 has been updated.
Jan-01 7:14:48 PM	 	Current Cost	Debug: RealUsageNowCh1 has been updated.
Jan-01 7:14:47 PM	 	Current Cost	Debug: RealUsageNowTotal has been updated.
Jan-01 7:14:47 PM	 	Current Cost	Debug: ChargeRate has been updated.
Jan-01 7:14:47 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 0, Channels=3090/4084/0
Jan-01 7:14:46 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 7, Channels=0/0/0
Jan-01 7:14:44 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:14:43 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 8, Channels=174/0/0
Jan-01 7:14:41 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 6, Channels=3/0/0
Jan-01 7:14:40 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 5, Channels=32/0/0
Jan-01 7:14:36 PM	 	Current Cost	Debug: XML Error: The 'msg' start tag on line 1 position 2 does not match the end tag of 'sensor'. Line 1, position 9.
Jan-01 7:14:33 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:14:29 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:14:25 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:14:24 PM	 	Current Cost	Debug: SensorID has been updated.
Jan-01 7:14:24 PM	 	Current Cost	Debug: DisplayTime has been updated.
Jan-01 7:14:24 PM	 	Current Cost	Debug: Temperature has been updated.
Jan-01 7:14:24 PM	 	Current Cost	Debug: RealUsageNowCh3 has been updated.
Jan-01 7:14:24 PM	 	Current Cost	Debug: RealUsageNowCh2 has been updated.
Jan-01 7:14:24 PM	 	Current Cost	Debug: RealUsageNowCh1 has been updated.
Jan-01 7:14:23 PM	 	Current Cost	Debug: RealUsageNowTotal has been updated.
Jan-01 7:14:23 PM	 	Current Cost	Debug: ChargeRate has been updated.
Jan-01 7:14:23 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 8, Channels=171/0/0
Jan-01 7:14:22 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:14:21 PM	 	Current Cost	Debug: SensorID has been updated.
Jan-01 7:14:21 PM	 	Current Cost	Debug: DisplayTime has been updated.
Jan-01 7:14:21 PM	 	Current Cost	Debug: Temperature has been updated.
Jan-01 7:14:20 PM	 	Current Cost	Debug: RealUsageNowCh3 has been updated.
Jan-01 7:14:20 PM	 	Current Cost	Debug: RealUsageNowCh2 has been updated.
Jan-01 7:14:20 PM	 	Current Cost	Debug: RealUsageNowCh1 has been updated.
Jan-01 7:14:20 PM	 	Current Cost	Debug: RealUsageNowTotal has been updated.
Jan-01 7:14:20 PM	 	Current Cost	Debug: ChargeRate has been updated.
Jan-01 7:14:20 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 6, Channels=3/0/0
Jan-01 7:14:19 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:14:17 PM	 	Current Cost	Debug: SensorID has been updated.
Jan-01 7:14:17 PM	 	Current Cost	Debug: DisplayTime has been updated.
Jan-01 7:14:17 PM	 	Current Cost	Debug: Temperature has been updated.
Jan-01 7:14:17 PM	 	Current Cost	Debug: RealUsageNowCh3 has been updated.
Jan-01 7:14:16 PM	 	Current Cost	Debug: RealUsageNowCh2 has been updated.
Jan-01 7:14:16 PM	 	Current Cost	Debug: RealUsageNowCh1 has been updated.
Jan-01 7:14:16 PM	 	Current Cost	Debug: RealUsageNowTotal has been updated.
Jan-01 7:14:16 PM	 	Current Cost	Debug: ChargeRate has been updated.
Jan-01 7:14:16 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 7, Channels=0/0/0
Jan-01 7:14:15 PM	 	Current Cost	Debug: XML Error: There are multiple root elements. Line 2, position 2.
Jan-01 7:14:13 PM	 	Current Cost	Debug: SensorID has been updated.
Jan-01 7:14:13 PM	 	Current Cost	Debug: DisplayTime has been updated.
Jan-01 7:14:13 PM	 	Current Cost	Debug: Temperature has been updated.
Jan-01 7:14:13 PM	 	Current Cost	Debug: ActualCostDiffThisMonth has been updated.
Jan-01 7:14:13 PM	 	Current Cost	Debug: ActualCostDiffDaily has been updated.
Jan-01 7:14:12 PM	 	Current Cost	Debug: ActualUsageDiffThisMonth has been updated.
Jan-01 7:14:12 PM	 	Current Cost	Debug: ActualUsageDiffDaily has been updated.
Jan-01 7:14:12 PM	 	Current Cost	Debug: ProjectedCostThisMonth has been updated.
Jan-01 7:14:11 PM	 	Current Cost	Debug: ProjectedUsageThisMonth has been updated.
Jan-01 7:14:11 PM	 	Current Cost	Debug: ActualUsageThisMonth has been updated.
Jan-01 7:14:11 PM	 	Current Cost	Debug: ActualUsageToday has been updated.
Jan-01 7:14:11 PM	 	Current Cost	Debug: ActualCostThisMonth has been updated.
Jan-01 7:14:11 PM	 	Current Cost	Debug: ActualCostToday has been updated.
Jan-01 7:14:10 PM	 	Current Cost	Debug: RealCostPerMonth has been updated.
Jan-01 7:14:10 PM	 	Current Cost	Debug: RealCostPerDay has been updated.
Jan-01 7:14:10 PM	 	Current Cost	Debug: RealCostPerHour has been updated.
Jan-01 7:14:10 PM	 	Current Cost	Debug: RealUsageNowCh3 has been updated.
Jan-01 7:14:10 PM	 	Current Cost	Debug: RealUsageNowCh2 has been updated.
Jan-01 7:14:10 PM	 	Current Cost	Debug: RealUsageNowCh1 has been updated.
Jan-01 7:14:10 PM	 	Current Cost	Debug: RealUsageNowTotal has been updated.
Jan-01 7:14:09 PM	 	Current Cost	Debug: ChargeRate has been updated.
Jan-01 7:14:08 PM	 	Current Cost	Debug: Calling UpdateSensors with data for Sensor 5, Channels=32/0/0
Jan-01 7:14:05 PM	 	Plug-In	Finished initializing plug-in Current Cost
Comment 5 simon 2016-02-26 17:51:56 UTC
Same issue with devices not generated for IAMs
Comment 6 simon 2016-02-26 17:53:31 UTC
Same issue with devices not generated for IAMs