I made a crappy Nest Thermostat integration that will work as a stopgap until alternatives come out

You’re in addons, this isn’t an addon. Here’s how to install HACS. HACS and addons are two entirely different things.

Also why do you need this integration? This integration was created when the native Nest integration only supported Nest auth but Google only allowed new users to set up Google auth. But the native Nest integration has supported Google auth for years at this point. So is there something this integration does that the native one doesn’t?

@CentralCommand
I just figured that out as you replied!

I need the integration to control hot water, can’t find how to do that in the Nest Integration. I want to disable hot water heating (gas boiler) during the days when my solar is producing excess power and use the immersion heater to heat the water. Is there a better way without Badnest?
Thanks,
David

All good now, got it up and running. Thanks

–Figured it out, below is working version–

Hello, hope someone will be willing to help as there is no documentation and not much examples. I am trying to boost hot water when electricity is cheap, I managed to get the integration running, but I am struggling to find how to perform the action of boosting.
Is there someone who can point me to the right direction? I just want to boost the water heater for 1 hour.

alias: Water Heating
description: Heat water when energy is cheapest
trigger:
  - platform: state
    entity_id:
      - sensor.current_spot_electricity_hour_order
condition:
  - condition: numeric_state
    entity_id: sensor.current_spot_electricity_hour_order
    below: 7
action:
  - service: badnest.boost_hot_water
    data:
      entity_id: water_heater.hallway_thermostat_hot_water
      time_period: 60
      boost_mode: true
mode: single

There is another way to integrate Nest hot-water boost, scheduling and automations into Home Assistant

Not sure if this helps, but here’s how I toggle my hot water. One idea: if you’re willing to ‘discipate’ the excess electricity/maximize gain, it might be a good idea not only to boost the hot water, but also to increase the target temperature while electricity is cheap.

type: custom:button-card
entity: water_heater.downstairs_thermostat_hot_water
show_state: true
show_name: false
tap_action:
  action: call-service
  service: badnest.boost_hot_water
  service_data:
    entity_id: water_heater.downstairs_thermostat_hot_water
    time_period: 30
    boost_mode: |
      [[[
         if (states['water_heater.downstairs_thermostat_hot_water'].state === "on")
           return false
         else
           return true
      ]]]

I am now having an issue where badnest will work for the first hour or two after a Ha restart but then stops. I have the nest integration also which continues to work (not sure if this might cause conflict?). I can’t find a way to restart the integration without full restart of Ha.

I have tried removing and redownloading badnest multiple times but no success. There don’t seem to be any logs to look though.

Anyone have any thoughts on this? Am using badguy99/badnest and need it for hot water control

I’m using the badguy99 version to control my Nest 3 hot water, at least I’d like it to. I’d like to turn it off remotely via an automation through HA but I can’t find what service to call (I’m trying via developer tools). Does anyone know if there’s a service that works to turn off (and turn on) the hot water side of the Nest thermostat?

The reason many of us come here is to find a way of controlling hot water heating that the Nest thermostat provides but no official integration does. The title of the thread is a bit of a giveaway!

Problem is not having an official integration, it’s that Google (as usual) doesn’t listen to customers asking them (for ages) to expose the hot water control via API which they don’t :slight_smile:

when the integration was working for me, I cleared the schedule in Nest then controlled it completly by running the boost command at chosen times. you could do this in an automation which is turned on or off when solar power exceeds a threshold or when your electric water heater turns on.

still havnt figured out why badnest works initially on a restart but stops after a short time. has anyone got logs working for badnest?

1 Like

I hadn’t noticed the boost service. So leave the hot water off normally and use boost. I’ll give it a go. Thanks