I’m new to HomeAssistant.
I have a House with a KNX Installation. In addition, I recently had 4 air conditioners installed that can be operated via WiFi and its own app.
I would like to be able to operate these air conditioners via a KNX Thermostat.
The thermostat should only forward the setpoint temperature to the air conditioner, and it should be possible to switch the respective device in the operating mode (alternatively, on/off would also be sufficient).
I was already able to integrate the air conditioners into HomeAssistant, for this I installed the LG SmarThinQ integration that i found on GitHub.
I was also able to integrate the KNX sensor into HomeAssistant. Both devices send their data to the HA but I can’t get them to communicate with each other.
I was at least able to synchronize the on/off status via a BluePrint from this Forum, but I can’t find a way for the target temperature and the HVAC state.
Is there possibly a BluePrint, which can also synchronize temperature values between 2 devices?
Id just use an automation that sets a new target temperature when the Knx sensor (or number) entity changes state.
Should the temperature only be set from Knx or from other sources (native remote control etc) as well? If latter, I’d use a Knx number entity and do the automation bidirectional (two triggers - one for changed target temperature from LG , one for the Knx number). Just be sure to not create a loop.
Alternatively use a Knx sensor and Knx expose to update the thermostats state.
bidirectional would be best, of course, so that the current temperature is also displayed on the KNX device when there is a change via the remote control or app.
I have already tested it via automation, using the example with the 2 switching states which can be found here in the forum, but then I always get an error in the log file. Is there an example of this somewhere?
I can’t find any blueprints for temperatures that will help me and I still don’t have the understanding for more at the moment.
This forum is full of examples… post your used automation yaml (in code-tags ```) here, as well as the exact error in the logs so we can have a picture.
There is a chance that there just is no blueprint for this, but it should be a straight forward automation so I’d recommend to have a look at the automation documentation and try to build your own.
You’ll probably want to do more automations in HA soon anyway
I was able to solve it now so far that the setpoint temperature is sent from the KNX to the air conditioning unit and sent back to another group address via “knx expose”.
The only thing that doesn’t work, however, is the triggering of the automation when the same temperature value is sent again, can this be enabled somewhere?
sensor:
- name: "SetTempFlur"
state_address: "7/1/2"
type: temperature
- name: "SetTempAnnabel"
state_address: "7/2/2"
type: temperature
- name: "SetTempFlorian"
state_address: "7/3/2"
type: temperature
- name: "SetTempSchlafen"
state_address: "7/4/2"
type: temperature
The problem with the air conditioners is that the devices only accept a setpoint change when the device is in cooling mode, the temperatures are ignored in standby, so it would be necessary to send the setpoints again after starting the AC.
Maybe I’m getting this wrong, but can’t you just do an automation with a trigger on AC turns to cooling mode and action to set the target temperature according to the current knx sensor state?
This sounds like you would like to have the automation trigger when a knx telegram is received on the sensor. FYI this is possible by configuring always_callback: true or using a plain knx_event instead of a sensor, but I wouldn’t see how this would solve the problem as you would have to trigger the KNX device to send the temperature then somehow.