Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

RT-1250 not compatible #24

@wallybenz

Description

@wallybenz

I found that the new RT-1250 is not compatible with this. they made some changes but was able to update a few files to get this working. The new recteq has a 22 digit non hex Device ID.

1st. Go to /custom_components/recteq/

2nd. Edit const.py and change:
LEN_DEVICE_ID = 20
to
LEN_DEVICE_ID = 22

and

DPS_TARGET = '102'
DPS_ACTUAL = '103'
DPS_PROBEA = '105'
DPS_PROBEB = '106'

to

DPS_TARGET = '101'
DPS_ACTUAL = '102'
DPS_PROBEA = '104'
DPS_PROBEB = '105'

3rd. Edit config_flow.py and change:

            if (len(user_input[CONF_DEVICE_ID]) != LEN_DEVICE_ID or
                    not all(c in string.hexdigits for c in user_input[CONF_DEVICE_ID])):
                self._errors[CONF_DEVICE_ID] = STR_INVALID_PREFIX + CONF_DEVICE_ID

to

            if (len(user_input[CONF_DEVICE_ID]) != LEN_DEVICE_ID ):
                self._errors[CONF_DEVICE_ID] = STR_INVALID_PREFIX + CONF_DEVICE_ID

finally restart home assistant and try to install device again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions