US Heat Pump with gas aux

Awesome. The code is technically stored in /var/lib/openhab2/jsondb/automation_rules.json but you’ll probably want to update it via the OpenHAB PaperUI (under Configuration → Rules, IIRC).

You’ll find rules like “HeatingCtrl received command” which has the code when the heat should be turned on:

And cooling:

And the logic for when to trigger the heating or cooling:

I find the text file easier to navigate to figure out which rules I should look into and then I use the PaperUI to actually look at and modify the code. I’d highly recommend making a backup before and after you make changes.

If you want to contribute your changes back, it’d be very cool to have a third mode (US-Heat-Pump) to add to the existing US and EU modes. Then if you ever have to re-flash the card you won’t have to re-apply all your changes. Just switch from US to US-Heat-Pump and you’ll be good to go.