I need advice. I need to email the status of the electric sensor (helper - combine sensors) 1x per month. Email as a notification is not a problem to attach and read the status yes. I can’t connect the numerical status of the sensor.
Any ideas or solutions?
Assuming you want a snapshot in time of the sensor value. For example the cumulative energy used in the past month, the automation below will pull the current value of the sensor and include it in the e-mail.
- alias: "Generic Monthly Sensor Data"
id: 4ffc1a59-7dae-4645-ae90-306535443303
trigger:
platform: time
at: '01:00' #Trigger daily at 1 AM
condition:
condition: template
value_template: '{{ now().day == 2}}' #Will only execute the action on the second day of the month
action:
- service: notify.home_assistant #e-mail based notification service
data_template:
title: "Monthly Sensor Data"
message: "The sensor currently reads {{ states.sensor.example_entity.state }}"