Climate entity how display an attribute

Hi

I have setup the eq3btsmart, that is a climate entity. Now I see a value that is not shown default on the dashboard , but it is an attribute as shown below. I want to display the valve also on my home screen , how can i use this?? I can’t use the sensor template, because it is a climate .

climate.zolder manual

is_locked: false
unit_of_measurement: °C
current_temperature: 18.5
friendly_name: Zolder
away_mode: off
low_battery: false
min_temp: 5
window_open: false
operation_mode: manual
operation_list: off,on,auto,manual,away,boost
valve: 58
away_end: null
max_temp: 29.5
temperature: 18.5

But you can use the Template Sensor :slightly_smiling_face:

How do I create it??

I got this climate device

climate:

  • platform: eq3btsmart
    devices:
    Zolder:
    mac: ‘xx:xx:xx:xx:xx:xx’

and this sensor template for it?

sensor:

  • platform: template
    sensors:
    zoldervalve:
    value_template: ‘{{ states.climate.zolder.attributes.valve }}’

but than I get errors:

2017-11-21 15:47:03 ERROR (MainThread) [homeassistant.config] Invalid config for [sensor.template]: expected a dictionary for dictionary value @ data[‘sensors’][‘value_template’]. Got ‘{{ states.climate.zolder.attributes.valve }}’
expected a dictionary for dictionary value @ data[‘sensors’][‘zoldervalve’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.template/

Try

value_template: '{{ states.climate.zolder.attributes.valve.state }}'

And don’t forget to use the code formatting tool </> when quoting your code - without it nobody can tell if there are indentation problems.

{{ states.climate.zolder.attributes.valve }} should work.
What shows Developer Tools/Templates if you paste the above in?

Hi

checked with developer tools/templates, and gives the right value.

I delete the complete entry, and cut and past the template sensor example and replaced with my values, and now it works.

Thnx for the support

Hi @kroonen, one question. How did you set up the eq3btsmart component? I’m always getting the following error message:

2017-11-26 13:48:14 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package python-eq3bt==0.1.6: Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-iuwd60k5/bluepy/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-epjpec19-record/install-record.txt --single-version-externally-managed --prefix --compile --user --prefix=” failed with error code 1 in /tmp/pip-build-iuwd60k5/bluepy/ 2017-11-26 13:48:14 ERROR (MainThread) [homeassistant.setup] Not initializing climate.eq3btsmart because could not install dependency python-eq3bt==0.1.6 2017-11-26 13:48:14 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate.eq3btsmart: Could not install all requirements.

Thanks!

Hi , I also had this problem with the default os (resinos) , but when installing hassbian, is worked out of the box

Okay, thanks. I was thinking that you were able to get this working with hass.io

hassbian is also hass.io but than on debian.

https://home-assistant.io/docs/installation/hassbian/installation/

regards Richard

Hey kroonen,

hassbian and hass.io are both home assistant but they’e not the same. hass.io is running in a docker so that makes it a little bit more difficult to install additional packages :slight_smile: I found a temporary workaround I will try this evening.

Would you mind sharing the exact code for the climate sensor template you created? I’m trying to follow these instructions and can’t get this to work. I want to create a sensor (entity?) that displays the current temperature reading from my climate devices. I have several minisplits that are connected with the Honeywell platform. Thanks in advance!