The problem is I have no “notify.something” to change it to - I am replying dynamically to the user who sent the message. I really hope I don’t now have to do separate automations for every possible user???
I’m further confused it somehow only complains about 2 of the numerous automations I have that follow this same pattern…for example this one it seems to think is fine:
The repair is only about the target part but I also corrected some other legacy format you are using. e.g. data_template has not been used since forever.
Trying to fix this but I still get the warning popup even after fixing it.
I did a search for telegram_bot.send_message in my config folder and only one search comes up. Changed from target: to chat_id. Restarted HA, but the warning still pops up.
Any suggestions on how to further refine the search? What other search perimeters should I be targeting?
update: so I think the issue is that I still have the old telegram bot integration as suggested here.
I see the new telegram bot has been added. Do I just comment out these old lines and nothing else?? My existing automation should use the new telegram bot integration???
Hi @tom_l , I have a new bot but with the same chatID as the usual bot I use, but it does not send messages , when I comment out api_key: !secret snifferzbot_api it works but send to the old bot, when it is not commented out, I get no messages, what am I doing wrong?
actions:
- repeat:
while:
- condition: state
entity_id: device_tracker.galaxy_s24_ultra
state: "not_home"
sequence:
- action: telegram_bot.send_message
data:
chat_id: !secret casabot_chatid
api_key: !secret snifferzbot_api
title: '*TwoHourAlertPops*'
message: This is a two hour check-in alert pops
- delay:
minutes: 1
thanks for your assistance, the previous changes removed the warning and work perfectly.