A trigger is a point-in-time event. There is no concept about having two triggers ANDed together.
Trigger off either sensor not changing for 2 hours, then check both in the conditions. Using template condition shorthand for brevity:
trigger:
- platform: state
entity_id:
- sensor.freezer_temperature
- sensor.refrigerator_temperature
for: "02:00:00"
condition:
- "{{ now()|as_timestamp - states['sensor.freezer_temperature']['last_updated']|as_timestamp >= 7200 }}"
- "{{ now()|as_timestamp - states['sensor.refrigerator_temperature']['last_updated']|as_timestamp >= 7200 }}"
action:
YOUR ACTION HERE
The action will run when the second of the two sensors does not change for two hours.
You didn’t. See here. Three backticks (```) before and after the code.