Creates a virtual climate that controls an eight sleep mattress. This allows exposing the climate to google home and controlling it using voice commands. Currently the units is "percent" but will show as default home assistant temperature unit. This implementation is a bit of a hack since google isn't really designed to handle percent in a thermostat so there are some things that do not work.
- "what is temperature"
- "set heat to -100"
- "set heat to -45 degrees"
- "set temperature to 0"
- "what is heat"
- "set cool to -100 degrees"
- "set to -100"
- "set temperature to -100 degrees"
The Google Assistant UI is limited to setting temperature between 50 to 90 degrees. It is not recommended to use the Google Home UI. Instead I recommend exposing virtual fan or switch to use in the Google Home UI.
Attribute | Example Values (comma separated) |
---|---|
state | cooling, heating, idle, off |
hvac_mode | auto, off |
current_temperature | 70 |
target_temperature | 70 |
Requries https://github.com/lukas-clarke/eight_sleep to be installed.
- Install HACS
- Go to HACS
Integrations >
section - Click
...
in top right of screen - Click
Custom repositories
- Add repository
amosyuen/ha-eight-sleep-climate
in categoryIntegration
- In the lower right click "+ Explore & Download repositories"
- Search for "Eight Sleep Climate" and add it
- HA Restart is not needed since it is configured in UI config flow
- In the Home Assistant (HA) UI go to "Configuration"
- Click "Integrations"
- Click "+ Add Integration"
- Search for "Eight Sleep Climate"
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledeight_sleep_climate
. - Download all the files from the
custom_components/eight_sleep_climate/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
- In the Home Assistant (HA) UI go to "Configuration"
- Click "Integrations"
- Click "+ Add Integration"
- Search for "Eight Sleep Climate"
{% endif %}
- Setup Home Assistant Eight Sleep integration
- The integration will automatically discover unadded eight sleep state entities. Select one.
- Choose a name for the entity
- Click
Submit
If you want to contribute to this please read the Contribution guidelines
This project was generated from @oncleben31's Home Assistant Custom Component Cookiecutter template.
Code template was mainly taken from @Ludeeus's integration_blueprint template