[2.3.9.193] Google Home “Something went wrong” [C8-Pro]

I fixed DMan's Bond Fan driver. Works with the lates Hubitat Google Home integration.

Details here

Edit:

Bug submission: Null safe checks in Google Home app while validating device instances’ properties.

I’m sure that are many either incomplete drivers (not fully implementing expected functionality) and users who don’t click “Configure” to fully populate expected properties.

Perform a null safe check and if any expected or required property is missing (null) then either reject the device with a log message and move on or log the miss and institute a sane default.

Example of a sane default for a missing supportedFanSpeeds property would be one of:

  • [“on”, “off”]
  • [“high”, “medium-high”, “medium”, “medium-low”, “low”, “on”, “off”]

The former being the truly safest option for the sake of not sending unexpected requests or data to the driver later on. But even the later isn’t a bad option and emulates what Hubitat does elsewhere with a fixed speed set.

A poorly written or configured device driver shouldn’t effectively crash the Google Home app.

1 Like