mirror of
https://github.com/home-assistant/core.git
synced 2025-04-30 12:17:52 +00:00
Add bypass and automatic bypass switch for Danfor Air. (#23572)
Add bypass and automatic bypass switch for Danfoss Air
This commit is contained in:
parent
5ded0dd3fa
commit
24060e0fb5
@ -85,5 +85,9 @@ class DanfossAir:
|
|||||||
= self._client.command(ReadCommand.boost)
|
= self._client.command(ReadCommand.boost)
|
||||||
self._data[ReadCommand.battery_percent] \
|
self._data[ReadCommand.battery_percent] \
|
||||||
= self._client.command(ReadCommand.battery_percent)
|
= self._client.command(ReadCommand.battery_percent)
|
||||||
|
self._data[ReadCommand.bypass] \
|
||||||
|
= self._client.command(ReadCommand.bypass)
|
||||||
|
self._data[ReadCommand.automatic_bypass] \
|
||||||
|
= self._client.command(ReadCommand.automatic_bypass)
|
||||||
|
|
||||||
_LOGGER.debug("Done fetching data from Danfoss Air CCM module")
|
_LOGGER.debug("Done fetching data from Danfoss Air CCM module")
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Danfoss air",
|
"name": "Danfoss air",
|
||||||
"documentation": "https://www.home-assistant.io/components/danfoss_air",
|
"documentation": "https://www.home-assistant.io/components/danfoss_air",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"pydanfossair==0.0.7"
|
"pydanfossair==0.1.0"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": []
|
"codeowners": []
|
||||||
|
@ -19,6 +19,14 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||||||
ReadCommand.boost,
|
ReadCommand.boost,
|
||||||
UpdateCommand.boost_activate,
|
UpdateCommand.boost_activate,
|
||||||
UpdateCommand.boost_deactivate],
|
UpdateCommand.boost_deactivate],
|
||||||
|
["Danfoss Air Bypass",
|
||||||
|
ReadCommand.bypass,
|
||||||
|
UpdateCommand.bypass_activate,
|
||||||
|
UpdateCommand.bypass_deactivate],
|
||||||
|
["Danfoss Air Automatic Bypass",
|
||||||
|
ReadCommand.automatic_bypass,
|
||||||
|
UpdateCommand.bypass_activate,
|
||||||
|
UpdateCommand.bypass_deactivate],
|
||||||
]
|
]
|
||||||
|
|
||||||
dev = []
|
dev = []
|
||||||
@ -59,7 +67,7 @@ class DanfossAir(SwitchDevice):
|
|||||||
|
|
||||||
def turn_off(self, **kwargs):
|
def turn_off(self, **kwargs):
|
||||||
"""Turn the switch off."""
|
"""Turn the switch off."""
|
||||||
_LOGGER.debug("Turning of switch with command %s", self._off_command)
|
_LOGGER.debug("Turning off switch with command %s", self._off_command)
|
||||||
self._data.update_state(self._off_command, self._state_command)
|
self._data.update_state(self._off_command, self._state_command)
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
|
@ -1009,7 +1009,7 @@ pycsspeechtts==1.0.2
|
|||||||
pydaikin==1.4.0
|
pydaikin==1.4.0
|
||||||
|
|
||||||
# homeassistant.components.danfoss_air
|
# homeassistant.components.danfoss_air
|
||||||
pydanfossair==0.0.7
|
pydanfossair==0.1.0
|
||||||
|
|
||||||
# homeassistant.components.deconz
|
# homeassistant.components.deconz
|
||||||
pydeconz==55
|
pydeconz==55
|
||||||
|
Loading…
x
Reference in New Issue
Block a user