Closed Claudio1L closed 2 years ago
Hi, it work for me:
sensor:
- platform: template
sensors:
salus_temperature:
friendly_name: "Salus Current Temperature"
value_template: "{{ state_attr('climate.salus_thermostat', 'current_temperature') }}"
unit_of_measurement: '°C'
device_class: temperature
Thank you.
Using the same config, at the verification I got:
Invalid config for [sensor.template]: expected dictionary for dictionary value @ data['sensors']. Got None extra keys not allowed @ data['device_class']. Got 'temperature' extra keys not allowed @ data['friendly_name']. Got 'Salus Current Temperature' extra keys not allowed @ data['salus_temperature']. Got None extra keys not allowed @ data['unit_of_measurement']. Got '°C' extra keys not allowed @ data['value_template']. Got "{{ state_attr('climate.salus_thermostat', 'current_temperature') }}". (See ?, line ?).
Am I missing something? Syntax?
On 11 Feb 2022, at 13:58, kanteruk @.***> wrote:
Hi, it work for me: sensor:
platform: template sensors: salus_temperature: friendly_name: "Salus Current Temperature" value_template: "{{ state_attr('climate.salus_thermostat', 'current_temperature') }}" unit_of_measurement: '°C' device_class: temperature — Reply to this email directly, view it on GitHub https://github.com/floringhimie/salusfy/issues/3#issuecomment-1036187420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXK6MPSX4RNUSHL7TU45MA3U2UBXNANCNFSM5ODWBTNQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.
I think you have an indentation issue, check here Link
Thank you very much!
Worked with:
Thanks a lot again
On 11 Feb 2022, at 13:58, kanteruk @.***> wrote:
Hi, it work for me: sensor:
platform: template sensors: salus_temperature: friendly_name: "Salus Current Temperature" value_template: "{{ state_attr('climate.salus_thermostat', 'current_temperature') }}" unit_of_measurement: '°C' device_class: temperature — Reply to this email directly, view it on GitHub https://github.com/floringhimie/salusfy/issues/3#issuecomment-1036187420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXK6MPSX4RNUSHL7TU45MA3U2UBXNANCNFSM5ODWBTNQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.
HI, thank you very much for your effort.
Is there a way to expose single entities like current temp or wanted temp?
Thank you again