Help with automation trigger when sensor temp is higher/lower than weather?

- alias: 'Bedroom hotter than outside'
  trigger:
    platform: template
    data_template: {{states.sensor.outdoor_temp.state > states.sensor_bedroom_temp.state}}
  condition:
    condition: numeric_state
    entity_id: sensor.bedroom_temperature
    above: 73
  action:
    service: zwave.set_config_parameter
    data_template: {
      "node_id": 2,
      "parameter": 25,
      "value": "Red"
    }

More examples here: