Add melcloud AtaDevice vane control (#32672)
* Add melcloud AtaDevice vane control * Return empty dict when no vane states available Co-Authored-By: springstan <46536646+springstan@users.noreply.github.com> * Use constants for services and conf * Split state attribute assignment and fix suggested changes * Log valid positions when called with an invalid position * Improve service description Co-Authored-By: springstan <46536646+springstan@users.noreply.github.com> Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
This commit is contained in:
1 parent
4caf65dc97
commit
4b2c45e668
3 files changed
+98
-1
No files matched your search
@@ -5,7 +5,16 @@ from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT
|
||||
|
||||
DOMAIN = "melcloud"
|
||||
|
||||
CONF_POSITION = "position"
|
||||
|
||||
ATTR_STATUS = "status"
|
||||
ATTR_VANE_HORIZONTAL = "vane_horizontal"
|
||||
ATTR_VANE_HORIZONTAL_POSITIONS = "vane_horizontal_positions"
|
||||
ATTR_VANE_VERTICAL = "vane_vertical"
|
||||
ATTR_VANE_VERTICAL_POSITIONS = "vane_vertical_positions"
|
||||
|
||||
SERVICE_SET_VANE_HORIZONTAL = "set_vane_horizontal"
|
||||
SERVICE_SET_VANE_VERTICAL = "set_vane_vertical"
|
||||
|
||||
TEMP_UNIT_LOOKUP = {
|
||||
UNIT_TEMP_CELSIUS: TEMP_CELSIUS,
|
||||
|
||||
Reference in new issue
Block a user