wayne-love / ESPySpa

MIT License
10 stars 7 forks source link

Not picking up amperage (or wattage) #70

Closed chimeranzl closed 3 hours ago

chimeranzl commented 5 hours ago

Everything is working except mode (auto, on, off) and current (and therefore watts, which I'm assuming you're getting from V x A)

Build: v1.0.6-alpha-7-g85d0e2e-nightly-2024-11-14

Controller is SpaNet, model SVM1-15 Max total current 25A, heater size 3000W 220-240V 50/60Mhz, single phase

Any ideas?

Spa Response Data

RF:
,R2,0,314,36,128,6,15,20,12,17,11,2024,375,9999,1,0,240,87,69,113,140309,9143,8005,0,179,0,0,6,7548,7649,81,:
,R3,10,1,4,4,4,SW V6 21 12 13,SVM1,22260001,20000279,0,1,1,0,0,0,NA,3,200,242,In use,22,0,7,7,200,0,0,:
,R4,NORM,0,0,0,4,0,112,4,32,0,0,0,0,0,0,0,262144,0,0,101,0,0,6,80,50,0,0,5,:
,R5,0,1,0,5,0,0,0,0,0,0,0,1,1,0,379,0,7,0,4,0,0,0,1,6,6,6,:
,R6,5,1,1,1,5,3,3,380,0,0,3584,5120,31,31,4040,200,5888,1280,0,30,0,0,9,0,1,5,0,410,:
,R7,2304,0,1,0,1,0,0,16,6,2018,324,173,322,309,490,125,77,1,0,0,0,23,200,1,0,1,31,50,50,100,5,:
,R9,F1,255,0,0,0,215,0,0,0,0,0,0,:
,RA,F2,0,0,0,0,0,0,240,0,0,0,246,:
,RB,F3,16252928,0,0,0,0,0,0,0,0,0,0,:
,RC,1,0,0,0,0,0,0,0,0,2,0,0,0,0,:
,RE,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,-4,13,30,8,5,1,:*
,RG,1,1,1,1,1,1,0-,1-2-0324,1-1-01,0-,0-,0,0,0,2341,:*
,

JSON Output data

{
  "temperatures": {
    "setPoint": 38,
    "water": 37.9,
    "heater": 37.6,
    "case": 36,
    "heatpumpAmbient": 0,
    "heatpumpCondensor": 0
  },
  "power": {
    "voltage": 314,
    "current": 0,
    "power": 0,
    "totalenergy": 0
  },
  "status": {
    "heatingActive": "ON",
    "ozoneActive": "OFF",
    "state": "In use",
    "spaMode": "NORM",
    "datetime": "2024-11-17 15:21:13"
  },
  "heatpump": {
    "mode": "Heat",
    "auxheat": "OFF"
  },
  "pumps": {
    "pump1": {
      "installed": false,
      "speedType": "",
      "possibleStates": [
        "OFF"
      ],
      "state": "OFF"
    },
    "pump2": {
      "installed": true,
      "speedType": "2",
      "possibleStates": [
        "OFF",
        "AUTO"
      ],
      "state": "ON"
    },
    "pump3": {
      "installed": true,
      "speedType": "1",
      "possibleStates": [
        "OFF",
        "ON"
      ],
      "state": "OFF"
    },
    "pump4": {
      "installed": false,
      "speedType": "",
      "possibleStates": [
        "OFF"
      ],
      "state": "OFF"
    },
    "pump5": {
      "installed": false,
      "speedType": "",
      "possibleStates": [
        "OFF"
      ],
      "state": "OFF"
    }
  },
  "blower": {
    "state": "OFF",
    "mode": "Variable",
    "speed": "0"
  },
  "sleepTimers": {
    "timer1": {
      "state": "Weekdays",
      "begin": "15:08",
      "end": "23:00"
    },
    "timer2": {
      "state": "Weekdays",
      "begin": "00:08",
      "end": "05:00"
    }
  },
  "lights": {
    "speed": 5,
    "state": "OFF",
    "effect": "Color",
    "brightness": 1,
    "color": {
      "h": 360,
      "s": 100
    },
    "color_mode": "hs"
  }
}
lucasnz commented 3 hours ago

SVM1 does not have a current sensor, so no way to get this without adding a ct clamp. We are working on adding code for this, but it will require additional hardware. Stay tuned if you are interested in adding a ct clamp.

chimeranzl commented 3 hours ago

Thanks, I actually have a Shelly clamp meter in my fuse box with a spare clamp so will use that