04-06-2025 10:24 PM
Dear Community,
i used to automate my sunblind with IFTTT. If Temperature rises above 30°C, open sunblind.
I tried to bring this to google scripts but its not working:
Can someone help? I also tried the same directly from the google home app. But its also not working.
metadata:
name: Markise WG automatisch schließen
description: Markise WG automatisch schließen
automations:
- starters:
- type: device.state.TemperatureSetting
device: Wintergarten - Wintergarten
state: thermostatTemperatureAmbient
greaterThanOrEqualTo: 29C
condition:
type: device.state.TemperatureSetting # For devices that support temperature points and modes.
state: thermostatTemperatureAmbient
greaterThanOrEqualTo: 29C
device: Wintergarten - Wintergarten
actions:
- type: device.command.OpenClose
devices:
- Markise WG - Wintergarten
openPercent: 100
Answered! Go to the Recommended Answer.
04-09-2025 01:10 PM - edited 04-09-2025 01:11 PM
Thanks for reaching out. No need to use condition if you already provided it under starters.
I tried with below script using virtual AC Unit and Blinds from Google Home Playground and it worked.
metadata:
name: Markise WG automatisch schließen
description: Automates sunblind (Markise WG) based on temperature
automations:
- starters:
- type: device.state.TemperatureSetting
device: Wintergarten - Wintergarten
state: thermostatTemperatureAmbient
greaterThanOrEqualTo: 29C # Trigger when temperature is >= 29°C
actions:
- type: device.command.OpenClose
devices:
- Markise WG - Wintergarten
openPercent: 100 # Open the sunblind to 100% when triggered
Let me know if you have any questions.
04-09-2025 01:10 PM - edited 04-09-2025 01:11 PM
Thanks for reaching out. No need to use condition if you already provided it under starters.
I tried with below script using virtual AC Unit and Blinds from Google Home Playground and it worked.
metadata:
name: Markise WG automatisch schließen
description: Automates sunblind (Markise WG) based on temperature
automations:
- starters:
- type: device.state.TemperatureSetting
device: Wintergarten - Wintergarten
state: thermostatTemperatureAmbient
greaterThanOrEqualTo: 29C # Trigger when temperature is >= 29°C
actions:
- type: device.command.OpenClose
devices:
- Markise WG - Wintergarten
openPercent: 100 # Open the sunblind to 100% when triggered
Let me know if you have any questions.