bobobo1618 / ninesleep

MIT License
221 stars 25 forks source link

Question about available variables. #4

Open andrew-kennedy opened 5 months ago

andrew-kennedy commented 5 months ago

Any examples of what state can be retrieved from the /variables endpoint? I'm trying to decide if it's worth rooting my pod, one main reason would be to have bed presence detection for home assistant as the eight sleep API is super slow and not reliable for this information, but the pod should presumably be able to reliably work locally. The other issue is the bed temperature sensing doesn't work using the api when the pod is not "on". Can both of these issues currently be worked around with ninesleep?

jonatino commented 4 months ago

All variables

const variableNames = [
    "ipaddr",
    "sigstr",
    "ssid",
    "settings",
    "updating",
    "priming",
    "waterLevel",
    "sensorLabel",
    "heatLevelL",
    "tgHeatLevelL",
    "heatTimeL",
    "heatLevelR",
    "tgHeatLevelR",
    "heatTimeR",
    "hubInfo",
    "macAddr",
    "sshPort",
    "supportedPatterns",
    "dismissAlarm",
    "doubleTap",
    "tripleTap",
];