Can anyone see why this isn’t firing on the platform start
- alias: Test Notification
trigger:
- platform: homeassistant
event: start
action:
service: notify.slackbot
data:
message: "Test!"
Can anyone see why this isn’t firing on the platform start
- alias: Test Notification
trigger:
- platform: homeassistant
event: start
action:
service: notify.slackbot
data:
message: "Test!"
@rossdargan – I’ve included my automation below. Are you sure your notify
service is named notify.slackbot
?
Really startup triggers not working anymore. I am trying to send mqtt message - but it not sended (not with platform: event; event_type: homeassistant_start; nor with homeassistant, start). Last_triggered also didn’t changed(for uptime tracking).
Full code:
- alias: ‘startup_notification’
trigger:
platform: event
event_type: homeassistant_start
action:
- service: mqtt.publish
data:
topic: “home/gateway/main/mid/set”
payload: 12
I’ve had problems with the new startup trigger too. For the time being I have moved back to the old way (waiting for homeassistant_start event).
trigger:
platform: event
event_type: homeassistant_start
im having same problem. any way i can fix this?
It appears there’s an issue on GitHub as well. My automation, linked here works as expected on 0.43.1
.
Can you manually trigger your automation from the dev panel?
The automation may be off
on HA start (it started happening since the last couple of releases). Make sure you have initial_state: 'on'
. Here’s how it should look:
- alias: Update HA after startup
initial_state: 'on'
trigger:
platform: homeassistant
event: start
tried it on 0.43.1 with initial_state On it does not work for me
tried both
- alias: Update HA after startup
initial_state: 'on'
trigger:
platform: homeassistant
event: start
initial_state: 'on'
trigger:
platform: event
event_type: homeassistant_start
This has been documented https://github.com/home-assistant/home-assistant/issues/7058
Follow the thread there for updates.