Good afternoon,
I previously wrote my own script by analogy with the script for Epson and it worked well until I decided to update the system to the latest builds. Now, as I noticed, I stopped working
- id: Notification cartridges
alias: Notification cartridges
initial_state: true
mode: queued
# max: 4
# max_exceeded: silent
trigger:
- platform: numeric_state
entity_id:
- sensor.hp_printer_ink_black
- sensor.hp_printer_ink_cyan
- sensor.hp_printer_ink_magenta
- sensor.hp_printer_ink_yellow
below: 30
action:
- service: notify.telegram
data:
message: "\U0001f5a8 Attention! Cartridges must be ordered. Black {{states('sensor.hp_printer_ink_black')|int(0)}}%, Cyan {{states('sensor.hp_printer_ink_cyan')|int(0)}}%, Magenta {{states('sensor.hp_printer_ink_magenta')|int(0)}}%, Yellow {{states('sensor.hp_printer_ink_yellow')|int(0)}}%"
title: "\U0001F449 System message"
What could be wrong with me?