Crewski / njsPC-HA

Home Assistant integration for nodejs-PoolController
30 stars 6 forks source link

Sensors are listed as switches in Home Assistant can be turned off and on. No values are provided. #27

Closed kennybitte closed 1 year ago

kennybitte commented 1 year ago

After installing it only adds switches for sensors, but no actual status of the sensor's reading.

I could turn on a switch for the air temp, or water temp, however no readings are provided. switch.air_temp switch.water_temp_1 switch.filter_pressure The only values that are transferred are the static settings for the REM-Chem settings such as "number.rem_chem1_calcium_hardness"

Not sure what I am missing as REM and njsPC are working great.

Crewski commented 1 year ago

Hmmm...that's an odd one. Did you try to reload the integration and see if it corrects itself?

kennybitte commented 1 year ago

Yes multiple times. I deleted it from HA integrations, then went to HACS and did a reinstall of it with the same results. I am going to troubleshoot it further to see if I can identify the issue. I mainly asked this to see if there were other users experiencing this same issue.

Respect.

rstrouse commented 1 year ago

Do you have an entity named sensor.water_temp_1 and sensor.air_temp? Also from devices and services click on the devices for the integration. You should see a device in the list that matches the name of the Pool Panel in my case it is IntelliCenter 10PS. The model name should be Control Panel. Click on it and it should show the associated sensors and controls.

image

kennybitte commented 1 year ago

I don't have a IntelliCenter controller. I'm using the "DIY Standalone Nixie Pool Controller". image

kennybitte commented 1 year ago

water temp1

kennybitte commented 1 year ago

image

rstrouse commented 1 year ago

Delete the devices for Water Temp 1, Water Temp 2, and Air Temp then reload the integration. I do not know how those would get associated to the wrong domain unless they existed before the integration was loaded.

kennybitte commented 1 year ago

I completely deleted the integration and all entities. Then restarted HA and re-installed it. Same results .[image: water temp1.JPG] [image: njsPC-HA - Devices.JPG] -Kenneth Anglin

On Fri, May 5, 2023 at 3:50 PM rstrouse @.***> wrote:

Delete the devices for Water Temp 1, Water Temp 2, and Air Temp then reload the integration. I do not know how those would get associated to the wrong domain unless they existed before the integration was loaded.

— Reply to this email directly, view it on GitHub https://github.com/Crewski/njsPC-HA/issues/27#issuecomment-1536705218, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMYKFTQR77ATCIMU3GB6ATXEVKYBANCNFSM6AAAAAAXTJRQ4U . You are receiving this because you authored the thread.Message ID: @.***>

Crewski commented 1 year ago

Can you post the response of a GET request to http://<njsPC-ipaddress>:4200/state/all. That'll give us an idea of what we are working with.

kennybitte commented 1 year ago

{ "systemUnits": { "val": 0, "name": "english", "desc": "English" }, "startTime": "2023-05-11T09:15:39.618-0400", "time": "2023-05-13T10:11:01.885-0400", "valve": 0, "delay": {}, "batteryVoltage": 0, "status": { "val": 1, "name": "ready", "desc": "Ready", "percent": 100 }, "mode": { "val": 0, "name": "auto", "desc": "Auto" }, "appVersion": "8.0.1", "appVersionState": { "gitLocalBranch": "master", "gitLocalCommit": "5aa14551c3505d009e14cf36551710a2f67b0641", "installed": "8.0.1", "status": { "val": 0, "name": "current", "desc": "On current version" }, "nextCheckTime": "2023-05-13T12:43:00.234-0400", "githubRelease": "8.0.1", "equipmentType": "appVersion" }, "clockMode": { "val": 12, "name": "12 Hour" }, "clockSource": { "val": 3, "name": "server", "desc": "Server" }, "controllerType": "nixie", "model": "Nixie Single Body", "sunrise": "2023-05-13T06:00:16.000-0400", "sunset": "2023-05-13T20:13:43.000-0400", "alias": "", "freeze": false, "valveMode": {}, "temps": { "units": { "val": 0, "name": "F", "desc": "Fahrenheit" }, "bodies": [ { "id": 1, "heaterOptions": { "total": 1, "gas": 0, "solar": 0, "heatpump": 1, "ultratemp": 0, "hybrid": 0, "mastertemp": 0, "maxetherm": 0 }, "isCovered": false, "heaterCooldownDelay": false, "startDelay": false, "stopDelay": false, "showInDashboard": true, "heatMode": { "val": 0, "name": "off", "desc": "Off" }, "name": "Pool", "setPoint": 0, "circuit": 6, "type": { "val": 0, "name": "pool", "desc": "Pool" }, "heatStatus": { "val": 0, "name": "off", "desc": "Off" }, "isOn": true, "temp": 66.97 } ], "waterSensor1": 67, "solar": 103.4672, "air": 59.27, "waterSensor2": 60.79, "solarSensor2": 113.1512, "equipmentType": "temps" }, "equipment": { "messages": [], "controllerType": "nixie", "shared": false, "dual": false, "single": true, "maxValves": 32, "maxCircuits": 40, "maxFeatures": 32, "maxHeaters": 16, "maxLightGroups": 16, "maxCircuitGroups": 16, "maxSchedules": 100, "maxPumps": 16, "model": "Nixie Single Body", "maxBodies": 1, "equipmentType": "equipment", "softwareVersion": "1.0.0", "bootLoaderVersion": "" }, "pumps": [ { "id": 50, "status": { "name": "ok", "desc": "Ok", "val": 0 }, "pumpOnDelay": false, "type": { "val": 3, "name": "vs", "desc": "Intelliflo VS", "maxPrimingTime": 6, "minSpeed": 450, "maxSpeed": 3450, "maxCircuits": 8, "hasAddress": true }, "name": "WhisperFlo2.6THP", "isActive": true, "command": 10, "mode": 0, "driveState": 2, "watts": 1165, "rpm": 3000, "flow": 0, "ppc": 0, "time": 1430, "address": 96, "equipmentType": "pump", "minSpeed": 450, "maxSpeed": 3450, "minFlow": 15, "maxFlow": 130, "circuits": [ { "circuit": { "id": 10, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "name": "Pump2000", "showInFeatures": true, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "isActive": true, "equipmentType": "circuit" }, "speed": 2000, "units": { "val": 0, "name": "rpm", "desc": "RPM" }, "id": 1, "master": 1 }, { "circuit": { "id": 9, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "name": "Pump450", "showInFeatures": true, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": true, "isActive": true, "startTime": "2023-05-11T20:30:16.239-0400", "equipmentType": "circuit" }, "speed": 450, "units": { "val": 0, "name": "rpm", "desc": "RPM" }, "id": 2, "master": 1 }, { "circuit": { "id": 6, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "showInFeatures": true, "name": "PumpMax", "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "isActive": true, "equipmentType": "circuit" }, "speed": 3450, "units": { "val": 0, "name": "rpm", "desc": "RPM" }, "id": 3, "master": 1 }, { "circuit": { "id": 23, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "isActive": true, "name": "Pump1000", "showInFeatures": true, "startDelay": false, "stopDelay": false, "isOn": true, "manualPriorityActive": false, "startTime": "2023-05-12T07:36:23.451-0400", "equipmentType": "circuit" }, "speed": 1000, "units": { "val": 0, "name": "rpm", "desc": "RPM" }, "id": 4, "master": 1 }, { "circuit": { "id": 24, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "isActive": true, "name": "Pump2500", "showInFeatures": true, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "equipmentType": "circuit" }, "speed": 2500, "units": { "val": 0, "name": "rpm", "desc": "RPM" }, "id": 5, "master": 1 }, { "circuit": { "id": 25, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "isActive": true, "name": "Pump3000", "showInFeatures": true, "startDelay": false, "stopDelay": false, "isOn": true, "manualPriorityActive": false, "startTime": "2023-05-13T08:40:54.766-0400", "equipmentType": "circuit" }, "speed": 3000, "units": { "val": 0, "name": "rpm", "desc": "RPM" }, "id": 6, "master": 1 } ] } ], "valves": [ { "id": 50, "type": { "val": 0, "name": "standard", "desc": "Standard" }, "name": "Valve V1", "isDiverted": true, "equipmentType": "valve", "circuit": { "id": 247, "isActive": true, "isOn": true, "type": { "val": 247, "name": "poolSpa", "desc": "Pool/Spa" }, "name": "Pool/Spa", "equipmentType": "virtualCircuit" }, "isIntake": false, "isReturn": false, "isActive": true, "pinId": 0 } ], "heaters": [ { "id": 256, "startupDelay": false, "shutdownDelay": false, "name": "HeatPump", "type": { "val": 3, "name": "heatpump", "desc": "Heat Pump", "hasAddress": true, "hasPreference": true }, "endTime": "2022-10-23T10:26:34.306-0400", "isOn": false, "bodyId": 0, "equipmentType": "heater" } ], "chlorinators": [], "circuits": [ { "id": 6, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "showInFeatures": true, "name": "PumpMax", "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "isActive": true, "equipmentType": "circuit" }, { "id": 2, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "name": "HeatPump", "showInFeatures": true, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "isActive": true, "equipmentType": "circuit" }, { "id": 7, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 0, "name": "generic", "desc": "Generic" }, "name": "CPU Temp", "showInFeatures": false, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "isActive": true, "equipmentType": "circuit" }, { "id": 9, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "name": "Pump450", "showInFeatures": true, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": true, "isActive": true, "startTime": "2023-05-11T20:30:16.239-0400", "equipmentType": "circuit" }, { "id": 10, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "name": "Pump2000", "showInFeatures": true, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "isActive": true, "equipmentType": "circuit" }, { "id": 11, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#1 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, { "id": 12, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#2 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, { "id": 13, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#3 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, { "id": 14, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#4 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, { "id": 15, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#5 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, { "id": 16, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#6 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, { "id": 17, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Left Rail Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, { "id": 18, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Right Rail Light", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, { "id": 21, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 5, "name": "intellibrite", "desc": "Intellibrite", "isLight": true, "theme": "intellibrite" }, "name": "In Pool Lights", "showInFeatures": true, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "lightingTheme": { "val": 0, "name": "white", "desc": "White", "types": [ "intellibrite", "magicstream" ], "sequence": 11 }, "isActive": true, "equipmentType": "circuit" }, { "id": 3, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Wall Lights ", "showInFeatures": true, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, { "id": 4, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 0, "name": "generic", "desc": "Generic" }, "isActive": true, "name": "Water Temp 1", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "equipmentType": "circuit" }, { "id": 5, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 0, "name": "generic", "desc": "Generic" }, "isActive": true, "name": "Water Temp 2", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "equipmentType": "circuit" }, { "id": 8, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 0, "name": "generic", "desc": "Generic" }, "isActive": true, "name": "Filter Pressure", "showInFeatures": false, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "equipmentType": "circuit" }, { "id": 19, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 0, "name": "generic", "desc": "Generic" }, "isActive": true, "name": "UV Pressure", "showInFeatures": false, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "equipmentType": "circuit" }, { "id": 20, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 0, "name": "generic", "desc": "Generic" }, "isActive": true, "name": "Air Temp", "showInFeatures": false, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "equipmentType": "circuit" }, { "id": 22, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "isActive": true, "name": "Valve", "showInFeatures": false, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "equipmentType": "circuit" }, { "id": 23, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "isActive": true, "name": "Pump1000", "showInFeatures": true, "startDelay": false, "stopDelay": false, "isOn": true, "manualPriorityActive": false, "startTime": "2023-05-12T07:36:23.451-0400", "equipmentType": "circuit" }, { "id": 24, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "isActive": true, "name": "Pump2500", "showInFeatures": true, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "equipmentType": "circuit" }, { "id": 25, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "isActive": true, "name": "Pump3000", "showInFeatures": true, "startDelay": false, "stopDelay": false, "isOn": true, "manualPriorityActive": false, "startTime": "2023-05-13T08:40:54.766-0400", "equipmentType": "circuit" } ], "features": [], "circuitGroups": [ { "id": 194, "name": "Water Jets", "showInFeatures": true, "type": { "val": 0, "name": "none", "desc": "Unspecified" }, "isActive": true, "isOn": false, "equipmentType": "circuitGroup", "circuits": [ { "id": 1, "master": 1, "circuit": { "id": 6, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "showInFeatures": true, "name": "PumpMax", "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "isActive": true, "equipmentType": "circuit" }, "desiredState": 3 }, { "id": 2, "master": 1, "circuit": { "id": 22, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "isActive": true, "name": "Valve", "showInFeatures": false, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": false, "equipmentType": "circuit" }, "desiredState": 1 } ] } ], "lightGroups": [ { "id": 193, "type": { "val": 0, "name": "none", "desc": "Unspecified" }, "name": "Step Lights On", "isActive": true, "isOn": false, "manualPriorityActive": false, "equipmentType": "lightGroup", "circuits": [ { "id": 1, "circuit": { "id": 11, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#1 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, "position": 1, "color": 0, "swimDelay": 0, "master": 1 }, { "id": 2, "circuit": { "id": 12, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#2 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, "position": 2, "color": 0, "swimDelay": 1, "master": 1 }, { "id": 3, "circuit": { "id": 13, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#3 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, "position": 3, "color": 0, "swimDelay": 2, "master": 1 }, { "id": 4, "circuit": { "id": 14, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#4 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, "position": 4, "color": 0, "swimDelay": 3, "master": 1 }, { "id": 5, "circuit": { "id": 15, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#5 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, "position": 5, "color": 0, "swimDelay": 4, "master": 1 }, { "id": 6, "circuit": { "id": 16, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Step#6 Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, "position": 6, "color": 0, "swimDelay": 5, "master": 1 }, { "id": 7, "circuit": { "id": 17, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Left Rail Lights", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, "position": 7, "color": 0, "swimDelay": 6, "master": 1 }, { "id": 8, "circuit": { "id": 18, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 4, "name": "light", "desc": "Light", "isLight": true }, "name": "Right Rail Light", "showInFeatures": false, "startDelay": false, "stopDelay": false, "isOn": false, "manualPriorityActive": false, "isActive": true, "equipmentType": "circuit" }, "position": 8, "color": 0, "swimDelay": 6, "master": 1 } ], "lightingTheme": { "val": 0, "name": "white", "desc": "White", "types": [ "intellibrite", "magicstream" ], "sequence": 11 }, "action": { "val": 0, "name": "ready", "desc": "Ready" } } ], "virtualCircuits": [ { "id": 244, "isActive": true, "isOn": false, "type": { "val": 244, "name": "poolHeater", "desc": "Pool Heater" }, "name": "Pool Heater", "equipmentType": "virtualCircuit" }, { "id": 246, "isActive": true, "isOn": false, "type": { "val": 246, "name": "freeze", "desc": "Freeze" }, "name": "Freeze", "equipmentType": "virtualCircuit" }, { "id": 247, "isActive": true, "isOn": true, "type": { "val": 247, "name": "poolSpa", "desc": "Pool/Spa" }, "name": "Pool/Spa", "equipmentType": "virtualCircuit" }, { "id": 251, "isActive": true, "isOn": false, "type": { "val": 251, "name": "heater", "desc": "Heater" }, "name": "Heater", "equipmentType": "virtualCircuit" }, { "id": 258, "isActive": true, "isOn": false, "type": { "val": 258, "name": "anyHeater", "desc": "Any Heater" }, "name": "Any Heater", "equipmentType": "virtualCircuit" } ], "covers": [], "filters": [ { "id": 1, "name": "PoolFilterDE", "body": { "val": 0, "name": "pool", "desc": "Pool" }, "filterType": { "val": 2, "name": "de", "desc": "Diatom Earth", "hasBackwash": true }, "pressureUnits": { "val": 0, "name": "psi", "desc": "Pounds per Sqare Inch" }, "pressure": 21.93, "isOn": true, "equipmentType": "filter" } ], "schedules": [ { "id": 1, "startTimeType": { "val": 2, "name": "sunset", "desc": "Sunset" }, "endTimeType": { "val": 1, "name": "sunrise", "desc": "Sunrise" }, "display": { "val": 0, "name": "always", "desc": "Always" }, "circuit": { "id": 9, "freezeProtect": false, "action": { "val": 0, "name": "ready", "desc": "Ready" }, "type": { "val": 12, "name": "pool", "desc": "Pool", "hasHeatSource": true, "body": 1 }, "name": "Pump450", "showInFeatures": true, "startDelay": false, "stopDelay": false, "manualPriorityActive": false, "isOn": true, "isActive": true, "startTime": "2023-05-11T20:30:16.239-0400", "equipmentType": "circuit" }, "scheduleDays": { "val": 127, "days": [ { "name": "sun", "desc": "Sunday", "dow": 0, "bitval": 64 }, { "name": "sat", "desc": "Saturday", "dow": 6, "bitval": 32 }, { "name": "fri", "desc": "Friday", "dow": 5, "bitval": 16 }, { "name": "thu", "desc": "Thursday", "dow": 4, "bitval": 8 }, { "name": "wed", "desc": "Wednesday", "dow": 3, "bitval": 4 }, { "name": "tue", "desc": "Tuesday", "dow": 2, "bitval": 2 }, { "name": "mon", "desc": "Monday", "dow": 1, "bitval": 1 } ] }, "scheduleType": { "val": 128, "name": "repeat", "desc": "Repeats", "startDate": false, "startTime": true, "endTime": true, "days": "multi", "heatSource": true, "heatSetpoint": true }, "heatSetpoint": 78, "coolSetpoint": 100, "heatSource": { "val": 0, "name": "nochange", "desc": "No Change" }, "startTime": 480, "endTime": 1020, "startDate": "2023-04-25T00:00:00.000-0400", "isActive": true, "disabled": false, "isOn": true, "manualPriorityActive": false, "equipmentType": "schedule" } ], "chemControllers": [ { "id": 50, "saturationIndex": 0.2, "flowDetected": true, "orp": { "probe": { "saltLevel": 0, "level": 682.6, "equipmentType": "probe", "enabled": true, "master": 1, "remFeedEnabled": true, "type": 1, "connectionId": "4160b6aa-8fa2-470c-a2a7-eb7b75a7ba4f", "deviceBinding": "i2c:1:3", "remFeedId": 1 }, "chemType": "orp", "useChlorinator": false, "type": "orp", "tank": { "capacity": 0, "level": 0, "units": { "val": 1, "name": "gal", "desc": "Gallons" }, "alarmEmptyEnabled": true, "alarmEmptyLevel": 20, "equipmentType": "tank", "master": 1 }, "pump": { "isDosing": false, "equipmentType": "pump", "type": { "val": 2, "name": "ezo-pmp", "desc": "Altas EZO-PMP", "ratedFlow": true, "tank": true, "remAddress": true }, "ratedFlow": 0, "enabled": true, "master": 1, "connectionId": "4160b6aa-8fa2-470c-a2a7-eb7b75a7ba4f", "deviceBinding": null }, "dosingTimeRemaining": 0, "delayTimeRemaining": 0, "dosingVolumeRemaining": 0, "doseVolume": 200, "doseTime": 0, "lockout": false, "level": 682.6, "mixTimeRemaining": 0, "dailyLimitReached": false, "manualDosing": false, "manualMixing": false, "flowDelay": false, "dosingStatus": { "val": 2, "name": "monitoring", "desc": "Monitoring" }, "enabled": true, "freezeProtect": false, "doseHistory": [], "dailyVolumeDosed": 0, "chlor": { "isDosing": false, "master": 1 }, "setpoint": 700, "demand": 17.399999999999979, "demandHistory": { "time": [ 1683987115, 1683987105, 1683987095, 1683987084, 1683987074, 1683987064, 1683987054, 1683987044, 1683987034, 1683987024, 1683987014, 1683987004, 1683986993, 1683986983, 1683986973, 1683986963, 1683986953, 1683986943, 1683986933, 1683986923, 1683986912, 1683986902, 1683986892, 1683986882, 1683986872, 1683986862, 1683986852, 1683986842, 1683986831, 1683986821, 1683986811, 1683986801, 1683986791, 1683986781, 1683986771, 1683986761, 1683986751, 1683986740, 1683986730, 1683986720, 1683986710, 1683986700, 1683986690, 1683986680, 1683986669, 1683986659, 1683986649, 1683986639, 1683986629, 1683986619, 1683986609, 1683986598, 1683986588, 1683986578, 1683986568, 1683986558, 1683986538, 1683986528, 1683986517, 1683986507, 1683986497, 1683986487, 1683986477, 1683986467, 1683986456, 1683986446, 1683986436, 1683986426, 1683986416, 1683986406, 1683986396, 1683986386, 1683986375, 1683986365, 1683986355, 1683986345, 1683986335, 1683986325, 1683986315, 1683986305, 1683986294, 1683986284, 1683986274, 1683986264, 1683986254, 1683986244, 1683986234, 1683986224, 1683986213, 1683986203, 1683986193, 1683986183, 1683986173, 1683986163, 1683986153, 1683986143, 1683986133, 1683986122, 1683986112, 1683986102 ], "value": [ 17.399999999999979, 17.399999999999979, 17.200000000000047, 17, 17.200000000000047, 17.100000000000024, 17.200000000000047, 17.299999999999956, 17.299999999999956, 17.299999999999956, 17.100000000000024, 17.299999999999956, 17.399999999999979, 17.100000000000024, 17.200000000000047, 17.299999999999956, 17.200000000000047, 17, 17.399999999999979, 17.399999999999979, 17.100000000000024, 17.100000000000024, 17.100000000000024, 17, 16.899999999999979, 17.200000000000047, 17.200000000000047, 17, 17, 17, 17.100000000000024, 17.200000000000047, 16.899999999999979, 16.899999999999979, 17.100000000000024, 17.200000000000047, 16.700000000000047, 17.299999999999956, 16.799999999999956, 16.899999999999979, 16.899999999999979, 16.700000000000047, 16.700000000000047, 16.899999999999979, 16.899999999999979, 16.5, 16.700000000000047, 16.700000000000047, 16.700000000000047, 16.700000000000047, 16.700000000000047, 16.5, 16.5, 16.700000000000047, 16.5, 16.600000000000024, 16.200000000000047, 16.200000000000047, 16.5, 16.299999999999956, 16.399999999999979, 16.399999999999979, 16.399999999999979, 16.299999999999956, 16.100000000000024, 15.899999999999978, 15.899999999999978, 16.200000000000047, 16, 15.700000000000046, 16.100000000000024, 16, 15.600000000000023, 15.600000000000023, 15.5, 15.799999999999955, 15.700000000000046, 15.700000000000046, 15.700000000000046, 15.5, 15.399999999999978, 15.399999999999978, 15.299999999999955, 15.299999999999955, 15.100000000000023, 15.200000000000046, 15.100000000000023, 15.100000000000023, 15, 15.100000000000023, 15, 14.5, 14.700000000000046, 14.600000000000023, 14.700000000000046, 14.399999999999978, 14.399999999999978, 14.5, 14.200000000000046, 14.200000000000046 ], "slope": 0.0028259840638533986 }, "volumeDosed": 0, "timeDosed": 0, "equipmentType": "orp", "chlorDosingMethod": 0, "tolerance": { "low": 650, "high": 800, "enabled": true }, "phLockout": 7.52, "doserType": { "val": 1, "name": "extrelay", "desc": "External Relay" }, "dosingMethod": { "val": 2, "name": "volume", "desc": "Volume" }, "startDelay": 1, "flowReadingsOnly": true, "flowOnlyMixing": true, "maxDailyVolume": 2000, "disableOnFreeze": true, "master": 1, "maxDosingTime": 0, "maxDosingVolume": 200, "mixingTime": 3600 }, "ph": { "probe": { "temperature": 66.97, "level": 7.5, "tempUnits": { "val": 0, "name": "F", "desc": "Fahrenheit" }, "equipmentType": "probe", "enabled": true, "master": 1, "remFeedEnabled": true, "connectionId": "4160b6aa-8fa2-470c-a2a7-eb7b75a7ba4f", "deviceBinding": "i2c:1:2", "type": 1, "feedBodyTemp": true, "remFeedId": 1 }, "tank": { "capacity": 0, "level": 0, "units": { "val": 1, "name": "gal", "desc": "Gallons" }, "alarmEmptyEnabled": true, "alarmEmptyLevel": 20, "equipmentType": "tank", "master": 1 }, "pump": { "isDosing": false, "equipmentType": "pump", "type": { "val": 2, "name": "ezo-pmp", "desc": "Altas EZO-PMP", "ratedFlow": true, "tank": true, "remAddress": true }, "ratedFlow": 0, "enabled": true, "master": 1, "connectionId": "4160b6aa-8fa2-470c-a2a7-eb7b75a7ba4f", "deviceBinding": null }, "dosingTimeRemaining": 0, "delayTimeRemaining": 0, "dosingVolumeRemaining": 0, "doseVolume": 0, "doseTime": 0, "lockout": false, "level": 7.5, "mixTimeRemaining": 0, "dailyLimitReached": false, "manualDosing": false, "manualMixing": false, "flowDelay": false, "dosingStatus": { "val": 2, "name": "monitoring", "desc": "Monitoring" }, "enabled": true, "freezeProtect": false, "chemType": "ph", "type": "ph", "doseHistory": [], "dailyVolumeDosed": 0, "demand": 1177, "chlor": { "isDosing": false }, "setpoint": 7.4, "equipmentType": "ph", "phSupply": { "val": 1, "name": "acid", "desc": "Acid pH-" }, "acidType": 5, "tolerance": { "low": 7.3, "high": 7.6, "enabled": true }, "dosePriority": true, "doserType": { "val": 1, "name": "extrelay", "desc": "External Relay" }, "dosingMethod": { "val": 2, "name": "volume", "desc": "Volume" }, "startDelay": 1, "flowReadingsOnly": true, "flowOnlyMixing": true, "maxDailyVolume": 2000, "disableOnFreeze": true, "master": 1, "maxDosingTime": 0, "maxDosingVolume": 200, "mixingTime": 2700 }, "flowSensor": { "state": { "id": 4, "name": "Flow Sensor #4", "type": "DIN", "enabled": true, "ioType": "digital", "value": 1 }, "type": { "val": 1, "name": "switch", "desc": "Flow Switch", "remAddress": true }, "enabled": true, "master": 1, "connectionId": "4160b6aa-8fa2-470c-a2a7-eb7b75a7ba4f", "deviceBinding": "i2c:1:1:in0_10.4", "minimumFlow": 1, "minimumPressure": 1 }, "type": { "val": 4, "name": "rem", "desc": "REM Chem", "ph": { "min": 6.8, "max": 8 }, "hasAddress": false }, "alarms": { "flow": { "val": 0, "name": "ok", "desc": "Ok - No alarm" }, "pH": { "val": 0, "name": "ok", "desc": "Ok - No alarm" }, "orp": { "val": 0, "name": "ok", "desc": "Ok - No alarm" }, "pHTank": { "val": 0, "name": "ok", "desc": "Ok - No alarm" }, "orpTank": { "val": 0, "name": "ok", "desc": "Ok - No alarm" }, "probeFault": { "val": 0, "name": "ok", "desc": "Ok - No alarm" }, "pHProbeFault": { "val": 0, "name": "ok", "desc": "Ok - No Faults" }, "orpProbeFault": { "val": 0, "name": "ok", "desc": "Ok - No Faults" }, "pHPumpFault": { "val": 2, "name": "phpump", "desc": "pH Pump Fault" }, "orpPumpFault": { "val": 4, "name": "orppump", "desc": "ORP Pump Fault" }, "chlorFault": { "val": 0, "name": "ok", "desc": "Ok - No Faults" }, "bodyFault": { "val": 0, "name": "ok", "desc": "Ok - No Faults" }, "flowSensorFault": { "val": 0, "name": "ok", "desc": "Ok - No Faults" }, "comms": { "val": 0, "name": "ok", "desc": "Ok" }, "freezeProtect": { "val": 0, "name": "ok", "desc": "Ok - No alarm" } }, "warnings": { "waterChemistry": { "val": 0, "name": "ok", "desc": "Ok - No Warning" }, "pHLockout": { "val": 0, "name": "ok", "desc": "Ok - No limits reached" }, "pHDailyLimitReached": { "val": 0, "name": "ok", "desc": "Ok - No limits reached" }, "orpDailyLimitReached": { "val": 0, "name": "ok", "desc": "Ok - No limits reached" }, "invalidSetup": { "val": 0, "name": "ok", "desc": "Ok - No limits reached" }, "chlorinatorCommError": { "val": 0, "name": "ok", "desc": "Ok - No Warning" } }, "siCalcType": { "val": 0, "name": "lsi", "desc": "Langelier Saturation Index" }, "status": { "val": 0, "name": "ok", "desc": "Ok" }, "lastComm": 1683987114687, "isBodyOn": true, "name": "REM Chem1", "isActive": true, "csi": 0.012, "lsi": 0.2, "body": { "val": 0, "name": "pool", "desc": "Pool" }, "equipmentType": "chemController", "borates": 0, "alkalinity": 150, "calciumHardness": 220, "cyanuricAcid": 25, "lsiRange": { "low": -0.5, "high": 0.5, "enabled": true }, "master": 1, "firmware": "2.000" } ], "chemDosers": [], "delays": [] }

            -Kenneth Anglin

On Wed, May 10, 2023 at 11:21 AM Crewski @.***> wrote:

Can you post the response of a GET request to http://

:4200/state/all. That'll give us an idea of what we are working with. — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you authored the thread.Message ID: ***@***.***>
Crewski commented 1 year ago

Nothing pops out at me on this. It's so odd that somehow the temps are acting like circuits. Do you see anything in the logs after you reboot HA? You can go to Settings > System > Logs and then search by "njspc" to filter.

What version of HA are you running?

kennybitte commented 1 year ago

After looking through the logs I still had MQTT trying to do a discovery on njsPC, as I had only disabled MQTT on njsPC. I removed the MQTT devices for the pool, deleted njsPC-HA from HA, and reinstalled it. The error I see now is:

Logger: homeassistant.components.sensor Source: custom_components/njspc_ha/chemistry.py:474 Integration: Sensor (documentation, issues) First occurred: 10:05:24 AM (2 occurrences) Last logged: 10:21:48 AM

Error while setting up njspc_ha platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/njspc_ha/sensor.py", line 171, in async_setup_entry ChemistryTankLevel( File "/config/custom_components/njspc_ha/chemistry.py", line 474, in init self._value = round(tank["level"] / tank["capacity"], 2) * 100 ZeroDivisionError: division by zero

I went to njsPC and set the PH and ORP tanks to 1 gal (as they were still set to 0). Deleted njs-PC-HA from HA and reinstalled it again.

This fixed it and now all of the sensor values are listed in HA.

Looks like it didn't like the tank capacity being 0, and would stop loading all of the entities.

Thanks for your help!

-k

On Mon, May 15, 2023 at 7:28 AM Crewski @.***> wrote:

Nothing pops out at me on this. It's so odd that somehow the temps are acting like circuits. Do you see anything in the logs after you reboot HA? You can go to Settings > System > Logs and then search by "njspc" to filter.

— Reply to this email directly, view it on GitHub https://github.com/Crewski/njsPC-HA/issues/27#issuecomment-1547679679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMYKFUGCOCQIYN45OBDDLTXGIHMDANCNFSM6AAAAAAXTJRQ4U . You are receiving this because you authored the thread.Message ID: @.***>

Crewski commented 1 year ago

Glad you got it all sorted out!