Bouni / luxtronik

Luxtronik integration for Home Assistant
MIT License
82 stars 13 forks source link

missing sensor and unit of operating hours #13

Closed Boddl closed 3 years ago

Boddl commented 3 years ago

Hello Bouni, i currently have 2 problems with the luxtronik integration.

  1. the sensor "ID_WEB_Temperatur_TRL" is not displayed, the log says the following image

  2. the operating hours are shown in seconds, there is a possibility to change them in hours? image

i hope you can help me. thx

Bouni commented 3 years ago

Hi,

The first one is strange, ID_WEB_Temperatur_TRL is clearly available: https://github.com/Bouni/python-luxtronik/blob/master/luxtronik/calculations.py#L54

Can you post your config?

For the second one, you can use template sensors to convert the value:

sensor:
  - platform: template
    sensors:
      verdichter_betriebsstunden_h:
        friendly_name: "Verdichter Betriebsstunden"
        unit_of_measurement: 'h'
        value_template: "{{ states("luxtronik.verdichter_betriebsstunden")|float / 3600 }}"
Boddl commented 3 years ago

here my configuration.yaml image

sensors/luxtronik/luxtronik.yaml image

Boddl commented 3 years ago

the second works, but i have change - value_template: "{}" in value_template: '{}'

Bouni commented 3 years ago

How did you install the integration, using HACS?

I have almost the exact same config and it works fine for me 🤔

  - platform: luxtronik
    scan_interval: 60
    sensors:
      - group: calculations
        id: ID_WEB_Temperatur_TVL
        friendly_name: Temperatur Vorlauf
      - group: calculations
        id: ID_WEB_Temperatur_TRL
        friendly_name: Temperatur Rücklauf

image

Boddl commented 3 years ago

yes, i use the integration from HACS.

it may be due to the integration of the sensorfolder like include_dir_list or include _dir_merge_list?

Bouni commented 3 years ago

it may be due to the integration of the sensorfolder like include_dir_list or include _dir_merge_list?

No, I use include_dir_merge_list myself and it works fine.

Would you mind uninstall and then reinstall the integration? Just to make sure everything is installed correctly.

Boddl commented 3 years ago

it may be due to the integration of the sensorfolder like include_dir_list or include _dir_merge_list?

No, I use include_dir_merge_list myself and it works fine.

Would you mind uninstall and then reinstall the integration? Just to make sure everything is installed correctly.

I've tried it at least 3 times and now again with the same result

Boddl commented 3 years ago

I have now deleted the entry and added it again, now it worked image

Bouni commented 3 years ago

Strange, to be honest, I have not the slightest clue what was wrong. Anyway, glad it works now 😊