Closed nicopret1 closed 1 year ago
I have the same problem
Hi Jason,
The YAML file for the ITS-4.5HDsuper heatpump water heater will be similar to the one for aquatech_x6_water_heater.yaml. The ITS seems to have more data points though. I have created a yaml file based on the available information and copied the file into my tuya-local\devices folder. However, if I try to add my device it is still not detected correctly and I still only get the desk_lamp, ir_remote_sensors or simple_switch options.
I'll gladly contribute to create/test the config required for the ITS device. I'm, however, still fairly new to HA and therefore have limited experience with it. I therefore wanted to first do some local tests and get the basics going before creating a pull request to formally contribute. I'm, however, clearly missing something. Can you give me some pointers what to check for my device to be correctly detected?
I've attached my first attempt for the its_heatpump.yaml herewith. Since I was unable to upload a .yaml, I renamed it .txt to be able to upload it. its_heatpump_yaml.txt
Any help or pointers will be greatly appreciated.
Thank you,
Nico
I've managed to get the integration running with the basic diagnostics. I reduced the number of parameters to those listed in the diagnostic log and also changed the names to match those in the log. Below some detail:
I'm still missing something since none of the entities currently defined under "primary_entity:" show up. Herewith my current YAML file: ITS_4.5HDsuper_yaml.txt
Thanks @make-all I tested this but keep getting "Unknown Error Occurred" when trying to add this device.
This is the extent of the logs:
2023-07-23 19:17:50.704 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test
2023-07-23 19:17:50.704 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3
2023-07-23 19:17:50.759 DEBUG (SyncWorker_0) [custom_components.tuya_local.device] Test refreshed device state: {"dps": {"1": false, "2": "HEAT", "4": 55, "7": false, "14": 300, "15": 0, "17": "NO", "18": 53, "19": "OFF", "20": 15, "21": 39, "22": 16, "23": 11, "24": 15, "26": 11, "27": false, "28": false, "29": true, "30": false, "31": false, "32": false, "33": false, "40": 24, "41": 0, "101": 0, "102": 0, "103": 0, "104": 0, "105": false, "106": false, "107": false, "108": false, "109": false}}
2023-07-23 19:17:50.760 DEBUG (SyncWorker_0) [custom_components.tuya_local.device] new state (incl pending): {"updated_at": 1690132670.759641, "1": false, "2": "HEAT", "4": 55, "7": false, "14": 300, "15": 0, "17": "NO", "18": 53, "19": "OFF", "20": 15, "21": 39, "22": 16, "23": 11, "24": 15, "26": 11, "27": false, "28": false, "29": true, "30": false, "31": false, "32": false, "33": false, "40": 24, "41": 0, "101": 0, "102": 0, "103": 0, "104": 0, "105": false, "106": false, "107": false, "108": false, "109": false}
I was expecing more with logging level set to debug. Any suggestions on where else to look? Thanks for all the assistance!
Thanks @make-all I tested this but keep getting "Unknown Error Occurred" when trying to add this device.
This is the extent of the logs:
2023-07-23 19:17:50.704 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test 2023-07-23 19:17:50.704 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3 2023-07-23 19:17:50.759 DEBUG (SyncWorker_0) [custom_components.tuya_local.device] Test refreshed device state: {"dps": {"1": false, "2": "HEAT", "4": 55, "7": false, "14": 300, "15": 0, "17": "NO", "18": 53, "19": "OFF", "20": 15, "21": 39, "22": 16, "23": 11, "24": 15, "26": 11, "27": false, "28": false, "29": true, "30": false, "31": false, "32": false, "33": false, "40": 24, "41": 0, "101": 0, "102": 0, "103": 0, "104": 0, "105": false, "106": false, "107": false, "108": false, "109": false}} 2023-07-23 19:17:50.760 DEBUG (SyncWorker_0) [custom_components.tuya_local.device] new state (incl pending): {"updated_at": 1690132670.759641, "1": false, "2": "HEAT", "4": 55, "7": false, "14": 300, "15": 0, "17": "NO", "18": 53, "19": "OFF", "20": 15, "21": 39, "22": 16, "23": 11, "24": 15, "26": 11, "27": false, "28": false, "29": true, "30": false, "31": false, "32": false, "33": false, "40": 24, "41": 0, "101": 0, "102": 0, "103": 0, "104": 0, "105": false, "106": false, "107": false, "108": false, "109": false}
I was expecing more with logging level set to debug. Any suggestions on where else to look? Thanks for all the assistance!
@tnarg-retrac This file works for me - my ITS Heatpump (Model ITS-4.5HD Super) is detected and I can add my heat pumps. Make sure you reload YAML files in Developer Tools after you've added the file.
Thanks @nicopret1 - there must be another issue with my setup as I have reloaded tha YAML files. The one you posted above gave me the same issue. I'll keep digging, but at least I know the file should work.
I tried to debug but no joy. If I remove the its_45hd_heatpump.yaml file from the devices directory, I get back to the same process as you initially describe, with the device being found as
As soon as I add the file back, Tuya Local seems to connect to it correctly to retrieve the dps, but then dies with no logging ("Unknown error occurred"). I have also added debug logging to custom_components.tuya_local.helpers.device_config as well as custom_components.tuya_local but I am not catching any errors.
I have added other tuya components successfully so HA + TuyaLocal is working.
So I am out of idea. Any guidance would be appreciated. Thanks
Where can i found yaml file for this heat pump?
lun., 24 iul. 2023, 17:42 Nico Pretorius @.***> a scris:
Thanks @make-all https://github.com/make-all I tested this but keep getting "Unknown Error Occurred" when trying to add this device.
This is the extent of the logs: 2023-07-23 19:17:50.704 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test 2023-07-23 19:17:50.704 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3 2023-07-23 19:17:50.759 DEBUG (SyncWorker_0) [custom_components.tuya_local.device] Test refreshed device state: {"dps": {"1": false, "2": "HEAT", "4": 55, "7": false, "14": 300, "15": 0, "17": "NO", "18": 53, "19": "OFF", "20": 15, "21": 39, "22": 16, "23": 11, "24": 15, "26": 11, "27": false, "28": false, "29": true, "30": false, "31": false, "32": false, "33": false, "40": 24, "41": 0, "101": 0, "102": 0, "103": 0, "104": 0, "105": false, "106": false, "107": false, "108": false, "109": false}} 2023-07-23 19:17:50.760 DEBUG (SyncWorker_0) [custom_components.tuya_local.device] new state (incl pending): {"updated_at": 1690132670.759641, "1": false, "2": "HEAT", "4": 55, "7": false, "14": 300, "15": 0, "17": "NO", "18": 53, "19": "OFF", "20": 15, "21": 39, "22": 16, "23": 11, "24": 15, "26": 11, "27": false, "28": false, "29": true, "30": false, "31": false, "32": false, "33": false, "40": 24, "41": 0, "101": 0, "102": 0, "103": 0, "104": 0, "105": false, "106": false, "107": false, "108": false, "109": false}
I was expecing more with logging level set to debug. Any suggestions on where else to look? Thanks for all the assistance!
This file works for me - my ITS Heatpump (Model ITS-4.5HD Super) is detected and I can add my heat pumps. Make sure you reload YAML files in Developer Tools after you've added the file.
— Reply to this email directly, view it on GitHub https://github.com/make-all/tuya-local/issues/866#issuecomment-1648050159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZP2AZFFQJIXUN3GIUTRYWDXR2CVVANCNFSM6AAAAAAZ67NUGE . You are receiving this because you commented.Message ID: @.***>
This is possibly due to a protocol mismatch. Try setting protocol 3.5 and 3.4 manually.
Where can i found yaml file for this heat pump?
Look in this github repo for custom_components/tuya_local/devices/its_45hd_heatpump.yaml
@make-all Thank you for adding the support, it is highly appreciated and it is working well. Below find a summary of some minor changes I made to your file:
I have currently left Linkage sensor (ID=106), but I think you can also remove it since the value remains as "Disconnected" all the time.
Attached herewith find my current file.
This is possibly due to a protocol mismatch. Try setting protocol 3.5 and 3.4 manually.
Just to close the loop. An upgrade to 2023.7.0 resolved the "Unknown error occurred" issue when trying to add the device. Thanks
@make-all Thank you for adding the support, it is highly appreciated and it is working well. Below find a summary of some minor changes I made to your file:
- Changed current temperature id from 26 to 21. The best temperature sensor to use for the current water temperature is the "Inlet temperature" (ID=21) due to the location of the sensor. ID=26 is the "Ambient temperature"
- Added Suction temperature as secondary sensor (ID=20)
- Added Ambient temperature as secondary sensor (ID=26)
- Renamed "Exhaust temperature" to "Vent temperature" (ID=24)
- Removed all electricity related sensors for Voltage, Current and Energy (i.e. ID's=18,101, 101, 104, 105,). The ITS heat pump currently do not have sensors for these aspects and all values are therefore=0.
- Removed Chlorination (ID=30) since this type of heat pump is not a swimming pool heat pump. It is used as a water heater for the house (i.e geyser element alternative).
I have currently left Linkage sensor (ID=106), but I think you can also remove it since the value remains as "Disconnected" all the time.
Attached herewith find my current file.
@make-all I've updated my changes and also removed the Linkage sensor (ID=106) as listed above via a Github commit. I'm new to Github and hopefully I've followed the correct process to do so.
@make-all What will one need to be able to return the specific error code as per the below for Fault (ID=15)?
The values for each of those. They should each be powers of two, I think (1, 2, 4, 8, 16, 32....)
Log Message
Information about DPS mappings
Product ID
"product_id": "hqegspadimukzmll"
Information about how the device functions
I've recently installed two ITS-4.5HDsuper heat pumps (https://itssolar.co.za/product/4-5kw-super-its-residential-heat-pump/ ) to heat water for my house. The devices are managed via Wi-Fi with the SmartLife app. I have also added both devices to the Tuya IOT platform and can see and also manage the devices from there. The Tuya Cloud integration in Home Assistant shows the devices as: Heat Pump (unsupported) with no entities. If I add the devices via the Tuya local service, I only have the option to add as them as device type: