Support multiple deCONZ gateways (#22449)
* Store gateways inside a dict in deconz domain * Make reachable events gateway specific * Gateway shall always exist * Adapt new device signalling to support multiple gateways * Services follow gateway master * Working on unload entry * Make unload and master handover work Improve tests for init * Fix config flow * Fix linting * Clean up init tests * Clean up hassio discovery to fit with the rest * Store gateways inside a dict in deconz domain * Make reachable events gateway specific * Gateway shall always exist * Adapt new device signalling to support multiple gateways * Services follow gateway master * Working on unload entry * Make unload and master handover work Improve tests for init * Fix config flow * Fix linting * Clean up init tests * Clean up hassio discovery to fit with the rest * Add support for services to specify bridgeid
This commit is contained in:
1 parent
b9ec623ad9
commit
b50afec5f1
22 files changed
+535
-426
No files matched your search
@@ -12,22 +12,21 @@ DEFAULT_ALLOW_DECONZ_GROUPS = False
|
||||
CONF_ALLOW_CLIP_SENSOR = 'allow_clip_sensor'
|
||||
CONF_ALLOW_DECONZ_GROUPS = 'allow_deconz_groups'
|
||||
CONF_BRIDGEID = 'bridgeid'
|
||||
CONF_MASTER_GATEWAY = 'master'
|
||||
|
||||
SUPPORTED_PLATFORMS = ['binary_sensor', 'climate', 'cover',
|
||||
'light', 'scene', 'sensor', 'switch']
|
||||
|
||||
DECONZ_REACHABLE = 'deconz_reachable'
|
||||
|
||||
NEW_GROUP = 'deconz_new_group'
|
||||
NEW_LIGHT = 'deconz_new_light'
|
||||
NEW_SCENE = 'deconz_new_scene'
|
||||
NEW_SENSOR = 'deconz_new_sensor'
|
||||
NEW_GROUP = 'group'
|
||||
NEW_LIGHT = 'light'
|
||||
NEW_SCENE = 'scene'
|
||||
NEW_SENSOR = 'sensor'
|
||||
|
||||
NEW_DEVICE = {
|
||||
'group': NEW_GROUP,
|
||||
'light': NEW_LIGHT,
|
||||
'scene': NEW_SCENE,
|
||||
'sensor': NEW_SENSOR
|
||||
NEW_GROUP: 'deconz_new_group_{}',
|
||||
NEW_LIGHT: 'deconz_new_light_{}',
|
||||
NEW_SCENE: 'deconz_new_scene_{}',
|
||||
NEW_SENSOR: 'deconz_new_sensor_{}'
|
||||
}
|
||||
|
||||
ATTR_DARK = 'dark'
|
||||
|
||||
Reference in new issue
Block a user