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

[Feature Request] Add additional sensors from the SwiCago lib #119

Open
swannet opened this issue Oct 20, 2023 · 3 comments
Open

[Feature Request] Add additional sensors from the SwiCago lib #119

swannet opened this issue Oct 20, 2023 · 3 comments

Comments

@swannet
Copy link

swannet commented Oct 20, 2023

Hi,

Is it possible to add sensors that are available in the SwiCago library but not yet in this esphome module? For example the "compressorFrequency" and the timer info of the unit?

-Sander

@tiltec
Copy link

tiltec commented Nov 15, 2023

I tried it here: master...tiltec:esphome-mitsubishiheatpump:master

It adds a new sensor that can read the compressor frequency. You can configure it like this:

climate:
  - platform: mitsubishi_heatpump
    id: hp
    compressor_frequency:
      name: "compressor frequency"
      id: compressor_frequency

Unfortunately, it doesn't return anything on my device (MSZ-HR50VF). But in theory, it should work.

@danolson1
Copy link

I have a similar question. Can I get the device to report the 'current_temperature' value as a sensor. Something like this:

sensor:
  - platform: mitsubishi_heatpump
    current_temperature

@echavet
Copy link

echavet commented Mar 16, 2024

You can create a card this way:

type: entity
entity: climate.esp32_hp_clim_sejour
attribute: current_temperature

or use a Jinja2 template:

{% set climate_entity = states.climate.esp32_hp_clim_sejour %}
{% if climate_entity %}
  <h1>Informations Climatiseur</h1>
  <p><strong>État :</strong> {{ climate_entity.state }}</p>
    <p><strong>Température cible :</strong> {{ climate_entity.attributes.temperature }}°C</p>
    <p><strong>Température actuelle :</strong> {{ climate_entity.attributes.current_temperature }}°C</p>
    {% if climate_entity.attributes.fan_mode %}
    <p><strong>Mode ventilateur :</strong> {{ climate_entity.attributes.fan_mode }}</p>
  {% endif %}
{% else %}
  <p>Entité climatiseur non trouvée.</p>
{% endif %}

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

4 participants