Open DurgNomis-drol opened 3 years ago
If eureka_info
is 200, we should create device
sensor. If assistant_supported
is true we should also create alarms and timers sensors and do not disturb switch.
Great idea! That exactly what i was thinking in earlier discussions, we could probably take a step backwards and implement it in the following manner:
GoogleHomeDevice
as we currently do in model
per device eureka
call to populate GoogleHomeDevice
objects with necessary information (like capabilities
) etc. (that can be expanded over time i guessGoogleHomeDevice
objects yup also the reboot device function can be based on reboot_supported. A stub for future Bluetooth work based on ble_supported.
Actually even if the devices returns a
200
foreureka_info
, there is no guaranty that the device supports alarms or timers, we still would need to checkassistant_supported
. This can also come in handy in the future where we can check what other features is supported.The check should probably be a combination of both like this:
eureka_info
if404
return device not compatible. Else continue check.assistant_supported
is true, return device is compatible. If false return device is not compatible.Originally posted by @DurgNomis-drol in https://github.com/leikoilja/ha-google-home/issues/212#issuecomment-821975322
eureka_info
example: