Newbie trying to get Hive Heating Boost Script to work

Hi, I’ve installed the Hive integration successfuly via the HACS 3rd party integration and can read all my devices fine. I want to be able to add a button to a dashboard to boost the heating (and another to do the hot water but one thing at a time).

I’m failing to setup a script correctly and am not sure what I am doing wrong so was hoping someone can guide me.

There are the pertinent values I think.

Entity ID for Hive Thermostat: climate.thermostat_3
Service Name: hive.boost_heating
Heating Boost Sensor ID: sensor.thermostat_3_boost

I’ve tried adding a script via the UI and by adding to scripts.yml.

Via scripts.yml

boost_heating:
  sequence:
    - service: hive.boost_heating
      target:
        entity_id: "climate.thermostat_3"
      data:
        time_period: "01:00:00"
        temperature: "21.0"

And get the same results either way. When I execute the script an error pops up at the bottom of the screen briefly:

Logger: homeassistant.components.script.boost_heating
Source: helpers/script.py:1147
Integration: Scripts (documentation, issues)
First occurred: 16:57:51 (1 occurrences)
Last logged: 16:57:51

boost_heating: Error executing script. Invalid data for call_service at pos 1: value should be a string for dictionary value @ data['entity_id']

I’m sure I’m close, can anyone let me know what I’m doing wrong?

Thanks

Steve Davis

Have you tried it without the quotes?

I was having the same issue as you but then (against what the custom hive documentation tells you) I tried the following:

boost_heating_ensuite:
  sequence:
    - service: hive.boost_heating
      data:
        entity_id: climate.ensuite_trv
        time_period: "00:15:00"
        temperature: "20.5"

The point is that the entity_id should go inside data, not inside target.
I hope it works for you. Please let me know.

Best,

Rodrigo.