Multiple Actions in a trigger?

I have been messing with HASS for a little while and started adding more devices, mostly Zwave.

Can I have multiple actions for a single trigger? I tried to add in a second platform and identity and it gives an error. what If I wanted a door sensor to do 3 things? For example the code below does not work.

  • id: front_door_closed
    alias: FT_Door_closed
    trigger:
    platform: numeric_state
    entity_id: sensor.frontdoor_alarm_level_2_1
    below: 200
    action:
    service: notify.ios_timiphone
    data:
    message: Froont Door is Closed

    service: homeassistant.turn_off
    entity_id: switch.patio_bulbs_switch_3_0

You can.
You should use the </> button from the editor toolbar to format your code - yaml is very picky about formatting and your posted code is no use when it doesn’t look exactly like in your config.

That said, you can do it like this:

alias: foo
trigger:
  - platform: bar
    [...]
condition:
  - condition: [...]
action:
  - service: notify.ios_timphone
    data:
      message: ...
  - service: homeassistant.turn_off
    entity_id: switch.patio_bulbs_switch_3_0

You can also call a script from the action-section.

HTH,
Sebastian