DavidMStraub / homeassistant-homeconnect

Custom component for Home Assistant to connect appliances supporting the Home Connect standard
MIT License
116 stars 29 forks source link

Feature Request: Monitor and report connected state of all Home-Connect appliances #127

Open jarrah31 opened 3 years ago

jarrah31 commented 3 years ago

Please could someone add a 5 minute poll of the https://{{serverUrl}}/api/homeappliances/ API call and create an associated entity for each appliance to report whether it is connected or not?

{
    "data": {
        "name": "Washing machine",
        "brand": "Bosch",
        "vib": "WAX32EH1GB",
        "connected": true,
        "type": "Washer",
        "enumber": "WAX32EH1GB/01",
        "haId": "BOSCH-WAX32EH1GB"
    }
}
{
    "data": {
        "name": "Washing machine",
        "brand": "Bosch",
        "vib": "WAX32EH1GB",
        "connected": false,
        "type": "Washer",
        "enumber": "WAX32EH1GB/01",
        "haId": "BOSCH-WAX32EH1GB"
    }
}

This would help with reporting the power on/off state of appliances that don't send Off events (such as washing machines), as documented here: https://api-docs.home-connect.com/settings?#power-state

Thanks.