@not_a_coder wrote:
I was able to setup target_temp_high and target_temp_low through climate.set_temperature in automation so assume that there is a way to read the target_temp_high and target_temp_low of climate.thermostat if it is ever changed manually on the thermostat or through some automation and then have an alert sent. It seems that I need to create a template since I don’t see them as sensors or entities in areas I would expect them to show up. Am I correct in that assessment? If so how do I go about creating the template?
I have both Twilio and Pushbullet setup in my configuration.yaml and I have read through Send notification based on sensor and through the Alert integration but I get confused since there is no example of target_temp_high and target_temp_low and climate.set_temperature is not a sensor.
I have tried adding the following to my sensors.yaml but when I check the config with the validation tool it gives me an error of Configuration invalid
Invalid config for [sensor.template]: invalid template (TemplateSyntaxError: unexpected ‘}’, expected ‘)’) for dictionary value @ data[‘sensors’][‘thermostat_low’][‘value_template’]. Got “{{ ( state_attr(‘climate.set_temperature’, ‘target_temp_low’) }}”. (See ?, line ?).
- platform: template sensors: ###New sensor name thermostat_low: ####New friendly name friendly_name: "Thermostat Target Low" ####New Unit of measurement unit_of_measurement: '°F' value_template: "{{ ( state_attr('climate.set_temperature', 'target_temp_low') }}"
Posts: 1
Participants: 1