[SOLVED] Automation with pushbullet

Hi all! I have an automation that when the door opens turn on a light and send a notification through pushbullet (this part doesn’t work)

this is the notify code

notify:
  - platform: pushbullet
    name: notifica_sensore_porta
    api_key: XXX

and this is the automation code:

- alias: accendi lampada ad apertura porta
    trigger:
      platform: state
      entity_id: binary_sensor.contatto_apertura_ingresso
      to: 'on'
    condition:
      condition: state
      entity_id: input_boolean.alarm_armed
      state: 'on'
    action:
      - service: homeassistant.turn_on
        entity_id: light.lampada_salotto
      - service: notify.notifica_sensore_porta
        data:
          message: 'allarme porta'

I have tested the notify via dev-services and it works, the automation works fine till the light part but the last service (notify.notifica_sensore_porta) doesn’t work

some hints?

try it like this

action:
  - service: light.turn_on
    entity_id: light.lampada_salotto
  - service: notify.notifica_sensore_porta
    data:
      title: "{{now().strftime('%H:%M:%S')}}"
      message: 'allarme porta'

you changed the first service from homeassistant.turn_on to light.turn_on and in the second the title of the message? :hushed::thinking: ok i’ll try, thank you!

ok now everything works! although I’ve made a tons of modifies so I don’t really know what was wrong :blush: