wymand
(Doug Wyman)
June 18, 2024, 1:32am
1
Below is what I had but after RTFM referenced in replys, I will post an update of what I should have had but is still not acting as it was before.
Prior to the 2024.6 the following worked Could someone please post an example of how to do it now:
config.yaml:
notify:
- name: NextSong
platform: file
filename: 'pianobar/nextsong'
Automation using this:
alias: Button_Pianobar_Pause
description: Momentary Pause Play action
trigger:
- platform: event
event_type: ""
- platform: state
entity_id:
- input_button.pianobar_pause
condition: []
action:
- service: notify.nextsong
data:
message: pause
mode: single
The File integration was moved to the UI and is part of the first tranche of notify
integrations to move to notify
entities. You need to use the notify.send_message
entity service, as described in the docs:
where we had this before:
service: notify.filed_notifications
data:
message: >
{% set message = trigger.event.data.service_data.message %}
{% set service = trigger.event.data.service %}
{{now().strftime('%d %b: %X')}} - {{service}}: {{message}}
we need to replace it with this now:
service: notify.send_message
target:
entity_id: notify.filed_notifications
data:
message: >
{% set message = trigger.ev…
stevemann
(Stephen Mann (YAML-challenged))
June 18, 2024, 2:12am
3
Please read the instructions for posting at the top of each forum and edit your post to correctly display the code. The forum editor doesn’t keep the sketch formatting without code tags which makes it unreadable. If you post your code in code tags, more forum members will read it.
Notify has been thoroughly discussed in two other threads:
Where does notify.notify put files? - Configuration - Home Assistant Community (home-assistant.io)
and
Home Assistant Cookbook - Discussion Thread - Configuration - Home Assistant Community (home-assistant.io)
wymand
(Doug Wyman)
June 18, 2024, 4:30am
4
After some RTFM I did this
service: notify.send_message
target:
entity_id: notify.nextsong
data:
message: pause
Edited:
it doesn’t create the file as it used to do.