-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
set_temperature does not work! #67
Comments
IMO you can't call When temperature is set on the card, you have to directly invoke your specific device function (aircon), and in the service call or property set you can refer to the {{ temperature }} value ex.: sequence:
- service: number.set_value
data:
value: "{{ temperature | float(1) }}"
target:
xxxxxxxxxxxxx |
I did as you told me, but still not working. The same behavior: I can change Bedroom Aircon target temperature from termostato_z1 but I can't change termostato_z1 target temperature from Bedroom Aircon. This is my code now: ` - platform: climate_template
|
You need to directly address the aircon entity (input.number temperature ???) if you want to set the new temperature. Let say that my_aircon temperature is controlled by a number entity.
Condition template might be unnecessary as the temperature can be set anyway, also if it's just the current one. |
The climate template entity is useful in these situations:
(All these entities are provided to HA by their specific integrations.) Now you want to create a logic controller that regulates your house temperature: and just for this scope you can use the climate template entity to group all those entities together as a thermostat. For example your logic could be:
The HA climate card (thermostat) let you use the created climate template entity to show the current state, and override the logic if you need so. |
I understand. Thanks so much for the explanation. I will explain a little better what I am trying to achieve based on what you have told me. I have a wireless zigbee thermostat that only works for heat (Bedroom_Aircon), and I want it to work for both cold and heat. My idea is to use the temperature sensor entity that the thermostat gives me, as well as the set point variable. Take these two entities and create a "virtual" thermostat that works for hot and cold. In addition to that, I would like that when modifying the set point in the virtual thermostat, it would also be modified in the wireless zigbee thermostat (it has a screen). I know how to create a sensor with the thermostat temperature (with a template) :) |
So you don't get/set this value in HA? The model of the zigbee thermostat can help to understand how it works. Anyway, generally speaking, the entities available for managing a device (get and set) are provided by the integration that manages it, you can't add an entity to it. Probably the best solution might be to use a different thermostat with all the settings already available in HA. |
This should work for what you are trying to do @douglascrc-git `set_temperature:
|
The problem
I have this code
` - platform: climate_template
name: Bedroom Aircon
modes:
- "heat"
- "off"
- "cool"
min_temp: 5
max_temp: 30
`
I've been trying to get the Bedroom Aircon thermostat to obtain the target temperature from the termostato_zona_z1 thermostat and, moreover, when I change the target temperature of the Bedroom Aircon, it should also modify the temperature of the termostato_zona_z1 thermostat. But for some reason, the set_temperature action isn't working.
I tried removing this line
target_temperature_template: "{{ state_attr('climate.termostato_zona_z1', 'temperature') }}
", and the set_temperature action works. But leaving both lines doesn't work.Is there any way to solve this?
What version of Template Climate has the issue?
No response
What version of Home Assistant are you running?
No response
What type of installation are you running?
None
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: