alarmo icon indicating copy to clipboard operation
alarmo copied to clipboard

Adding Images to Notification

Open MrPresident2 opened this issue 2 years ago • 4 comments

Alarmo Version

v1.4.1

HA Version

2021.6.2

Bug description

Hey Guys, While trying to make a push notification (in this case for an android device) I can’t add an image like I can add it under regular automation - push notification ( notify. ) This might be a user error but I still would like to get some help, Thanks. Is that something that I'm doing wrong or a bug that we cant send images through Alarmo notifications? What I’m trying to write that is working in regular automation:

service: notify.addnamehere
data:
  title: ALARM
  message: The Alarm Is Disarmed
  data:
    image: /local/Notification_PNGs/nameofimage.png



### Steps to reproduce

_No response_

### Relevant log output

_No response_

MrPresident2 avatar Jun 06 '22 23:06 MrPresident2

Hi, I'm using: Alarmo Version v1.9.4 HA Version 2021.6.4 and don't see any problem sending image notifications by telegram.

YMAL code i'm using in the Alarmo actions:

service: notify.telegram_******
service_data:
  title: ''
  message: Grafika
  data:
    photo:
      - file: /config/www/graphics/Alarmo/Alarm_armed_custom.png
        caption: ''

Maybe try to send your notification through Services in Developer Tools and see if You can get it. I can't help You with android push notification becasue I've never used it.

zollek avatar Jun 08 '22 18:06 zollek

it is working via automation or services but it won't send the picture via alarmo notification panel

MrPresident2 avatar Jun 11 '22 10:06 MrPresident2

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jul 12 '22 00:07 github-actions[bot]

this is is not solved

MrPresident2 avatar Jul 12 '22 00:07 MrPresident2

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 13 '22 00:08 github-actions[bot]

@MrPresident2 I'm sorry for ignoring this issue. The problem is that I don't know how to help you. Actions in alarmo (should) support the same capabilities as a service in HA. The way of attaching an image depend on the device you are sending the image to.

I recommend to test your service in Developer Tools -> Services. Once this is working as it should, you can copy the YAML code of the service, and use it in an Alarmo action. If you experience that your service does work under Developer Tools but not in Alarmo, this is a possible bug that I might be able to help with, but so far I don't think this is the case.

nielsfaber avatar Aug 13 '22 06:08 nielsfaber

@nielsfaber That's what I'm trying to say. I've done it multiple times before, in the services, everything works just fine, but under Alarmo it is not working, thus it is a bug, not something else.

MrPresident2 avatar Aug 14 '22 03:08 MrPresident2

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Sep 14 '22 00:09 github-actions[bot]