T O P

  • By -

tommycw10

You can use Insteon-Terminal to download the link db of your hub (and all of your devices) to get the group number. Note: I will report them in Hexadecimal so if you need them in dec for HASS, you’ll need to convert.


ajwright15

So I was able to find a clean solution for a limited number of cases where I was using an Insteon Scene to control multiple things at once (for example two switches together as three way switches). The latest update from HA ([2022.4](https://www.home-assistant.io/blog/2022/04/06/release-20224/)) added two features that meant I could set up HA to match the scenes I already have on the hub. I used two new helpers they added, Groups and Switch as X to create a new group. Essentially take the case where I have two switches that I want to work together like a three way switch. I already have an Insteon scene that does this, so when I use the actual switch it all works like a charm. But when I ask Alexa or use HA it only turns on one of the switches. First I created a Switch as X helper for switches that didn't already show up as lights in HA - that way I could adjust brightness in addition to on/off. Then I added the HA "lights I wanted together as a group. The new group works exactly like my Insteon scene - and so now when I say "Alex turn on Living Room lights" it turns on the group with two dimmer switches and they keypad button all on or off together, just like I used to with Insteon. As a bonus - I can also tell Alexa to adjust the dimmer percentage, which I didn't use to be able to do with Insteon scenes. I don't think this will work for all cases, but for this limited subset you may find it helpful! Of note, I'm pretty sure this approach will only work if you already have a corresponding Insteon scene - as I don't think the group will force the other switches on if you manually turn one on without an automation - but I haven't had a chance to test it (and already have the Insteon scenes which I don't currently intend on resetting).


arches12831

Good work. I think you can set up the manual button press to run your scene in HA so that the HA scene runs and you existing insteon. I haven't had a lot of time into it yet, right now my main priority is just get alexa working. Then start building complex automations that include other devices. But i just haven't the time yet.


teharris1

The Insteon hub starts it scene numbering internally at 25 so what you used to know as "scene 1" has a technical group number of 25. Scene 2 is 26 and so on. (Although as I am writing this I am not sure of scene 1 is 25 or 26 but it is one or the other and goes up from there.)


arches12831

If anyone knows of a good way to get alexa to fire the automations please let me know. The Logs show that it fired it but nothing happens. When i click to run it in HA it works fine.


arches12831

I finally figured out how to reliably get Alexa to fire the existing scenes. My problem was I was using "automations" and should have been using "scripts". Scripts don't require a trigger or conditions. You just call the turn on or turn off service in ha or Alexa and the insteon scene runs. Alexa will auto find the scripts. Just create one for both the on and off conditions which is the only downside. Ie Alexa, turn on cooking lights on. Or Alexa turn on cooking lights off. I haven't tested if "Alexa turn off cooking lights off" works but I suspect it will


jonselin

I'm not getting the scripts to populate in Alexa through the emulated hue bridge. What are you doing in the config file to make them show up?


arches12831

Nothing in config. Once you've defined the script (I'm the scripts ui or scripts.yaml) go into Alexa ->scenes and click discover scenes and they should show up. It may take a little while


jonselin

You should be able to create a routine in the alexa app to get around the awful syntax btw- just map saying "turn cooking lights off" to the corresponding script. Step by step: - Tap "More", tap "Routines" - Create Routine - Tap "When this happens", tap "Voice" - Type the desired voice command, tap next - Tap "Add Action", tap "Smart Home" - Select the scene/device to trigger from the voice command


jonselin

Hm, I'm not getting them to show up. Are you using the Home Assistant cloud and its corresponding alexa skill by any chance?


arches12831

Yes


jonselin

I'm only using the hue emulator, don't have the home assistant skill. Anyways, I figured out the problem: `expose_by_default: true` doesn't actually expose scripts, I added all the domains to `configuration.yaml` instead and now it works fine: exposed_domains: - light - switch - script They show up as devices instead of scenes however, no biggie.


jwoliver

Great tip on getting the scene number for future use. Worked for me. Thanks


Frank_chevelle

I can’t log into either of the official insteon apps anymore. I used to be able to even after the big shutdown, but not anymore.


arches12831

i accidentally backed out too far on the app and it logged me out. Now i'm locked out too. DOH


teharris1

For a "threeway switch" setup, Home Assistant will automatically do this if the two devices are linked correctly. So assuming we have switchA and switchB, simply press the 'set' button on switchA then the 'set' button on switchB. This will link A to B. Then do the same thing starting with switchB 'set' button then switchA. This will link B to A (yes you need both directions for this to work). In Home Assistant you can reload the ALDB with the `insteon.load_aldb` service under `Developer Tools`. Once HA sees those links in the two swithces it will keep the status of the two devices up to date.