Help on automation trigger using template

can you guys maybe send me a link of how to format a template for my automation trigger using template… i need my trigger to fire every 30 minutes… it used to work with my old automation… since moving to the new version which using id and editing it on the front end below is my old automation

  • alias: ‘automation’
    trigger:
    platform: time
    hours: 00
    minutes: ‘/30’
    seconds: 00
    action:
    • condition: and
      conditions:
      • condition: numeric_state
        entity_id: sensor.pws_temp_f
        above: ‘89’
      • condition: time
        after: ‘10:00:00’
        before: ‘17:00:00’

If you show the code in proper format - see the blue box on top - it would be much easier for anybody to help you.
So far I can only see that the conditions you’d like to use need to be preceded by the word condition (in place where the work ‘action’ is right now).
And then you still need an action as well.

that’s my old automation which i don’t have any problem with… but after moving to the new format of automation where you can edit it via front end it doesnt work anymore… I’m showing an example of what i want my trigger would be… i want it to fire up every 30 minutes but using template… instead of the format above

how would you convert this or make this using the front end automation editor??

trigger:

  • platform: time
    minutes: ‘/30’
    seconds: 0

condition:

  • condition: and
    conditions:
    • condition: state
      entity_id: climate.2gig_technologies_ct100_thermostat_usa_cooling_1_23
      state: ‘Heat’
    • condition: numeric_state
      entity_id: sensor.2gig_technologies_ct100_thermostat_usa_relative_humidity_23_3
      below: 45

action:

  • service: switch.turn_on
    entity_id: switch.ge_45603_plugin_appliance_module_switch_14
  • delay: 0:29
  • service: switch.turn_off
    entity_id: switch.ge_45603_plugin_appliance_module_switch_14

I’m not familiar with the frontend editor - first time I used it, it converted all my automations and screwed them up. But that happened several month ago and I understand it’s come a long way since then.

As a ‘hand-crafted’ automation I’d start with this:

- alias: Run something every 30min for 30sec
  trigger:
    platform: time
    minutes: '/30’
    seconds: 0
  condition:
    condition: and
    conditions:
      - condition: state
          entity_id: climate.2gig_technologies_ct100_thermostat_usa_cooling_1_23
          state: ‘Heat’
      - condition: numeric_state
          entity_id: sensor.2gig_technologies_ct100_thermostat_usa_relative_humidity_23_3
          below: 45
  action:
    - service: switch.turn_on
      entity_id: switch.ge_45603_plugin_appliance_module_switch_14
    - delay: '00:00:29'
      service: switch.turn_off
      entity_id: switch.ge_45603_plugin_appliance_module_switch_14

To later be able to manipulate it in the frontend editor I think you’d need to add an id entry to it.

thank you for trying to help… not working…

If you are looking for more help in this forum, no matter if it’s from me or someone else, you might want to add a little more detail to the ‘not working’ statement.