rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.87k stars 552 forks source link

List of future improvements #15

Closed postlund closed 3 years ago

postlund commented 4 years ago

I think it's a good idea to make a list of features and improvements we can make in the future. I'll start with my list:

Anything I have missed? After some discussion we could make a priority list, create issues for things to do and come up with a roadmap (as supported here on GitHub).

rospogrigio commented 1 year ago

How do you delete a device with the LocalTuya integration (there is no delete option) ? Removing all DP is bad because you cannot get it back.

They have hidden the button but it's still there. You enter Integrations -> select the desired device -> 3 dots beside the Download Diagnostics button -> Delete.

FS1961 commented 1 year ago

Just go to "Devices and settings", devices, type the device, hit the three dots next to "download diagnostics" and a drop down will show up to delete the device.

georgebancila commented 1 year ago

Hello, is there a way to add a new entity to an existing device? Thanks

FS1961 commented 1 year ago

Edit the device is an option. 49696AC0-E0C5-4928-B6BE-DF3454712480

georgebancila commented 1 year ago

I was asking about adding a new entity in that edit device screen. But I just saw in other comments that it is not possible

Din-BH commented 1 year ago

One of my devices that has been working for quite some time just stopped working and entities from it lists as unavailable. I used to have it installed via a Node-red component as well, and that has stopped working too - the integration there still connects to teh device, but data requested from it comes up garbled like the data format would have been changed. Could the protocol have been upgraded OTA? Anyone encountered something similar?

Strike this - it seems the local key had been changed..

1st-BrainStormer commented 1 year ago

It would be nice to be able to transfer devices from the Tuya Cloud Integration so we don't have to manually put in all the data points on each device when switching over.

increddibelly commented 1 year ago

I totally agree with Brainstormer here. It's the only thing that's holding me back; the hassle of doing the requests that could be automated. using the api call at https://eu.iot.tuya.com/micro-app/cloud/api/v5_1/project/device/list will give all device Id's enumerating those through the device details api https://eu.iot.tuya.com/cloud/explorer?id=<>&groupId=group-controll&interfaceId=<> should be doable, right? and while I was digging for these, I found https://openapi.tuyaeu.com/v1.0/token?grant_type=1&terminal_id=11 gets a security token.

MrHaroldA commented 1 year ago

Sorry, but wouldn't it be easier to be able to directly tweak the configuration file for a more precise adjustment?

Is that still possible? I'd like to set the min/max range of a climate entity created by Local Tuya, but I can't find any yaml with the entity settings ...

Bohr80 commented 1 year ago

I agree with BrainStormer, it would be good be get all devices from Tuya IoT Platform. At the moment setting up Tuya IoT Platform doesn't work - gives error 1106: permission deny. At the same moment Tuya integration using the same IDs and passwords works perfectly fine.

cloudbr34k84 commented 1 year ago

I agree with BrainStormer, it would be good be get all devices from Tuya IoT Platform. At the moment setting up Tuya IoT Platform doesn't work - gives error 1106: permission deny. At the same moment Tuya integration using the same IDs and passwords works perfectly fine.

That's a different issue. Go to HA community and search for that error code. There are lots of discussions on how to fix that issue. 👍

1st-BrainStormer commented 1 year ago

I agree with BrainStormer, it would be good be get all devices from Tuya IoT Platform. At the moment setting up Tuya IoT Platform doesn't work - gives error 1106: permission deny. At the same moment Tuya integration using the same IDs and passwords works perfectly fine.

That error is that the free month access is up and you need to extend the test period.

Bohr80 commented 1 year ago

I agree with BrainStormer, it would be good be get all devices from Tuya IoT Platform. At the moment setting up Tuya IoT Platform doesn't work - gives error 1106: permission deny. At the same moment Tuya integration using the same IDs and passwords works perfectly fine.

That error is that the free month access is up and you need to extend the test period.

I don't think so, because it hasn't been a month yet since I've set my account on Tuya IoT Platform. But thanks for that suggestion, I would probably wonder what is going on after a month. ;)

avenger11 commented 1 year ago

Please add the support for Humidifier on the TODO list :)

rtech73 commented 1 year ago

Is there any plan to add support for their LED light strips? I just got one with TV sync and while the device is found and integrated, it indicates “not supported”.

jonwestuk commented 1 year ago

Please add the support for Humidifier on the TODO list :)

and if possible dehumidifiers - with the ability to set humidity level on the device, activate childlock, fan speed etc.

abcben78 commented 1 year ago

Just install the latest update, try to install a sensor and it hang the whole Local Tuya Integration. Nothing works anymore, it was already strange that it not discovering anymore.

rospogrigio commented 1 year ago

Well that's really strange, I have received many positive feedbacks and I am using the new version myself with no issues at all. Did you try restarting HA and/or reverting to the previous version of localtuya? Have you also tried to enable debugging (checking the new debug button) when adding the new sensor? Can you share the log messages? Thank you

abcben78 commented 1 year ago

Hello, hereby the logs as requested, hope that you do something with it.

The first thing what I saw was, that the discovery wasn't showing anything anymore, so I'm using the ... for adding a motion sensor and after that I have got the error. I find out that in .storage directory 3 core files are changed so I restore them from my backup after this I hat all after 3.5 hours online again... 😅

Since I use LocalTuya, I have no illumination sensors, motion sensors, and door open sensors anymore.

Motion sensors and contact sensors can only be installed as sensor and not as binary sensor, the result is a very slow sensor that can't be used for the lights anymore, only for a late triggering the alarm. In Tuya OK

Illumination sensors can't be installed at all. In Tuya OK

The 4" Terminal can't be installed at all. In Tuya OK

The coffee machine can't be installed. In Tuya OK

The buttons (Zibee) can't be installed. In Tuya OK

The sockets (Wifi and Zigbee) are working fine, but the energy, power, etc. can I only been seeing as a attribute. In Tuya OK

The switches are working fine, but timers, back-light, etc. are not there anymore. In Tuya OK

The bulbs work fine, there is nothing what I can find that doesn't work. In Tuya OK

The shutters are working fine, there is nothing what I can find that doesn't work. In Tuya OK

When you need more information I'm glad to give it.

Yes, I can have some help here 😁😁😁

You need a beta tester?

Greetings,

Ben

On Wed, 11 Jan 2023 at 08:22, rospogrigio @.***> wrote:

Well that's really strange, I have received many positive feedbacks and I am using the new version myself with no issues at all. Did you try restarting HA and/or reverting to the previous version of localtuya? Have you also tried to enable debugging (checking the new debug button) when adding the new sensor? Can you share the log messages? Thank you

— Reply to this email directly, view it on GitHub https://github.com/rospogrigio/localtuya/issues/15#issuecomment-1378388075, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY6VFUEZPXHQYONHIN7V3NTWRZUUTANCNFSM4RMA33GA . You are receiving this because you commented.Message ID: @.***>

rospogrigio commented 1 year ago

@abcben78 well, I had a lot of users who tested and they all gave positive feedbacks, so I guess there's something strange with some of your devices. The changes introduced with 5.0.0 are quite extensive but they don't justify all these failures. You said you posted the logs but you actually didn't, so please retry. Then here is how I'd proceed:

abcben78 commented 1 year ago

I did the same thing as you did and the error didn't occurs anymore. Is it so that everything what work in Tuya also can work in LocalTuya? Thank you.

On Wed, 11 Jan 2023 at 11:34, rospogrigio @.***> wrote:

