Skip to content

Instantly share code, notes, and snippets.

@Doridian
Created January 29, 2023 00:01
Show Gist options
  • Select an option

  • Save Doridian/13acc51c2fc79e6d7fc2a4eabdebc79a to your computer and use it in GitHub Desktop.

Select an option

Save Doridian/13acc51c2fc79e6d7fc2a4eabdebc79a to your computer and use it in GitHub Desktop.
text_sensor:
- platform: version
id: esphome_device_version
internal: true
hide_timestamp: true
on_value:
- lambda: id(esphome_device_update_available).state = id(esphome_device_version).state != id(esphome_server_version).state;
- platform: homeassistant
entity_id: update.esphome_update
internal: true
id: esphome_server_version
attribute: installed_version
on_value:
- lambda: id(esphome_device_update_available).state = id(esphome_device_version).state != id(esphome_server_version).state;
binary_sensor:
- platform: template
id: esphome_device_update_available
name: "${friendly_name} ${type_prefix} Update available"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment