HA last restart sensor in YYYY-MM-DD format

Hello,

Is it possible to get HA last restart sensor in YYYY-MM-DD format (i.e. 2020-04-03), similar to systemmonitor - last_boot sensor? I could only find HA uptime component which unfortunately doesn’t show dates only hours, minutes or seconds.

If you have MQTT :

 trigger:
 - event: start
   platform: homeassistant
 action
 - data:
     payload_template: '{{ now().strftime("%Y-%m-%d") }}'
     topic: sensor/last_started
     retain: true
   service: mqtt.publish

and sensor

  - platform: mqtt
    name: "Last started"
    state_topic: "sensor/last_started"

alternatively, use input_datetime :wink:

Thank you very much - it works great :slight_smile: