I can`t send notification to pushover

Hello! I am newbie. I cant send notification to pushover. Help please!)
My code at configuration:

notify:
  - name: pushover
    platform: pushover
    api_key: -key-
    user_key: -key-

My code at automations:

  - alias: push_ted_home
    trigger:
    - platform: state
      entity_id: device_tracker.iphoneted
      from: 'away'
      to: 'home'
    condition: 
      - condition: state
        entity_id: input_boolean.notify_home
        state: 'on'
    action:
      service: notify.pushover
      data:
        message: "I`m home"
        title: "I`m home"
        data:
          priority: 0

What`s wrong? No error mesages at log (automation and pushover : debug)

I’m grasping at straws here but is that backquote in “I`m” a valid character for Pushover?

You say the log shows no error message. Does it contain an INFO message indicating something was, in fact, sent?

If you login to your Pushover account, does it have a record of messages sent (or at least a running count) so you can confirm it received the message but (for whatever reason) refused to forward it?

That automation will never trigger because it should be from: 'not_home'

Can you send notifications to pushover using the service tool?

2 Likes

Thank you for your reply! :slight_smile:

Pushover doesn`t see any messages from HomeAssistant.

  1. I changed “I`m home” to “ted home”
  2. I changed logger default log level to “info”
    And still nothing at log about notify or pushover and at pushover nothing too :frowning:

Sorry, can you help me, how I can use that?
I call service notify.pushover (without data, just call the service), and nothing happened. Clean log.

1 Like

Yes! { “message” : “This is a test” } working, and I have notification on my phone :slight_smile:
But… nothing at log

logger:
  default: info
  logs:
    notify.pushover: debug
    automation: debug

Possibly because there’s nothing logged for that service at a debug level for sending a one off notification. I don’t know, I don’t play with the logger settings.

Glad it is working for you :+1:

I will test now my automation then, thank you)
Can you say please, why I can`t use at trigger

  from: 'away'
  to: 'home'

or just

    state: 'home'

instead from → to like at cookbok

The second trigger should work. The first should be from ‘not_home’ instead of ‘away’.

Thank you guys! It`s working now :slight_smile:

  - alias: push_lamp_on
    trigger:
    - platform: state
      entity_id: light.light_switch_room_lamp
      to: 'on'
    action:
      service: notify.pushover
      data:
        message: "lamp on"
        title: "lamp on"

And was one more problem, my boolean somehow is turned off. Maybe you can help me with this too? Why boolean state is off, if I turned it on at frontend. After restrart hass it can be off again?

1 Like

okey, I read again this part:

This component will automatically restore the state it had prior to Home Assistant stopping as long as your entity does not have a set value for initial . To disable this feature, set a valid value for initial .

initial
(boolean)(Optional)Initial value when Home Assistant starts.

Default value: false

1 Like