Spent most of last night trying to figure this out and finally gave up and I came across a page that had the answer… One that I had missed several times! Here is the working way!
- alias: "Testing logging"
trigger:
platform: time
hours: 16
minutes: 34
seconds: 00
action:
service: logbook.log
data:
name: "Upstairs Temp: "
message: >
{{states.sensor.main_floor_temperature.state}}
A couple of important things:
- message: >
- the indentation of: {{states.sensor.main_floor_temperature.state}}
Hope this helps someone down the road with at least one night less of banging their head.