Hi all
I managed to configure my telegram notification and all is working with the basics. My only issue is that i am unable to send the jpg / png. I get the following in the log “are not secure to load data from!”
The picture is under local (www)
Code:
- alias: 'Telegram bot that provides a weather forecast' initial_state: true trigger: platform: event event_type: telegram_command event_data: command: '/weather' action: - service: telegram_bot.send_photo data_template: target: '{{ trigger.event.data.user_id }}' disable_notification: true file: /local/climacons/{{ states.sensor.weather_today_icon.state }}.png caption: '{{ states.sensor.weather_today_summary.state }}' - service: telegram_bot.send_message data_template: target: '{{ trigger.event.data.user_id }}' disable_notification: true message: '{{ states.sensor.weather_today_temperature.state }} {{ states.sensor.weather_today_daily_summary.state }}'