Hi. I’m quite new to HA. I have an integration with HA / KNX and Ubiquity. My presence detection is set up but it leaves to states. Home /not_home. I would like to create a second state that converts home to 1 and not_home to 0. This then needs to be sent back to the KNX system.
What do I do?
This will create the sensor Tracker of phone A which you can then expose in KNX
You can name it whats handy for you and ofc replace the XXXXXXX with whatever Unifi created.
I use the 2 checks for home and not_home to filter out any other state if your using zones.
If you just use those 2 then 1 line would suffise:
An alternative approach would be an automation using a state trigger for home/not_home and the knx.send service as action.
It would require extra work to be readable from the bus though (respond to GroupValueRead), so if this is needed I’d go for Charles’ solution.