Skip to content

Instantly share code, notes, and snippets.

@astrandb
Last active May 22, 2024 13:41
Show Gist options
  • Save astrandb/5ec47d6979b590639d23144142ae3100 to your computer and use it in GitHub Desktop.
Save astrandb/5ec47d6979b590639d23144142ae3100 to your computer and use it in GitHub Desktop.
Miele log - Blueprint for Home Assistant
blueprint:
name: Log Miele status
description: Write log messages when states change in Miele integration.
domain: automation
source_url: https://gist.github.com/astrandb/5ec47d6979b590639d23144142ae3100
input:
monitored_entity:
name: Monitored sensor
description: Select the sensor to monitor
selector:
entity:
domain: sensor
integration: miele
trigger:
platform: state
entity_id: !input monitored_entity
action:
alias: "Log the message"
service: system_log.write
data:
message: 'Miele status: {{ trigger.entity_id }}: {{ trigger.to_state.state }} | {{ trigger.to_state.attributes }}'
level: warning
@astrandb
Copy link
Author

Blueprint for creating logging automation.
Will log all state changes for selected entity in miele integration.
Use to assist in debugging of program id:s and phases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment