sebr / bhyve-home-assistant

Orbit BHyve custom component for Home Assistant
MIT License
252 stars 42 forks source link

Breakout temperature alerts to entity #181

Closed disforw closed 1 year ago

disforw commented 1 year ago

This PR will now create a binary sensor entity for each flood/temperature sensor that alerts on determined threshold. Set your threshold in the Bhyve app.

disforw commented 1 year ago

All tests complete

disforw commented 1 year ago

Made all requested changes,I looked in to changing the limits but can't find anything. If I find something in the future about it, I'll submit it as another pr.

disforw commented 1 year ago
{
    "last_connected_at": "2022-04-19T10:54:48.368Z",
    "location_name": "Laundry Room",
    "firmware_version": "16",
    "temp_alarm_thresholds": {
        "high_temp_f": 85,
        "low_temp_f": 55
    },
    "name": "Washing Machine",
    "type": "flood_sensor",
    "battery": {
        "percent": 100
    },
    "updated_at": "2023-05-28T17:42:58.221Z",
    "reference": "xxxxxxxxxx",
    "mac_address": "xxxxxxxx",
    "status": {
        "last_flood_alarm_at": "2023-05-20T01:49:21.951Z",
        "rssi": -84,
        "temp_f": 71.6,
        "provisioned": true,
        "phy": "le_1m_1000",
        "temp_alarm_status": "ok",
        "status_updated_at": "2023-05-28T17:42:58.220Z",
        "flood_alarm_status": "ok"
    },
    "id": "xxxxxxxxxxx",
    "auto_shutoff": false,
    "user_id": "xxxxxxx",
    "device_gateway_topic": "devices-2",
    "hardware_version": "fs1-0001",
    "is_connected": true,
    "created_at": "2021-08-26T21:47:11.293Z",
    "network_topology_id": "xxxxxxxxxxxxx"
},