Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation for Temperature #10

Open
dagrah opened this issue Dec 2, 2023 · 1 comment
Open

Automation for Temperature #10

dagrah opened this issue Dec 2, 2023 · 1 comment

Comments

@dagrah
Copy link

dagrah commented Dec 2, 2023

AC.txt
Dont know where to put this Thread, so here it is.
Feel free to move like you wish.

I createt an automation based on the temperature (like in the official app).
Humidity will be added in the future.
Here is my example and i hope this will help someone. (For 22°C and below = Fan Level 1 /// For every +1°C = Fan Level + 1)


alias: ALIAS
description: ""
trigger:

  • platform: state
    entity_id: SENSOR.YOURTEMPSENSOR
    action:
  • service: fan.set_percentage
    data_template:
    entity_id: FAN.YOURFAN
    percentage: >-
    {% set temperature_difference =
    states('SENSOR.YOURTEMPSENSOR') | float - 22 %} {% set
    fan_speed = 10 + (temperature_difference // 1) * 10 %} {% if fan_speed <
    10 %}
    10
    {% elif fan_speed > 100 %}
    100
    {% else %}
    {{ fan_speed }}
    {% endif %}`

If you don´t want to flood your logbook, you should exlude it with the exclude argument in the configuration.yaml


logbook:
exclude:
entities:
- automation.acinfinityautomation

EDIT: I´m to dumb for creating post with the right format, so please see the ac.txt file. Sorry for that.

@jpoet
Copy link

jpoet commented May 20, 2024

What mode does the AC Infinity need to be in to allow HA to control the fan speed? As far as I can tell, HA is able read the state of the AC Infinity, but not change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants