Comments (1)
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)
- Open a Topic on Community Forum
- Setup failed for custom integration climate_template: No setup or config entry setup function defined. HOT 1
- [FR]: `is_heating_template`
- Platform error climate.climate_template - cannot import name 'ClimateEntityFeature' HOT 2
- [FR]: Add unique_id
- hvac action template HOT 2
- Log Errors: Running script requires passing in a context // Thermostat: Already running
- Cannot add to repository HOT 4
- [FR]: Target temperature step to 0.5 HOT 1
- `None` `hvac_action` should be allowed HOT 1
- How to install this template? HOT 3
- Set_temperature error HOT 1
- Moes UFO-R11 Zigbee IR blaster setup HOT 2
- hvac_mode_template HOT 10
- Template loop detected while rendering hvac_action_template
- Unable to see/set target temperature HOT 1
- [FR]: target_humidity_template and set_humidity
- target_temperature not visible HOT 2
- [FR]: set_hvac_action
- Error "running script requires passing in a context" | Fancoil Modbus Integration HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hass-template-climate.