@abcben78 https://github.com/abcben78 well, I had a lot of users who tested and they all gave positive feedbacks, so I guess there's something strange with some of your devices. The changes introduced with 5.0.0 are quite extensive but they don't justify all these failures. You said you posted the logs but you actually didn't so please retry. Then here is how I'd proceed:

  • I'd revert to localtuya 4.x.x and check that everything works as before
  • then I'd remove the integration entirely, upgrade to 5.0.0 and start re-adding the devices one by one, starting with the most problematic ones, enabling the debug with the new button I added. Once we are able to add the device successfully the debug can be disabled for that device Send your logs in the meantime so I can check if there is some clear error. Thank you

— Reply to this email directly, view it on GitHub https://github.com/rospogrigio/localtuya/issues/15#issuecomment-1378615373, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY6VFUC4YU2KWBCH37SMDW3WR2LEJANCNFSM4RMA33GA . You are receiving this because you were mentioned.Message ID: @.***>

rospogrigio commented 1 year ago

Well... no. Tuya works via cloud APIs, localtuya uses a local socket to send commands directly. Also, there is a new protocol that Tuya is using that seems no-one was able to decrypt yet (maybe protocol 3.5? who knows). Of course everything that works in Tuya COULD work in LocalTuya but it has to be coded differently.

rumlak commented 1 year ago

Support for the wifi pet feeders would be a great addition

TolianIPB commented 1 year ago

Hi guys! I really want to see support for Zigbee network Getwways by IP in Local Tuya. It would be an awesome solution. Something like this: https://github.com/leeyuentuen/localtuya/

Your branch is very positive branch and you fix problems quickly. Please tell me, is there any hope that Zigbee will appear in your branch?

cloudbr34k84 commented 1 year ago

the ability to add entities to an already created device. You currently have to start all over again

patrik-malina commented 1 year ago

the ability to add entities to an already created device. You currently have to start all over again

+1

wenstarner commented 1 year ago

Hi, I have a DP ID of 3, which contains the speed of my Tuya fan (Breville AirDynamic).

I can see the value updating in the configuration window (if I manually set the speed on the fan itself, the value in the config window for the relevant DP ID will update).

However, when I create a number entity, the fan doesn’t change speed. The fan has speeds from 1 to 8, and even a simple change to ‘2’ does nothing. I have set the number entity type to String.

Does anyone know why this is the case? Perhaps number entities are not supported? Switches work fine for me.

Thanks!

cloudbr34k84 commented 1 year ago

Number entities are supported but this is a fan. I think there is fan domain you can choose??

cloudbr34k84 commented 1 year ago

Number entities are supported but this is a fan. I think there is fan domain you can choose?? Try playing with that

Screenshot_20230307-230744.png

wenstarner commented 1 year ago

Thank you—I tried that, but it doesn’t work!

Even more interesting is what I found after some more testing:

  1. The number entity will READ the current fan speed (a number from 1 to 8, inclusive). So when I change the speed on the fan itself, the number entity updates in the logbook.
  2. I cannot WRITE a new number to the fan. The slider stays on the number I select, but the logbook shows no actual update. Also, I can see that the fan speed has not changed.
  3. An exception to Point 2: When I set the fan speed on the fan itself, adjusting the number entity slide up or down will put the fan into some kind of ‘0’ power state (seems to operate at the same power as Level 1). Strangely, when I go to add a new device while on this mode, Local Tuya reports for this DP ID the value that I manually set on the unit—so the slide changed the fan speed to low, but the unit doesn’t seem to register that it’s changed to the strange ‘0’ lower speed.

Anyway, I suppose long story short is: Does anyone know how I can get the number entity slider to successfully write to the unit? As it currently can read fine.

I’m new to HA so am happy to provide logs, but thought I’d ask this now as switches, etc. work perfectly fine. Thanks!

lukiluki123 commented 1 year ago

Hi guys! I really want to see support for Zigbee network Getwways by IP in Local Tuya. It would be an awesome solution. Something like this: https://github.com/leeyuentuen/localtuya/

+1

spanzetta commented 1 year ago

Any chance to support directly this device?

https://github.com/make-all/tuya-local/issues/638

It's a Wifi Water timer that works with Smartlife..

I asked the support at tuya-local, the author said it was implemented, but it's not true.. it doesn't work and when i asked help the answer was always generic..

I hope you can enable support for it.. all device pid (exported from tuya cloud) are listed on the above link

Thanks in advance

GarfieldMZ commented 1 year ago

Hey! Is there any chance to get a "Pet Feeder" integrated (like this)

Thanks!!

MikeLehnitz commented 10 months ago

Hello, I would like temperature/humidity sensors (WIFI) to be integrated.

ralvarez83 commented 8 months ago

Hi, I would like Smart Bluetooth Soil Tester Temperature and Humidity Meter to be integrated. A product example is this.

Thanks so much

sommelierak111 commented 8 months ago

Hi. Tuya makes Garage Door Opener CKM01-EU, (product category ckmkzq) logicaly its a short time connection relay with binary sensor. And this device may be used also as controller for electric mechanical locks on the doors. Tuya addon integrates it to HA as "cover". Need to support this device in localtuya. Minimal requirements are object state from sensor, + switch_on + switch_off.

phelipebf commented 7 months ago

Maybe we can start mapping DPs for some devices. I did this for Inkbird IHC-200 WiFi:

Sensors:
104: PV (current humidity)
106: SV (target humidity)

Mode:
115: 
- 1 = Work2 ON (Dehumidification)
- 2 = OFF
- 3 = Work1 ON (Humidification)

Settings:
102: Humidity Calibration
108: Dehumidification Delay Time
109: Alarm High Humidity Limit
110: Alarm Low Humidity Limit
117: Humidification Diferential Value
118: Dehumidification Diferential Value

UNKNOWN:
12: (number)
111: (boolean)
112: (boolean)
113: (boolean)
119: (boolean)
Bluscream commented 7 months ago

Maybe we can start mapping DPs for some devices. I did this for Inkbird IHC-200 WiFi:

Sensors:
104: PV (current humidity)
106: SV (target humidity)

Mode:
115: 
- 1 = Work2 ON (Dehumidification)
- 2 = OFF
- 3 = Work1 ON (Humidification)

Settings:
102: Humidity Calibration
108: Dehumidification Delay Time
109: Alarm High Humidity Limit
110: Alarm Low Humidity Limit
117: Humidification Diferential Value
118: Dehumidification Diferential Value

UNKNOWN:
12: (number)
111: (boolean)
112: (boolean)
113: (boolean)
119: (boolean)

we need this badly!

cloudbr34k84 commented 7 months ago

Maybe we can start mapping DPs for some devices. I did this for Inkbird IHC-200 WiFi:

Sensors:
104: PV (current humidity)
106: SV (target humidity)

Mode:
115: 
- 1 = Work2 ON (Dehumidification)
- 2 = OFF
- 3 = Work1 ON (Humidification)

Settings:
102: Humidity Calibration
108: Dehumidification Delay Time
109: Alarm High Humidity Limit
110: Alarm Low Humidity Limit
117: Humidification Diferential Value
118: Dehumidification Diferential Value

UNKNOWN:
12: (number)
111: (boolean)
112: (boolean)
113: (boolean)
119: (boolean)

we need this badly!

How did you get inkbird connected to tuya?? I have the wifi pool thermometer but could get it to connect

phelipebf commented 7 months ago

How did you get inkbird connected to tuya?? I have the wifi pool thermometer but could get it to connect

Pair with Tuya Smart app and it will be available in the cloud through this integration.

cloudbr34k84 commented 7 months ago

How did you get inkbird connected to tuya?? I have the wifi pool thermometer but could get it to connect

Pair with Tuya Smart app and it will be available in the cloud through this integration.

Mmm tried that.. wouldn't pair

titiviking commented 3 months ago

Any possibility "Alarm" device type can be added ? I got an unresponsive vendor that incorrectly set the 'device category = qt' in the Tuya Cloud platform and it is therefore not supported by the native integration. Hence I'm looking for an alternative to connect my alarm