Giter VIP home page Giter VIP logo

Comments (1)

NdR91 avatar NdR91 commented on May 30, 2024

At the end I managed to get it working. Alsi, I found how to adapt it for a Daikin Climate and in order to get it working properly on homekit:

climate:
  - platform: climate_template
    name: Daikin Studio Homekit
    modes:
      - "auto"
      - "dry"
      - "off"
      - "cool"
      - "fan_only"
    min_temp: 7
    max_temp: 35
    # Template dati
    current_temperature_template: "{{ states.climate.daikin_studio.attributes.current_temperature }}"
    current_humidity_template: "{{ states('sensor.cucina_humidity_filtered') }}"
    availability_template: >-
      {% if states('climate.daikin_studio') in ['fan_only', 'dry', 'cool', 'heat', 'heat_cool', 'off']  %}
        true
      {% else %}
        false
      {% endif %}
    # Servizi
    set_hvac_mode:
      service: script.daikin_studio_homekit_hvac
    set_fan_mode:
      service: script.daikin_studio_homekit_fan
    set_temperature:
      service: script.daikin_studio_homekit_temperature
    temp_step: 1
    set_swing_mode:
      service: script.daikin_studio_homekit_swing
# Script Servizi
script:
  daikin_studio_homekit_hvac:
    alias: "Daikin Studio Homekit - HVAC"
    sequence:
      - service: climate.set_hvac_mode
        target:
          entity_id: climate.daikin_studio
        data:
          hvac_mode: '{{ states("climate.daikin_studio_homekit") }}'
  daikin_studio_homekit_fan:
    alias: "Daikin Studio Homekit - FAN"
    sequence:
      - service: climate.set_fan_mode
        target:
          entity_id: climate.daikin_studio
        data:
          fan_mode: >
            {% if is_state_attr('climate.daikin_studio_homekit', 'fan_mode', 'auto') %}
              Auto
            {% elif is_state_attr('climate.daikin_studio_homekit', 'fan_mode', 'low') %}
              Silence
            {% elif is_state_attr('climate.daikin_studio_homekit', 'fan_mode', 'medium') %}
              2
            {% elif is_state_attr('climate.daikin_studio_homekit', 'fan_mode', 'high') %}
              4
            {% else %}
            {% endif %}
  daikin_studio_homekit_temperature:
    alias: "Daikin Studio Homekit - TEMP"
    sequence:
      - service: climate.set_temperature
        target:
          entity_id: climate.daikin_studio
        data:
          temperature: "{{ states.climate.daikin_studio_homekit.attributes.temperature }}"
          hvac_mode: '{{ states("climate.daikin_studio_homekit") }}'
  daikin_studio_homekit_swing:
    alias: "Daikin Studio Homekit - SWING"
    sequence:
      - service: climate.set_swing_mode
        target:
          entity_id: climate.daikin_studio
        data:
          swing_mode: >
            {% if is_state_attr('climate.daikin_studio_homekit', 'swing_mode', 'on') %}
              3D
            {% elif is_state_attr('climate.daikin_studio_homekit', 'swing_mode', 'off') %}
              Off
            {% else %}
            {% endif %}

from hass-template-climate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.