richardhopton / smartbed-mqtt

MIT License
53 stars 10 forks source link

Support for Ergo ProSmart Base #10

Closed EnragedMagician closed 8 months ago

EnragedMagician commented 1 year ago

I have the latest Ergo ProSmart base and I am using smartbed-mqtt in Home Assistant 2023.7.3. The base model shows as STS60 ~which I don't think is accurate~ and I don't have access to any of the environmental sensors in the base. Some other entities don't work like the left and right sensor status, info, and device info.

Please let me know if there's anything I can do to help bring full support for the ProSmart base into smartbed-mqtt. Thanks!

EnragedMagician commented 1 year ago

Ok so the model is correct, here is the information on my base from the Sleeptracker app:

Version: H-2.1.0 Build 87R Model: STS-60 Firmware: 6.1.25

richardhopton commented 1 year ago

Can you send screenshots of the entities created from the bed device?

richardhopton commented 1 year ago

PS. The environmental sensors don't seem to be exposed by the Sleeptracker API for STS-60 models... I will likely be removing them in a future release since they are also very inaccurate.

EnragedMagician commented 1 year ago
Screenshot 2023-07-24 at 9 55 38 AM Screenshot 2023-07-24 at 9 55 55 AM

Those are all of the entities created by smartbed-mqtt.

EnragedMagician commented 1 year ago

That's unfortunate about the sensors, I've been getting some wild VOC readings from the Sleeptracker and wanted to see what the actual live readings were with units.

EnragedMagician commented 1 year ago

I was able to pull the following environmental data for my sensors via Postman:

{
    "statusCode": 0,
    "statusMessage": "",
    "id": "TEST_ANDROID_environmentalData",
    "degreesCelsius": {
        "status": "valid",
        "lastUpdatedGMTSecs": 1690215063,
        "value": 21.535308837890625,
        "accuracy": null
    },
    "humidityPercentage": {
        "status": "valid",
        "lastUpdatedGMTSecs": 1690215063,
        "value": 45.05962371826172,
        "accuracy": null
    },
    "co2Ppm": {
        "status": "valid",
        "lastUpdatedGMTSecs": 1690215063,
        "value": 509.4612121582031,
        "accuracy": null
    },
    "vocPpb": {
        "status": "valid",
        "lastUpdatedGMTSecs": 1690215063,
        "value": 518.200933933258,
        "accuracy": null
    },
    "iaq": null
}
EnragedMagician commented 1 year ago

I found that the hello API command provided direct access to the BME680 sensor data (which includes more sensor data than the latestEnvironmentSensorData API) so I just used a RESTful sensor to pull the environmental sensor data and I found it to be pretty accurate. Of course sensor drift is inevitable and calibration is likely needed on an ongoing basis but overall I'm pretty satisfied:

Screenshot 2023-07-29 at 11 05 01 AM
xodlike commented 1 year ago

@richardhopton @EnragedMagician Any guidance for how to get the environmental data into HASS w/ an STS-60?

richardhopton commented 11 months ago

@xodlike @EnragedMagician I'm very concerned that FullPower will start locking out users who call this very large API too frequently, which is why I only call it once. I'd recommend getting a native solution that can support this data capture without the risks associated with calling their API too frequently.

richardhopton commented 8 months ago

Closing as won't do

carlosgamezvillegas commented 7 months ago

@EnragedMagician,

Can you share how you were able to pull out environmental information and build the dashboard you shared on Jul 29?

Thank you,