Home Assistant’s Config: Two Nasty Surprises to Be Aware of

https://hackernoon.imgix.net/images/ySK5UmEKUigi6gZlUx5UYDhUNhk1-xt82veo.jpeg

Last year, I motorized the rolling shutters on the southern façade of my apartment. My idea was to manage them via Home Assistant. I had a couple of automations in mind:

  • In the evening, roll down the shutters of my bedroom
  • In the morning:
    • If it's too hot outside, roll down all shutters
    • If it's too cold outside, roll down all shutters
    • In other cases, roll up all shutters but my bedroom's

Living in France, I added the official Météo France integration. The integration provides different measurements, including air temperature for my city. Here's the historical data. As you can see, it was pretty hot.

I could have used the temperature directly in the automation, but I wanted to define boolean sensors for "too hot" and "too cold" so I could reuse them across different automations. I defined two custom sensors:

template: - binary_sensor: - name: "Hot outside" unique_id:...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more