Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device_class and state_class needed for termostato_<name>_temperature and humidity #74

Open
ynlng opened this issue Aug 14, 2023 · 0 comments

Comments

@ynlng
Copy link

ynlng commented Aug 14, 2023

The integration's Temperature and Humidity mqtt sensors need to have device_class and state_class set. These attributes will make them suitable for inclusion in graphs.

- name: termostato_1_humidity
  state_topic: /bticino/xx/status
  value_template: '{{ value_json.humidity|int }}'
  unit_of_measurement: '%'
  icon: mdi:water-percent
  device_class: humidity
  state_class: measurement


- name: termostato_1_temperature
  state_topic: /bticino/xx/status
  value_template: '{{ value_json.temperature }}'
  unit_of_measurement: '°C'
  icon: mdi:thermometer
  device_class: temperature
  state_class: measurement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant