Automated roller blind and room temperature, help!

Hi!

I have a IKEA Fyrtur roller blind that i want to be automated by my Fibaro smoke alarm with built-in temperature sensor. When the room temperature reaches a set value, the blind should go down to a set value like 5o%.

I need help creating something that does this!

… as a blueprint (as your categorization suggests) or in general. Anyhow:

Create an automation:

Thank you! When i set the value, in developer tools, for my smoke sensor to 25 nothing happends.

I thought it would be easy if there was a blueprint for this :slightly_smiling_face:

alias: 'rullgardin ’
description: 'Lejas rullgardin ’
trigger:

  • platform: numeric_state
    above: ‘23’
    entity_id: sensor.brandvarnare_lejas_rum_temperature
    attribute: unit_of_measurement
    condition: []
    action:
  • service: cover.set_cover_position
    target:
    entity_id: cover.lejas_rullgardin_2d8564fe_window_covering
    data:
    position: 50
    mode: single

Please use the “code” formatting (grafik), when including Yaml or other core-related details.

alias: 'rullgardin'
description: 'Lejas rullgardin'
trigger:
  - platform: numeric_state
    above: ‘23’
    entity_id: sensor.brandvarnare_lejas_rum_temperature
    attribute: unit_of_measurement
condition: []
action:
  - service: cover.set_cover_position
    target:
      entity_id: cover.lejas_rullgardin_2d8564fe_window_covering
    data:
      position: 50
mode: single

But:

    attribute: unit_of_measurement

That is - for sure - wrong. The unit_of_measurement does not transport the actual temperature, but the scale (based on your language: ‘°C’) . The current temperature is the state of the sensor, so remove that attribute: completely.

I don’t think, that you actually can set the value of a sensor. At least it will be overriden upon next update. But maybe I am wrong. Fix that attribute: issue and try.

Thanks! But something is not right here. When I set my temperature to 18 in developers tools my blind goes down…? But it will not go down over the set temperature?

Could be related to this, remove the quotes.

above: 23

I have the same automation for my daughters room I just created it in the automation UI.

I trigger on both high temp and low temp and have a condition on between time. I messed up the cover position in this example so not sure if it’s correct.

Made this one in the UI so it should work to just edit automation with yaml and paste in. I have some conditions with helpers also but took them away. One that turns of all smart things at home and also one to turn of summer based things like this…

alias: Hög temperatur i Majas rum
description: ''
trigger:
  - type: temperature
    platform: device
    device_id: a79d5282355f4840bbe64efa34794382
    entity_id: sensor.multitemp_06_temperature
    domain: sensor
    above: 23
    for:
      hours: 0
      minutes: 0
      seconds: 30
    id: high temp
  - type: temperature
    platform: device
    device_id: a79d5282355f4840bbe64efa34794382
    entity_id: sensor.multitemp_06_temperature
    domain: sensor
    for:
      hours: 0
      minutes: 0
      seconds: 30
    id: low temp
    below: 22
condition:
  - condition: time
    after: '09:00'
    before: '18:00'
action:
  - choose:
      - conditions:
          - condition: trigger
            id: high temp
        sequence:
          - device_id: 5f167ecee74e083a01ad832d38eb3d40
            domain: cover
            entity_id: cover.maja_rullgardin
            type: set_position
            position: 37
      - conditions:
          - condition: trigger
            id: low temp
        sequence:
          - device_id: 5f167ecee74e083a01ad832d38eb3d40
            domain: cover
            entity_id: cover.maja_rullgardin
            type: set_position
            position: 0
    default: []
mode: single

1 Like

That solved the problem! Thanks!

Thanks I will definitely test similar to yours!