I had a KNX system that controlled lights, covers fans and HVAC. The KNX system operated independently for lights and covers with an AMX interface for automations, and a GUI. It also used the KNX Switch with an LCD Temp panel connected to AMX, which connected to a integration to a Mitsubishi HVAC system for on/off and temp control.
I used HA to replace all the AMX UI and interface capabilities and connected the HA to the Mitsubishi HVAC via Coolmaster. All this works perfectly, HVAC can be controlled via HA or Alexa commands. (expect for storing state for the HVAC when there is a power outage)
I want to use the existing KNX switches to turn the HVAC in a room on or off. This is what I’ve done so far.
The Expose switch works, the turn on HVAC automation works with a small bug, the turn off HVAC automation clashes with something and stops the Turn on automation from working.
However, the Turn off Automation, (which is a copy of the turn on automation" with the 2nd part turning off the HVAC) stops the first automation from working again. I can turn on the HVAC from HA, but not from the KNX switch once the off automation is used once.
Trying to figure out what is wrong.
Both have the exact same trigger and will clash with each other.
trigger:
- platform: state
entity_id: switch.office_hvac
id: 'on'
trigger:
- platform: state
entity_id: switch.office_hvac
id: 'off'
Both of them trigger on a state change. Be it on or off at the same time.
You will need to add the the to: line to decide on which action it should trigger:
trigger:
- platform: state
entity_id: switch.office_hvac
to: 'on'
id: 'on'
trigger:
- platform: state
entity_id: switch.office_hvac
to: 'off'
id: 'off'
And the id is only used to see what trigger was used when using multiple triggers.
So this could be just 1 automation using that. But since you are dealing with an simple on off a choose with a default action would be simpler.
Tho many other way available I’m sure soemone can post an even cleaner automation.
They allow me to turn the HVAC on/off via the KNX switch.
If however, I turn the HVAC off via the the dashboard in HA, the expose switch is not updated and the LED on the Switch is not updated for on/off. Is there a way to fix that?
Then you would need an automation for that too
Use the state of the climate for a trigger and then check if its ‘off’ : turn switch off
And default action turn switch on, off is an easier chack as climate can have multiple options for its on state like heat, cool
Awesome - this now works perfectly!
Is there a more clever way to have this work on another 15 units - other than just copy/paste and change variables for each individual unit.
I created the KNX office switch entity “KNX Office HVAC” last year. When I turn on the switch in HA or vice versa the red LED indicator light on the KNX panel lights up.
I created a new KNX entity switches for other KNX wall panels. The HA entity controls the physical switch and vice versa. But, not red indicator light. Tried this with several panels.
Code is the same for entity and expose.
What might be wrong? Do I need to reset the entire KNX system?