I have existing physical KNX switches. They control light switches and on/off for HVAC.
HVAC is Mitsubishi City controlled via CoolMaster and uses the HA Coolmaster integration.
I want to be able to turn the HVAC on/off via the KNX switch. I have two automations (below) that work - but one only works if the other is turned off. I believe that the reason is that I need to be able to tell the KNX switch that the HVAC is on or off it turned on by Lovelace or other.
expose:
- type: binary
address: "10/273"
entity_id: switch.office_hvac
default: false
- name: "KNX Office HVAC"
address: "10/273"
state_address: "10/273"
alias: ' KNX On Switch Office HVAC v2'
description: ''
trigger:
- platform: state
entity_id: switch.office_hvac
id: 'true'
condition: []
action:
- device_id: ffbd7cc1d65af4cbbd1f2396bf40ac03
domain: climate
entity_id: climate.l1_017
type: set_hvac_mode
hvac_mode: cool
mode: single
alias: 'KNX off Switch Office HVAC '
description: ''
trigger:
- platform: state
entity_id: switch.office_hvac
id: 'false'
condition: []
action:
- service: climate.turn_off
target:
entity_id: climate.l1_017
mode: single
This automation does not work. I believe this is the key to other automations working. But I cannot figure it out.
alias: Office HVAC on - Turn on KNX Switch
description: ''
trigger:
- platform: state
entity_id: climate.l1_017
id: 'on'
condition: []
action:
- service: knx.exposure_register
data:
entity_id: switch.office_hvac
attribute: 'on'
address: 10/273
mode: single