gadget-monk / homebridge-poolcontroller

Homebridge plugin for Pentair pools
6 stars 4 forks source link

Pool and Spa bodies showing up as circuits #3

Closed sparment closed 3 years ago

sparment commented 3 years ago

I'm running v3.0.9 with my Intellicenter and v6.0.0 pool_controller. I have the "setup water bodies... as normal circuits..." as false; but my Pool and Spa bodies are showing up as circuits in addition to the expected circuits to control them. Perhaps this is an issue with Intellicenter?

gadget-monk commented 3 years ago

Can you restart homebridge and paste the log here so I can see what's going on?

sparment commented 3 years ago

Best I can do from my phone this morning. Let me know if this doesn't work and I can try again this evening.

image

image

image

gadget-monk commented 3 years ago

This is a bit difficult to read. Also it seems like you have the homebridge debug setting on, you can leave that off and instead change the plugin's LogLevel to debug.

sparment commented 3 years ago

Thanks again for your help, here is a dump from the log:

[7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Version checked OK, getting config data [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Sending command to pool controller server: { method: 'get', data: undefined, url: 'http://192.168.1.42:4200/state/all' } [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Pool controller reports it is ready, getting initial data [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] InitialData: { time: '2020-07-27T20:17:00.000-0400', valve: 0, delay: { val: 2, name: 'nodelay', desc: 'No Delay' }, batteryVoltage: 5.02, status: { val: 1, name: 'ready', desc: 'Ready', percent: 100 }, mode: { val: 0, name: 'auto', desc: 'Auto' }, appVersion: '6.0.0', clockMode: { val: 12, name: '12 Hour' }, clockSource: { val: 3, name: 'internet', desc: 'Internet' }, circuits: [ { id: 1, isOn: false, name: 'Spa', type: [Object], showInFeatures: false, equipmentType: 'circuit' }, { id: 2, isOn: false, name: 'Cleaner', type: [Object], showInFeatures: true, equipmentType: 'circuit' }, { id: 3, isOn: false, name: 'Lights', type: [Object], showInFeatures: false, equipmentType: 'circuit' }, { id: 4, isOn: false, name: 'Air Blower', type: [Object], showInFeatures: true, equipmentType: 'circuit' }, { id: 5, isOn: false, name: 'AUX 4', type: [Object], showInFeatures: false, equipmentType: 'circuit' }, { id: 6, isOn: false, name: 'Pool', type: [Object], showInFeatures: false, equipmentType: 'circuit' } ], temps: { units: { val: 0, name: 'F', desc: 'Fahrenheit' }, waterSensor1: 83, air: 82, solar: 100, bodies: [ [Object], [Object] ], equipmentType: 'temps' }, equipment: { controllerType: 'intellicenter', maxBodies: 2, maxCircuitGroups: 16, maxCircuits: 6, maxFeatures: 32, maxHeaters: 16, maxLightGroups: 40, maxPumps: 16, maxSchedules: 100, maxValves: 4, shared: true, model: 'IntelliCenter i5PS', equipmentType: 'equipment', softwareVersion: '1.04', bootLoaderVersion: '' }, pumps: [ { id: 1, command: 10, mode: 0, driveState: 0, watts: 342, rpm: 1700, flow: 0, ppc: 0, status: [Object], time: 1217, type: [Object], name: 'VS', equipmentType: 'pump', minSpeed: 1700, maxSpeed: 3050, minFlow: 15, maxFlow: 130, speedStepSize: 100, flowStepSize: 1, circuits: [Array] } ], valves: [], heaters: [], chlorinators: [], features: [ { id: 129, showInFeatures: true, isOn: false, type: [Object], name: 'Quick Clean', equipmentType: 'feature' }, { id: 130, showInFeatures: false, isOn: true, type: [Object], name: 'Pool Low Speed', equipmentType: 'feature' } ], circuitGroups: [ { id: 193, type: [Object], name: 'Night Spa', eggTimer: 120, isOn: false, equipmentType: 'circuitGroup', circuits: [Array] } ], lightGroups: [], virtualCircuits: [ { id: 246, isOn: false, type: [Object], name: 'Freeze', equipmentType: 'virtualCircuit' }, { id: 247, isOn: false, type: [Object], name: 'Pool/Spa', equipmentType: 'virtualCircuit' }, { id: 244, isOn: false, type: [Object], name: 'Pool Heater', equipmentType: 'virtualCircuit' }, { id: 245, isOn: false, type: [Object], name: 'Spa Heater', equipmentType: 'virtualCircuit' }, { id: 251, isOn: false, type: [Object], name: 'Heater', equipmentType: 'virtualCircuit' } ], covers: [], schedules: [ { id: 1, startTime: 540, circuit: [Object], startTimeType: [Object], endTimeType: [Object], scheduleType: [Object], scheduleDays: [Object], endTime: 960, heatSource: [Object], heatSetpoint: 78, isOn: false, startDate: '2020-06-03T00:00:00.000-0400', equipmentType: 'schedule' }, { id: 2, startTime: 420, circuit: [Object], startTimeType: [Object], endTimeType: [Object], scheduleType: [Object], scheduleDays: [Object], endTime: 780, heatSource: [Object], heatSetpoint: 78, isOn: false, startDate: '2000-01-01T00:00:00.000-0500', equipmentType: 'schedule' }, { id: 3, startTime: 300, circuit: [Object], startTimeType: [Object], endTimeType: [Object], scheduleType: [Object], scheduleDays: [Object], endTime: 540, heatSource: [Object], heatSetpoint: 78, isOn: false, startDate: '2020-06-03T00:00:00.000-0400', equipmentType: 'schedule' }, { id: 4, startTime: 960, circuit: [Object], startTimeType: [Object], endTimeType: [Object], scheduleType: [Object], scheduleDays: [Object], endTime: 1380, heatSource: [Object], heatSetpoint: 78, isOn: true, startDate: '2020-06-03T00:00:00.000-0400', equipmentType: 'schedule' } ], chemControllers: [] } [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Using cached circuit accessory: circuitNumber: 1, id: poolController.1.Spa [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Using cached circuit accessory: circuitNumber: 2, id: poolController.2.Cleaner [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Adding cached light accessory: circuitNumber: 3, id: poolController.3.Lights [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Using cached circuit accessory: circuitNumber: 4, id: poolController.4.Air Blower [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Skipping circuit/accessory AUX 4 [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Using cached circuit accessory: circuitNumber: 6, id: poolController.6.Pool [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Using cached circuit accessory: circuitNumber: 129, id: poolController.129.Quick Clean [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Using cached circuit accessory: circuitNumber: 130, id: poolController.130.Pool Low Speed [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Processing Body - poolController.6.1.Pool [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Body UUID 5af980d7-875c-4a94-a23b-231811b90f31 [7/27/2020, 8:17:48 PM] [PoolControllerPlatform] Using cached body accessory: Pool [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Updating data for Pool body: state: false [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Additional data for Pool body: Curr temp: 84, target temp: 78, current state: Off, target state: Off [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Processing Body - poolController.1.2.Spa [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Body UUID 4b0ac11d-89d0-4c4a-b3a4-bb4fe86f885f [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Using cached body accessory: Spa [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Updating data for Spa body: state: false [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Additional data for Spa body: Curr temp: 97, target temp: 96, current state: Off, target state: Off [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Using cached pump accessory: Intelliflo VS [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Updating pump to true [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] watts 342 [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] RPM % 0.4927536231884058 [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Flow 0 [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] EasyTouch controller not found, skipping controller accessory [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Adding cached temp sensor: Air Temperature [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Updating temp to 82 [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Adding cached sensor: Water Temperature [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Updating temp to 83 [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] Starting socket connection... [7/27/2020, 8:17:51 PM] [PoolControllerPlatform] FROM CONTROLLER CLIENT: { "time": "2020-07-27T20:17:00.000-0400", "valve": 0, "delay": { "val": 2, "name": "nodelay", "desc": "No Delay" }, "batteryVoltage": 5.02, "status": { "val": 1, "name": "ready", "desc": "Ready", "percent": 100 }, "mode": { "val": 0, "name": "auto", "desc": "Auto" }, "appVersion": "6.0.0", "clockMode": { "val": 12, "name": "12 Hour" }, "clockSource": { "val": 3, "name": "internet", "desc": "Internet" } } [7/27/2020, 8:18:00 PM] [PoolControllerPlatform] FROM CONTROLLER CLIENT: { "time": "2020-07-27T20:18:58.000-0400", "valve": 0, "delay": { "val": 2, "name": "nodelay", "desc": "No Delay" }, "batteryVoltage": 5.02, "status": { "val": 1, "name": "ready", "desc": "Ready", "percent": 100 }, "mode": { "val": 0, "name": "auto", "desc": "Auto" }, "appVersion": "6.0.0", "clockMode": { "val": 12, "name": "12 Hour" }, "clockSource": { "val": 3, "name": "internet", "desc": "Internet" } }

gadget-monk commented 3 years ago

Thanks, this is very helpful. I think I see the bug... I will fix it and try it out, if it works will have an update out tonight

gadget-monk commented 3 years ago

published update, let me know if it works! The old circuit accessories will be cached, so you will need to do clear them (remove the homebridge-poolcontroller platform section from config.json, restart homebridge, add the section back and again restart homebridge).

sparment commented 3 years ago

It worked - thanks for the quick fix!