Yeah, I see your point, and can agree with you there.
I figured as much. I don’t really like the idea that much myself. I know my Hubitat integration tries to figure out devices types by name, which is why I brought it up.
That is correct, with the exception that it is still presented to Home Assistant, and subsequently Google, as a light. For the most part, this is desirable. For instance, I have a couple UPB switches that are not set to dimmable because the loads they control are not dimmable (My garage and laundry room lights are all long fluorescent tube lights). Those are obviously still lights, and should be treated as such. But, if you have a UPB device that is controlling a load that is anything other than a light (ceiling fans or an outlet, for example), they should present to Home Assistant and other downstream systems (like Google Home and Alexa) as a switch.
I would say we could check the model when importing devices to determine if it should be a switch or a light in Home Assistant, except that the model that I’m using for my ceiling fans (the HAI 40A00-1 15A Relay Switch) is also being used to control the non-dimmable loads I mentioned before (my garage lights).
When I setup the Google Home integration, I simply exposed the light, switch, and fan domains (without specifically setting individual entities to expose). That made my configuration much more simple, without needing to micro-manage each device. However, that created the issue we have here.
The living room lights group (which Google creates by default) includes the fan switch. That means that when I ask Google to turn the living room lights on or off, it also includes the fan in that command. This may or may not be desirable, depending on the situation.
I will say that I have this sorted for my circumstances for now, though, as I decided to spend a couple hours last night and individually map out every entity that I wanted exposed to Google, instead of just the domains wholesale. This was way more work than I liked, but the benefit far outweighs the trouble of setting it up, in that I have so much more granular control over what goes to Google.
So, while I have it working now, I think it may still be wise to look into implementing a switch option in the plugin. Thank you all so much for everything.