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%.
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?
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