jmcollin78 / versatile_thermostat

A full featured Thermostat for Home Assistant: presets, window, motion, presence and overpowering management
MIT License
329 stars 34 forks source link

Power percent unit in W instead of % #193

Closed Merangle closed 1 year ago

Merangle commented 1 year ago

Version of the custom_component

Configuration

My VTherm attributes are the following:

hvac_modes: heat, off
min_temp: 7
max_temp: 25
target_temp_step: 0.1
preset_modes: none, eco, comfort, boost
current_temperature: 19.9
temperature: 19.5
hvac_action: idle
preset_mode: comfort
is_on: true
hvac_mode: heat
type: null
eco_temp: 18
boost_temp: 20
comfort_temp: 19.5
eco_away_temp: 17
boost_away_temp: 21
comfort_away_temp: 18.5
power_temp: 13
target_temperature_step: 0.1
ext_current_temperature: 12.01
ac_mode: false
current_power: 0
current_power_max: 12000
saved_preset_mode: comfort
saved_target_temp: 19.5
saved_hvac_mode: null
window_state: off
motion_state: null
overpowering_state: false
presence_state: on
window_auto_state: off
window_bypass_state: false
security_delay_min: 120
security_min_on_percent: 0.5
security_default_on_percent: 0.1
last_temperature_datetime: 2023-11-14T21:06:40.760320+01:00
last_ext_temperature_datetime: 2023-11-14T21:10:45.602381+01:00
security_state: false
minimal_activation_delay_sec: 60
device_power: 1
mean_cycle_power: 0
total_energy: 13.4
last_update_datetime: 2023-11-14T21:10:45.609612+01:00
timezone: Europe/Paris
window_sensor_entity_id: null
window_delay_sec: 30
window_auto_open_threshold: 0.05
window_auto_close_threshold: 0
window_auto_max_duration: 60
motion_sensor_entity_id: null
presence_sensor_entity_id: binary_sensor.arnaud_home
power_sensor_entity_id: sensor.bureau_power
max_power_sensor_entity_id: sensor.max_power
temperature_unit: °C
is_device_active: false
is_over_switch: true
is_inversed: false
underlying_switch_0: switch.bureau_switch
underlying_switch_1: null
underlying_switch_2: null
underlying_switch_3: null
on_percent: 0
power_percent: 0
on_time_sec: 0
off_time_sec: 540
cycle_min: 9
function: tpi
tpi_coef_int: 0.7
tpi_coef_ext: 0.021
friendly_name: Bureau
supported_features: 17

Describe the bug

Power_percent is displayed with a W unit instead of %. Capture

I'm trying to:

And I expect:

But I observe this ....

I read the documentation on the README.md file and I don't find any relevant information about this issue.

Debug log

logger:
    default: info
    logs:
        custom_components.versatile_thermostat: info

Add your logs here.
jmcollin78 commented 1 year ago

This is not what I have. Where did you see that ?

Capture d’écran 2023-11-17 à 00 23 03

Capture d’écran 2023-11-17 à 00 23 54

jmcollin78 commented 1 year ago

Is that ok tor you @Merangle ?

jmcollin78 commented 1 year ago

Please reopen if not ok.