Will this automation work? Any better ideas?

I have 8 smart lights which do not pair well with Z2M. I gave up after I spent a few days trying to get them to pair.

These lights paired extremely well with Amazon Echo.

I have an old WiFi smart switch from before I knew about HA. This smart switch can be used in both HA and Amazon Echo.

I’m thinking about creating an automation in HA based on occupancy and illuminance. If my conditions are met, this will turn on the smart switch.

In Amazon I will create a routine where if the smart switch turns on the lights will turn on.

Will this work? Anyone else have a better idea?

If this works I might look into a button I can use both in HA and Amazon at the same time.

Are your smart lights Zigbee? If they work with Amazon Echo, possibly not - which is why they won’t pair with Z2M.

What make are they? There may be another integration.

These bulbs have been problematic with Z2M for a long time.

They don’t seem to be in the Z2M list of supported devices.

It looks as if somebody requested ZHA support fairly recently, but nothing’s happened yet.

From the website in your link, they sound like a product for commercial installers - looks like you have to be a distributor to even see prices - so they might not be on the radar for HA developers.

Edit: Your idea of using an Alexa routine could work, though.

How to launch an Alexa skill from Home Assistant

Which specific model do you have? Like @jackjourneyman said, there is nothing listed under a Juno manufacturer, but there are 3 hits if you search by name. They all seem to be provided under Acuity Brands Lighting (smells like contractor install brand).

The Alexa way is feasible indeed, but are you sure you’re following the correct procedure to get them into pairing mode? Is there some kind of manual provided with your lights?

They are supported in both Z2M and ZHA.

I have no experience with ZHA.

I’m debating about picking up some echo buttons. This option is cheaper than purchasing another coordinator solely for ZHA.

If my idea does not work I might purchase another coordinator only for ZHA.

I purchased these bulbs for approximately $5 each. Vastly cheaper than the only other reliable alternative which is Phillips Hue.

I was able to pair one which worked perfectly. The others were hit or miss.

I skimmed the thread on inovelli and there have been numerous reports of these dropping off the network, slow to respond, etc.

Supposedly a firmware was released which fixed this. I have updated all my lights to this firmware which did resolve my issue.

I got tired of staring at the open hole so I gave up and paired them with Alexa.

For $5/bulb I can live with my completed workaround if it works.

Looks like the SmartThings integration will be fixed in the next release.

This means I can add these bulbs to ST and expose them in HA.

I’ll probably still pickup the echo buttons just as a test run since they’ll probably arrive before the next HA update.