Hive Heating - "Alexa turn off heating" (Simple / Obvious)

Evening All,

I appreciate this is quite a simple / obvious one but until I thought of it I wasn’t using it.

I have a hive and use the HA component for it, which works great. I also use Alexa’s Hive skill, again this works fine.

With a couple of very simple automations and an input_boolean I now have a quick “on/off” options for my heating. All I have to say is “Alexa, turn on heating” and the heating will be set to 20 degrees and I get a swift “okay” from Alexa. “Alexa, turn off heating” and we’re back to the cold.

If you just needed the idea I’m sure you can figure out what I’ve done from the above but for those new to HA and those who like to be lazy here’s how I did it:

I set up an input_boolean called heating: input_boolean:

heating:
      name: "Heating"
      initial: off
      icon: mdi:fire

I then created two automations, one for ‘heating on’ and one for ‘heating off’ based on the state of the input_boolean:

- action:
  - data:
      entity_id: climate.heating
      operation_mode: heat
    service: climate.set_operation_mode
  - data:
      entity_id: climate.heating
      temperature: '20' ###############<-- You can set whatever you want here.
    service: climate.set_temperature
  alias: Heating On
  condition: []
  id: '1518893099720'
  trigger:
  - entity_id: input_boolean.heating
    from: 'off'
    platform: state
    to: 'on'
- action:
  - data:
      entity_id: climate.heating
      temperature: '7'
    service: climate.set_temperature
  - data:
      entity_id: climate.heating
      operation_mode: 'off'
    service: climate.set_operation_mode
  alias: Heating Off
  condition: []
  id: '1518894166081'
  trigger:
  - entity_id: input_boolean.heating
    from: 'on'
    platform: state
    to: 'off'

I have my input_booleans exposed to alexa in my configureation.yaml:

emulated_hue:
  type: alexa
  host_ip: XXX.XXX.X.XXX
  listen_port: 8300
  expose_by_default: true
  exposed_domains:
    - switch
    - input_boolean
    - light