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

Fix filter_timer_countdown causing 'OverflowError: int too big to convert' #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Cyberwizzard
Copy link

I have a Flexit Roomie V2, which is a rebranded Vento Expert Duo.

I can not add this fan to HomeAssistant as I get an error during setup (IP and password provided by me, broadcasting does not seem to work).

Without this patch I get:

Decimal value: 12084800
Traceback (most recent call last):
  File "test.py", line 27, in <module>
    if fan.init_device():
  File "/home/cyberwizzard/pyEcoventV2/ecoventv2/__init__.py", line 231, in init_device
    return self.update()
  File "/home/cyberwizzard/pyEcoventV2/ecoventv2/__init__.py", line 376, in update
    return self.do_func(self.func['read'], request)
  File "/home/cyberwizzard/pyEcoventV2/ecoventv2/__init__.py", line 365, in do_func
    self.parse_response(response)
  File "/home/cyberwizzard/pyEcoventV2/ecoventv2/__init__.py", line 483, in parse_response
    setattr ( self, self.params[int(response[:2].hex(),16)][0], response[2:].hex())
  File "/home/cyberwizzard/pyEcoventV2/ecoventv2/__init__.py", line 681, in filter_timer_countdown
    val = int(input,16).to_bytes(3,'big')
OverflowError: int too big to convert

Dump from the test script after applying this patch:

state: on
speed: high
boost_status: off
timer_mode: off
timer_counter: 0h 0m 0s
humidity_sensor_state: off
relay_sensor_state: on
analogV_sensor_state: off
humidity_treshold: 70
battery_voltage: 3062 mV
humidity: 53
analogV: 0
relay_status: off
man_speed: 3
fan1_speed: 3300
fan2_speed: 3300
filter_timer_countdown: 72d 8h 17m
boost_time: 30 m
rtc_time: 15h 49m 31s
rtc_date: 1 2017-09-18
device_search: 0034003454XXXXXX
device_password: bananas
machine_hours: 17d 15h 42m
alarm_status: no
cloud_server_state: on
firmware: 0.8 2023-11-04
filter_replacement_status: off
curent_wifi_ip: 192.168.0.38
airflow: ventilation
analogV_treshold: 50
unit_type: Vento Expert Duo A30-1 W V.2
night_mode_timer: 08h 00m
party_mode_timer: 04h 00m
humidity_status: off
analogV_status: off

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

Successfully merging this pull request may close these issues.

1 participant