Input_Boolean Switch not working with Alexa

Hey everyone,

I’m having a bit of trouble with the Input_Boolean Switch and its connection to Alexa. So, I can get the devices onto the app just fine, but there’s an issue: I can’t check their current state or switch them on/off. Instead, the app just shows me the device settings. My suspicion is that the problem might be because the Device-Type is set as “other,” which Alexa doesn’t seem to like. Unfortunately, Input_Boolean doesn’t have a DeviceType attribute that I can tweak.

Any of you run into this issue before and found a way around it?

input_boolean: 
  laptop:
    name: "Laptop"
    initial: off

By the way, I’m running Home Assistant without NabuCasa.

I’d really appreciate any help or insights you can provide!

Cheers

I have multiple Input boolean helpers that I expose to Alexa with Haaska that work without issue, so I don’t think the “other” type is the problem.

After many hours of trial and error, I believe I’ve got this to work. I used a switch template with an input_boolean as the turn action, and it seems to have done the trick.

switch: 
  platform: template
  switches:
    laptop:
      friendly_name: Laptop
      unique_id: "laptop"
      turn_on:
        service: input_boolean.turn_on
        entity_id: input_boolean.laptop
      turn_off:
        service: input_boolean.turn_off
        entity_id: input_boolean.laptop

Just wanted to share the solution in case anyone else runs into the same hiccup.

1 Like