mirror of
https://github.com/mtan93/homebridge.git
synced 2026-05-31 14:21:45 +01:00
support loading scenes from HA
This commit is contained in:
@@ -140,6 +140,8 @@ HomeAssistantPlatform.prototype = {
|
|||||||
accessory = new HomeAssistantLight(that.log, entity, that)
|
accessory = new HomeAssistantLight(that.log, entity, that)
|
||||||
}else if (entity_type == 'switch'){
|
}else if (entity_type == 'switch'){
|
||||||
accessory = new HomeAssistantSwitch(that.log, entity, that)
|
accessory = new HomeAssistantSwitch(that.log, entity, that)
|
||||||
|
}else if (entity_type == 'scene'){
|
||||||
|
accessory = new HomeAssistantSwitch(that.log, entity, that, 'scene')
|
||||||
}else if (entity_type == 'media_player' && entity.attributes && entity.attributes.supported_media_commands){
|
}else if (entity_type == 'media_player' && entity.attributes && entity.attributes.supported_media_commands){
|
||||||
accessory = new HomeAssistantMediaPlayer(that.log, entity, that)
|
accessory = new HomeAssistantMediaPlayer(that.log, entity, that)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user