Crownstone beta integration for Home Assistant
In this release
The HACS version of the Crownstone integration now continues as Crownstone Beta, as the initial version has been published to Home Assistant Core, available since 2021.10.0. You can use this version to have features not yet available in the core version.
The code of this integration has been completely rewritten since the last (v1.6.3) release, optimized for stability. You can view the entire list of changes since the last release below.
When updating from the previous version, your previous configuration is automatically removed because the setup was changed completely. After restarting Home Assistant, you will see a pop-up on the integrations page where you can click the "Configure" button to enter the new setup.
General
- Crownstones and locations of all Spheres are added to Home Assistant.
Setup
- Now requires the user to select the port of the Crownstone USB, or to not use a USB.
- Option to manually enter the port of the Crownstone USB in case the integration can not find it. (fixes #5)
- Requires the user to select the Crownstone Sphere where the USB is configured in case the user has multiple Spheres.
Integration options
- Now available when clicking the "Configure" button for a Crownstone entry on the integrations page.
- Allows to set up a Crownstone USB dongle if it wasn't set up in the initial setup of the integration.
- Unchecking the USB option will remove USB configuration and the cloud will be used again for all Crownstones.
- Allows to quickly change the Sphere where the USB dongle is configured.
Crownstone devices
- Removed state attributes.
Sensors
- Add connection sensor to every Crownstone device, which shows if it can communicate with the Crownstone USB or if it uses the cloud.
Energy
- Now shows value directly taken from the Crownstone.
- Changed unit of measurement from Wh to kWh.
- Add support for long term statistics in form of total increasing. (closes #6) Home Assistant will keep track of the total sum in case the energy value on the Crownstone is reset.
Device automation
Device triggers
- The
All users entered/leftandmultiple users entered/lefttriggers have been removed. Reason being stability as events only happen 1 at the time. Similar functionality can be achieved with the newly added presence conditions. - Added 2 new triggers:
any user entered <location>orany user left <location>which can be used to trigger an action when someone entered or left a room, but it doesn't matter who it is. - Now asserts Crownstone presence events directly fired into the Home Assistant eventbus. This increases consistency.
Device conditions
- Now available for Crownstone presence devices when creating automations. The conditions that can be met are:
users are present in <location>,users are not present in <location>andany user is present in <location>. This asserts whether the chosen user(s) (or any user) is/are currently there. These can be used separately from the Crownstone presence triggers as well.
Language support
- Added support for Dutch.