Hi,
I tried to create an automation with a Netatmo Station to activate a plug when it goes below a number of degrees, but when I go to automations.yaml it gives me an error. The error states “incorrect type. Expected Number”.
I tried to removed the “.” and to add a “,” instead, but issue it’s the same. Checking also on how Netatmo is showing data is with a “.”. The error it’s shown in "above: ‘22.5’ and the automation is not working. (The temperature is high just as a test).
Screenshot on how I set up the automation attached:
Code in “automations.yaml”
- id: '1603024209419'
alias: Apagar Calefacción Comedor
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.netatmo_meteo_barcelona_comedor_temperature
above: '22.5'
attribute: unit_of_measurement
condition: []
action:
- type: turn_off
device_id: 7faa1ab6113411eb8854c5a0c5c2c7d4
entity_id: switch.05153141dc4f22e147f2
domain: switch
- service: telegram_bot.send_message
data:
message: Se ha apagado la calefacción del comedor // Motivo // Temperatura superior
a 22.5º
title: Calefacción Comedor
mode: single