Hi,
I tried using @bruhautomation instructions several times trying to convert my old automation files to the new standard, but was not able to So, I’ve decided in lieu of converting what I have (since there was only a small handful anyways) probably best just to go from scratch. While i’ve been able toget most of my simple automations working with little effort, i’ve come into some issues when trying to convert some of my more complex ones.The ones I seem to be having an issue with is the ones with data, like attachments in notifications and templates for my dimmers; i’m just not sure of how the formatting works.
Would someone please help me through a couple of my old automations, and how to convert them? The two that have me stumped the most are:
- alias: 'Back Doorbell'
trigger:
platform: state
entity_id: binary_sensor.2_door_chime_sensor_2_1
state: 'on'
action:
- service: notify.ap_telegram
data:
title: Home Assistant
message: Someone is at the back door!
- service: notify.ios_der_iphone
data:
title: Home Assistant
message: Someone is at the back door!
data:
attachment:
url: http://user:[email protected]/image/jpeg.cgi
content-type: jpg
hide-thumbnail: false
And this one
- alias: 'Master Bedroom Brightness'
hide_entity: False
trigger:
platform: state
entity_id: input_slider.mbdimmer
action:
- service: homeassistant.turn_on
entity_id:
- light.master_bedroom_1
- light.master_bedroom_2
- light.master_bedroom_3
- light.master_bedroom_light_strip
- light.ap_lamp
data_template:
transition: 5
brightness: '{{ (trigger.to_state.state | int * 255 / 100) | round }}'
Thanks in advance,