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

RT-1250 not compatible #24

Open
wallybenz opened this issue Feb 28, 2022 · 1 comment
Open

RT-1250 not compatible #24

wallybenz opened this issue Feb 28, 2022 · 1 comment

Comments

@wallybenz
Copy link

wallybenz commented Feb 28, 2022

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.

@drpeppershaker
Copy link

Can confirm that @wallybenz 's fixes here worked for my RT-1250

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants