cancel
Showing results for 
Search instead for 
Did you mean: 

Netatmo Automation script

Profex
Community Member

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

1 Recommended Answer

arm_dpe
Solutions Expert
Solutions Expert

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.

View Recommended Answer in original post

1 REPLY 1

arm_dpe
Solutions Expert
Solutions Expert

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.