Added support for colored KNX lights (#12411)
This commit is contained in:
parent
7e2e82d956
commit
96bd153c80
3 changed files with 19 additions and 6 deletions
|
@ -14,7 +14,7 @@ from homeassistant.helpers import discovery
|
|||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.script import Script
|
||||
|
||||
REQUIREMENTS = ['xknx==0.7.18']
|
||||
REQUIREMENTS = ['xknx==0.8.3']
|
||||
|
||||
DOMAIN = "knx"
|
||||
DATA_KNX = "data_knx"
|
||||
|
@ -216,7 +216,7 @@ class KNXModule(object):
|
|||
@asyncio.coroutine
|
||||
def service_send_to_knx_bus(self, call):
|
||||
"""Service for sending an arbitrary KNX message to the KNX bus."""
|
||||
from xknx.knx import Telegram, Address, DPTBinary, DPTArray
|
||||
from xknx.knx import Telegram, GroupAddress, DPTBinary, DPTArray
|
||||
attr_payload = call.data.get(SERVICE_KNX_ATTR_PAYLOAD)
|
||||
attr_address = call.data.get(SERVICE_KNX_ATTR_ADDRESS)
|
||||
|
||||
|
@ -226,7 +226,7 @@ class KNXModule(object):
|
|||
return DPTBinary(attr_payload)
|
||||
return DPTArray(attr_payload)
|
||||
payload = calculate_payload(attr_payload)
|
||||
address = Address(attr_address)
|
||||
address = GroupAddress(attr_address)
|
||||
|
||||
telegram = Telegram()
|
||||
telegram.payload = payload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue