Generic_thermostat: log who I can blame for changing the temperature (AGAIN.. )

We use HA to control our beer brewing process… (great use case of HA … )
and someone in our team constantly changes the target temperature of our heaters controlling our fermentation process…

It would be great if the manual changes of the target temperature would be logged in the logbook with the user name so we know who gets us the next couple beers… (or has to clean the brewery… )

Ideal would be something like this:
hh:mm - thermostat1 - “User X changed the target temperature of n°C to x°C”

You could implement this if you want.

Make a state trigger on target temperature of the climate entity.

When it is changed, the resultant trigger object will contain the userid of the user that initiated the change through the UI.

Then you can call logbook.log with this information.

trigger:
  to_state:
    entity_id: climate.heatpump
    ...
    context:
      id: 01JJQ84ZRBQ9CVCQCAKG1EFP7Y
      parent_id: null
      user_id: c77b9345cebd42b197f444f86c9d600b

It wouldn’t be that hard to add an automation to change it back if it’s ever changed for any reason, then add a script to actually change the the temp with a password.
As long they are not into programming, it will take them a while to figure it out to cheat on you.