LZW36 - Hubitat and Google Home

@EricM_Inovelli

I was getting fatal errors with Google Home automation on my Hubitat–it appears that the issue relates to the fan drivers not supplying the required state values.

My LZW36 driver loads the “Hampton Fan Component” for the child device that controls the fan–and it is apparently missing required parameters. Some details are in the discussion on the Hubitat Community forum here:

Thoughts?

Thanks!

Hmmm, I added something to the vzm36 driver a while ago. Must be something I need to add to the lzw36 as well? Seems like it was so long ago lol.

1 Like

@robstitt Can you test this driver? Update the driver and then hit the configure button of the MAIN device. Let me know if you have any errors in your logs and let me know if the fan speeds show up on the child devices page.

pastebin.com/raw/yxg7F2gh

Thanks

I’ll try to give it a try tomorrow when I’ve got solid Wi-Fi!

Didn’t seem to fix the child fan device.

Sorry about that, can you copy the driver from the link again and try again? I don’t have the device setup anymore in Hubitat so I am working on it a little blind. I corrected the error you are showing in the log.

image

I took “getDriverName” out of the driver. Are you sure you didn’t get a cached version or something? configure() should look like this:

def configure() {
    if (infoEnable) log.info "${device.label?device.label:device.name}: configure()"
    sendEvent(name: "supportedFanSpeeds", value: new groovy.json.JsonBuilder(["low","medium","high","on","off"]))
    
    // Send supportedFanSpeeds event to existing fan child devices
    getChildDevices().each { child ->
        if (child.deviceNetworkId.endsWith("-ep002")) {
            child.sendEvent(name: "supportedFanSpeeds", value: new groovy.json.JsonBuilder(["low","medium","high","on","off"]))
        }
    }
    
    def cmds = initialize()
    commands(cmds)
}

Odd thing. That error is from the child device, not the parent.

It seems to be getting thrown by the system “Hampton Fan Component” driver?

I tried the generic fan component–same error.

Interesting, I’ll have to set the device up to test it I think. To confirm, this is when you hit “configure” on the parent device right?

Well. You were right. Somehow, I had the wrong stuff in there. Oops–sorry.

It’s hard to do a ‘find’ in the Hubitat’s code editor.

W00t!! Seems to be working now!

Google Home is a bit wonky–but the device was added (and didn’t blow up Google Home any more). And, I can control it from Google Home also now!

Thanks a bunch!!

Awesome! Glad you caught it before I added one into Hubitat to investigate LOL.

1 Like

I assume that will eventually make it into an update on the Hubitat?

Yep, I just pushed the fix to Github.

1 Like

This topic was automatically closed 67 days after the last reply. New replies are no longer allowed.