laurent-martin / ets-to-homeassistant

script to convert ETS5 project file to a YAML configuration file suitable for Home Assistant
Apache License 2.0
52 stars 12 forks source link

Heating function not implemented #21

Open phcollignon opened 2 months ago

phcollignon commented 2 months ago

Hello,

I get this message for heating functions :

WARN -- : Bath room Radiator function type heating_radiator not implemented
WARN -- : Radiator Bath room heating_radiator: function type not detected, skipping
WARN -- : Bath room Floor function type heating_floor not implemented
WARN -- : Floor Bath room heating_floor: function type not detected, skipping

And nothing converted to HA. Is it not implemented yet in the ruby lib ? neither in the source code ?

Regards,

phcollignon commented 2 months ago

I've just checked in the code, indeed it's not implemented ... https://github.com/laurent-martin/ets-to-homeassistant/blob/f4e2413b502751e9c757bd778bc372fcbc430574/lib/ets_to_hass/generator.rb#L207

laurent-martin commented 2 months ago

If you have a proposal for mapping, feel free to propose.

phcollignon commented 2 months ago

There is a sensors map here : https://www.home-assistant.io/integrations/knx/#value-types Other devices are defined on that page, binary_sensor i.e could be mapped to dpt 1.002 or 1.009

Superwallah commented 1 month ago

If DPT is 20.102, then this device should be mapped to domain "climate" and attribute "hvac_mode" (...though this DPT is often also used for the HVAC mode status object). All other addresses may be listed under a commented line like # to_be_mapped: 1/2/3

Alternatively, multiple options may be and in the same line, but as a comment: # temperature_address | target_temperature_address: 1/2/3 # delete the wrong attributes!