wogri / hass-blinds

Homessistant Blind library
Apache License 2.0
17 stars 1 forks source link

Feature request: Do not round blind position to multiple of tens #5

Open kaczkalolo opened 2 years ago

kaczkalolo commented 2 years ago

Hi, Please add possibility to position blinds to 1% of precision in class Blind. class Blind: """Entscheidet über die Rolladen-Situation"""

UP = 100 DOWN = 20

Now I can't assign for example value 15 for DOWN variable and i my case 15 is the best. 10 is too much and 20 is not enough.

Thanks

wogri commented 2 years ago

Please try the latest version, I implemented this patch - you will have to set ignore_10_percent_precision: true in your apps.yaml per blind. Try with one blind first, because I'm not sure if I missed something and if it will actually work.

Example config:

blind_gang_og_sued:
  class: Blinds
  module: blinds
  global_dependencies: 
  - blinds_lib
  - hysteresis_lib
  - sun_lib
  blind: cover.raffstore_obergeschoss_gang_drehtuer_sued                            
  contact: binary_sensor.kontakt_obergeschoss_ausgang_terasse
  inside_temperature: climate.thermostat_obergeschoss_kinderzimmer_emma             
  wind_alarm: binary_sensor.wetter_zentrale_funktionen_windalarm_jalousien          
  outside_temperature_sensor: sensor.wetter_zentrale_funktionen_aussentemperatur
  max_temp_sensor_value_yesterday: input_number.yesterdays_max_outside_temp_over_24_hours
  ignore_10_percent_precision: true
  blind_config:
    window_height: 205
    ledge: 135
    azimuth_entry: 89
    window_azimuth_position: 173
    window_type: door
    azimuth_exit: 210
    manual_night_control: True
    kill_switch_hold_time: 2
kaczkalolo commented 2 years ago

It works just fine now for over a week. Thank You !!! Your work is much appreciated

wogri commented 2 years ago

Thank you for the feedback! I’m glad to hear it also works in a different house now!

On Wed 1. Sep 2021 at 18:53, kaczkalolo @.***> wrote:

It works just fine now for over a week. Thank You !!! Your work is much appreciated

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/wogri/hass-blinds/issues/5#issuecomment-910469725, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABF243USNMPGIXNHXWWBOYDT7ZLBBANCNFSM5CIIM34A .