brettonw / neptune-apex

Neptune Apex Home Assistant Integration
1 stars 0 forks source link

Add DOS reservoir fill service #2

Closed brettonw closed 2 years ago

brettonw commented 2 years ago

The DOS sensor returns the amount of volume remaining in the reservoir, but could also return the capacity from the status.

The Neptune module has a setting for the reservoir capacity, and there is a place you can go in Fusion to "fill" the reservoir. The Apex automatically subtracts the volume delivered by the DOS from the remaining volume. You can also configure an optical water level sensor or the Neptune DDR to automatically set these values. For our purposes, these values can also be read and set using the mconf endpoint. Note this applies to both DOS pumps in a DOS module.

URL: http://apex.local/rest/config/mconf/4 Payload:

{
    "abaddr": 4,
    "name": "DOS_4",
    "hwtype": "DOS",
    "update": false,
    "updateStat": 0,
    "extra": {
        "volume": [
            20000,
            2000
        ],
        "volumeLeft": [
            20000,
            0
        ],
        "swapAddr": 0
    },
    "action": 0,
    "errorCode": 0,
    "errorMessage": ""
}

I've got my DOS connected to a 5 gallon jug next to my tank as a top-off reservoir (for now), so I don't see using the sensor approach (for now). Maybe the DOS sensor exposed to HA should be a special sensor that has both the capacity and the remaining volume, and exposes a "refill" button, or a "refill" service that takes an amount as a parameter?