Automation stopped working after update to 48.1

Hi,

I had the following (only changed to new_entity_ids) working configuration in version 0.46, that doesn’t work anymore in version 48.1.
I can’t figure why it stopped working. Can anyone help?

- id: '1495702442417'
  alias: Store Motion Sensor2
  trigger:
    - platform: state
      entity_id: binary_sensor.aeotec_zw100_multisensor_6_2_sensor
      from: 'off'
      to: 'on'
  action:
    - service: mqtt.publish
      alias: MQTT store sensor2 ON time
      data:
        payload_template: '{{as_timestamp(states.binary_sensor.aeotec_zw100_multisensor_6_2_sensor.last_changed) | timestamp_custom("%d-%m-%y %H:%M:%S")}}'
        topic: "hass/storage/motion/on_time/sensor2"

I am also having issues when using the last_changed or last_triggered templates, as conditions in my case, they worked perfectly fine prior to upgrading like you mentioned.

Anyone have more input on this?

Meanwhile I have update to 49.0 and after some testing it looks like only the first sensor (I’v 3 aeotec_zw100_multisensors) got triggered now.
My automations.yaml file looks as follows:

- id: '1495702442415'
  alias: Store Motion Sensor0
  trigger:
    - platform: state
      entity_id: binary_sensor.aeotec_zw100_multisensor_6_0_sensor
      to: 'on'
  action:
    - service: mqtt.publish
      alias: MQTT store sensor0 ON time
      data:
        payload_template: 'test0'
        topic: "hass/storage/motion/on_time/sensor0"
#        payload_template: '{{as_timestamp(states.binary_sensor.aeotec_zw100_multisensor_6_0_sensor.last_changed) | timestamp_custom("%d-%m-%y %H:%M:%S")}}'
#        topic: "hass/storage/motion/on_time/sensor0"

- id: '1495702442416'
  alias: Store Motion Sensor1
  trigger:
    - platform: state
      entity_id: binary_sensor.aeotec_zw100_multisensor_6_1_sensor
      to: 'on'
  action:
    - service: mqtt.publish
      alias: MQTT store sensor1 ON time
      data:
        payload_template: 'test1'
        topic: "hass/storage/motion/on_time/sensor1"
#        payload_template: '{{as_timestamp(states.binary_sensor.aeotec_zw100_multisensor_6_1_sensor.last_changed) | timestamp_custom("%d-%m-%y %H:%M:%S")}}'
#        topic: "hass/storage/motion/on_time/sensor1"
        
- id: '1495702442417'
  alias: Store Motion Sensor2
  trigger:
    - platform: state
      entity_id: binary_sensor.aeotec_zw100_multisensor_6_2_sensor
      to: 'on'
  action:
    - service: mqtt.publish
      alias: MQTT store sensor2 ON time
      data:
        payload_template: 'test2'
        topic: "hass/storage/motion/on_time/sensor1"
#        payload_template: '{{as_timestamp(states.binary_sensor.aeotec_zw100_multisensor_6_2_sensor.last_changed) | timestamp_custom("%d-%m-%y %H:%M:%S")}}'
#        topic: "hass/storage/motion/on_time/sensor2"

In the logfile I see that only Sensor0 is executed when any of the motion sensors is triggered

INFO (MainThread) [homeassistant.components.automation] Executing Store Motion Sensor0

I think it is related to the new entity ids used in 0.47 because it was working fine in 0.46

Anyone had similar problems?