leeyuentuen / localtuya

local handling for Tuya devices
GNU General Public License v3.0
70 stars 17 forks source link

How to install repository without removing localtuya #67

Open zeduperes opened 1 year ago

zeduperes commented 1 year ago

How to install the repository (for testing purposes) without removing the local tuya main fork? Is any possibility to run more than one localtuya repository/version at the same time?

caco3 commented 1 year ago

The easiest way might be to install HomeAssistant on a different PC just for testing.

darth-aragoth commented 11 months ago

Also interrested... I'd like to use this fork for controlling Zigbee / BT devices, which are not supported in main fork, and use main fork to control other devices like cover controllers (with time-based positioning), which are not supported in this fork (mentioned here #59).

darth-aragoth commented 10 months ago

I managed to install this repository without removing main fork. I downloaded and replaced all 'localtuya' strings to 'localtuya2' (also 'Localtuya' to 'Localtuya2' and 'LocalTuya' to 'LocalTuya2') in all files inside 'custom_components' directory. Then I created 'localtuya2' in custom_components, after restarting I am able to use both integrations:

image

After adding some devices:

image

And finally I am able to use Zigbee devices (in localtuya2 integration) together with cover controllers (with time-based positioning, still not supported by this fork):

image

At the moment, I can't control the devices (e.g. turn off or on the sockets), but at least I can read parameters from temperature, humidity sensors, etc.