hedbert
(Ed Nelson)
1
Greetings-
If I put these 2 templates into my config file only one of them shows up.
The first template is to pull the Outside Temp from ecobee
sensor:
- platform: template
sensors:
outside_temp:
friendly_name: "Outside Temp"
unit_of_measurement: '°F'
value_template: "{{ state_attr('weather.downstairs', 'temperature') | int }}"
The second template is to get the Solar Angle from Sun
sensor:
- platform: template
sensors:
solar_angle:
friendly_name: "Sun Angle"
unit_of_measurement: '°'
value_template: "{{ '%+.1f'|format(state_attr('sun.sun', 'elevation')) }}"
Thank you for your help!
Syrius
(Jeremy)
2
If your using a single configuration file, then the top level domains (sensor in this case) can only appear once.
You can simply put these together under the same sensor domain -
sensor:
- platform: template
sensors:
outside_temp:
friendly_name: "Outside Temp"
unit_of_measurement: '°F'
value_template: "{{ state_attr('weather.downstairs', 'temperature') | int }}"
solar_angle:
friendly_name: "Sun Angle"
unit_of_measurement: '°'
value_template: "{{ '%+.1f'|format(state_attr('sun.sun', 'elevation')) }}"
hedbert
(Ed Nelson)
3
Greetings-
Thank you!!! This worked! I appreciate your help! I am new to HA and I swear I tried this but it is working now!
1 Like