I want to close my shutters controlled by RTFX when it is 25 degrees or more

Hello all,
I want to close my shutters controlled by RTFX when it is 25 degrees or more, I have a hue temperature sensor hanging in the room. I made an automation, but it does not work. Please your help, thanks

Hi!

Is your temperature sensor below 20?
This trigger will only be triggered when your sensor temperature go above 20. If it is already above, this automation won’t run

1 Like

Thank you for your response. The temperature in the automation is what I tested for. The temperature was below 20 degrees, when it got above 20 degrees nothing happened.

Could you post the yaml?
Use the 3 dots in the right corner, click on “Edit in YAML” and copy/past here

alias: Temp Studio Rolluiken 1&2 omlaag
description: “”
trigger:

  • platform: numeric_state
    entity_id: sensor.daglicht_sensor_studio_temperature
    above: 20
    below: 50
    attribute: temperature_valid
    condition: []
    action:
  • device_id: 7a497847417989dd793d3c3bdb0061f4
    domain: rfxtrx
    type: send_command
    subtype: “On”
  • device_id: 30a4a8df94662dfe4f0f8a162f25625b
    domain: rfxtrx
    type: send_command
    subtype: “On”
  • service: notify.pushover
    data:
    message: Studio Rolluiken 1&2 omlaag
    title: Home Assistant
    mode: single

What’s the value of the attribute temperature_valid? Because this is the value used for the trigger.

Are you able to start your devices using the ‘on’ command like done in this automation? For example using Developer tools > services

What can I enter for temperature value? Does it have to be a certain temperature?
Yes, if I choose execute, the shutters go down, but not at the set temperature.

If you go to Developer tools > states and search for your sensor, what is its value?

If the temperature is in the state column you need to remove attribute: temperature_valid form your automation.

it works thanks for your help.

1 Like