02-07-2024 10:06 PM
I need to automate a kasa smart plug (hvac in line fan plugged into that) turning on somehow when The nest (air conditioning) turns and when the nest (fan only on ac) turns on
How can I accomplish this? Google automate?
Or IFTTT?
I did see IFTTT had an applet with nest fan/wemo plug but not for mine…here it is https://ift.tt/wf8Ng4H
But it tells me there’s gotta be a script or coder some way to do it. I just need it in simple language
plz and thanks
02-08-2024 12:45 AM
Example:
metadata:
name: Cool weather heating
description: If it is cool, open blinds, turn on fans, and adjust thermostats.
automations:
- starters:
- type: device.state.TemperatureSetting
state: thermostatTemperatureAmbient
device: thermostat - Family Room
lessThan: 18C
actions:
- type: device.command.OpenClose
devices:
- blinds - Bedroom
openPercent: 100
- type: device.command.OnOff
devices: fan - Bedroom
on: true
- type: device.command.ThermostatTemperatureSetpoint
devices:
- thermostat - Family Room
thermostatTemperatureSetpoint: 21C
02-08-2024 01:16 AM
That doesn’t help respectfully-
I only want the smart plug to turn on when the nest turns on the air conditioner
02-08-2024 03:21 AM
Do you use the Google Home App or the Google Home web page?
02-08-2024 05:23 AM
I could use either
02-08-2024 07:30 AM
OK. I use the Google Home App on my Smartphone to see my Home and all the Devices. There you can Edit simple automations too. If you wont writing scripts you have to go to the Google Home web page.
12-15-2024 09:04 AM - edited 12-15-2024 09:04 AM
I have the same question - want to power on a whole home scent diffuser connected to my hvac but only when hvac (via Nest thermostat) is on
05-22-2025 11:50 AM
I’m trying to do the same thing. Did you ever figure this out?
2 weeks ago
Google Home allows it but only through Script Coder in the desktop version. Phone app will not allow it. I wanted to turn on and off my HVAC scent diffuser when the HVAC was running / not running and achieved it using the following code. This is the code for turning the outlet ON:
metadata: name: Turn on Diffuser when the temperature rises above 77.9. description: Turn on Diffuser when the temperature rises above 77.9. automations: - starters: - type: device.state.TemperatureSetting device: Downstairs - Downstairs state: thermostatTemperatureAmbient greaterThan: 77.9F actions: - type: device.command.OnOff devices: - Smart Plug Scent Diffuser - AC Cabinet on: true
7 hours ago
Thank you so much. I just saw this and found the script coder. You said this is to turn on? Is there a separate to turn the plug off when the thermostat turns off? I'm sorry, I'm clueless on this and trying to muddle my way through. Thanks again.
6 hours ago - last edited 6 hours ago
No issues. We have all been there:)
To Turn On the AC Booster use this code:
metadata: name: Turn on AC booster when the thermostat fan is on description: When the thermostat fan is on then turn on the AC booster automations: - starters: - type: device.state.OnOff device: Upstairs - Upstairs state: activeThermostatMode
is: cool actions: - type: device.command.OnOff devices: - AC booster supply - Master Bedroom on: true
To Turn OFF the AC Booster use this code:
metadata: name: Turn off AC booster when the thermostat fan is off description: When the thermostat fan is off then turn off the AC booster automations: - starters: - type: device.state.OnOff device: Upstairs - Upstairs state: activeThermostatMode
isNot: cool actions: - type: device.command.OnOff devices: - AC booster supply - Master Bedroom on: false
6 hours ago
Thank you. You are so helpful. I was asking about code for turning on/off a smart plug (with diffuser) when HVAC turns on/off, not the booster. 🙂
6 hours ago
Replace the Booster word with plug lol
Make sure your device names are accurate in the code below. Replace AC Booster with whatever you call the plug
To Turn On the plug use this code:
metadata: name: Turn on plug when the thermostat fan is on description: When the thermostat fan is on then turn on the plug automations: - starters: - type: device.state.OnOff device: Upstairs - Upstairs state: activeThermostatMode
is: cool actions: - type: device.command.OnOff devices: - AC booster supply - Master Bedroom on: true
To Turn OFF the plug use this code:
metadata: name: Turn off plug when the thermostat fan is off description: When the thermostat fan is off then turn off the plug automations: - starters: - type: device.state.OnOff device: Upstairs - Upstairs state: activeThermostatMode
isNot: cool actions: - type: device.command.OnOff devices: - AC booster supply - Master Bedroom on: false
6 hours ago
OK!! I kinda thought that would be the answer but wanted to ask. Planning to try to get this working when I get home, so I'm trying to combat future frustrations. 🙂 Thanks again.
6 hours ago
Good luck - it should work. Mine's working perfectly
Saturday
Hello everyone,
If anyone can help, I would really appreciate it.
I am trying to do the same thing but trying to use the state of the fan from my heat pump controlled by my nest thermostat to activate a booster fan.
Gemini assistant is trying to have me use the state fanOn, but that isn't a valid state for type device.state.OnOff
The name of the thermostat is upstairs and that seems to be correct
Below is the script and I've bolded the error
metadata: name: Turn on AC booster when the thermostat fan is on description: When the thermostat fan is on then turn on the AC booster automations: - starters: - type: device.state.OnOff device: Upstairs - Upstairs state: fanOn is: true actions: - type: device.command.OnOff devices: - AC booster supply - Master Bedroom on: true
Monday
Try this:
metadata: name: Turn on AC booster when the thermostat fan is on description: When the thermostat fan is on then turn on the AC booster automations: - starters: - type: device.state.OnOff device: Upstairs - Upstairs state: activeThermostatMode
is: cool actions: - type: device.command.OnOff devices: - AC booster supply - Master Bedroom on: true
Tuesday
Found an error in code I sent. The correct code is:
metadata: name: Turn on AC booster when the thermostat fan is on description: When the thermostat fan is on then turn on the AC booster automations: - starters: - type: device.state.OnOff device: Upstairs - Upstairs state: activeThermostatMode
isNot: cool actions: - type: device.command.OnOff devices: - AC booster supply - Master Bedroom on: false
Tuesday
Thank you,
THat has worked to turn it on - but now I can't get it to turn off when the HVAC system turns off.
I tried
state: ActiveThermostatMode
is: heatcool
and it didn't turn off.
I always have the same temps set all day, would it be better to set the parameters by temperature?
Tuesday
To turn off, replace "is: heatcool" with "isNot: cool"
Tuesday
I find temperature based activation / deactivation laggy so stick to this. This works perfectly