New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Driver - Kogan Smart Heater #476
Comments
As per the other thread, remove the id from the samples you gave above. This one looks like it should already be supported and allow you to turn it on/off and set the temperature, as well as report if its on/off, what the temperature is and what it is set to be. |
Thanks mate
As per the screenshot below. While it does pick up that it’s there, there is no options under operation to turn it on/off in Lovelace
[cid:C3ADA90B-81FC-4D44-AD42-EF50831A68EB-L0-001]
…Sent from my iPhone
On 18 Sep 2021, at 1:02 pm, some-guy-in-oz ***@***.***> wrote:
As per the other thread, remove the id from the samples you gave above. This one looks like it should already be supported and allow you to turn it on/off and set the temperature, as well as report if its on/off, what the temperature is and what it is set to be.
According to this page
https://github.com/tuya/tuya-home-assistant/wiki/Supported-Device-Category?_source=f5f782752be3c4a9157ec47514d6091b support for that category of device was added in version 1.1 of the integration.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#476 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASPA4O3QJZO43UHH3PGMGETUCP6L5ANCNFSM5EIOLJFA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I dont see that screenshot... Have you customised your lovelace interface at all? I usually have a "default" one that I let HA manage and it puts everything on it... The heater should be under a "Switch" section if you haven't assigned it to a room like this example that shows a holman WX8 irrigation system |
@some-guy-in-oz the value changes no issue |
Hmm it should be the turn on/turn off commands - when you choose them are you able to select any devices or entities? |
So the on/off commands do nothing.
setting to auto turns it on but then none of the commands will turn it off (putting the temp down just does turns the temp down but not off)
from the looks of it several others are having the same bug as well with different branded panel heaters
From: some-guy-in-oz ***@***.***>
Sent: Sunday, 19 September 2021 9:11 AM
To: tuya/tuya-home-assistant ***@***.***>
Cc: rodgrech ***@***.***>; Author ***@***.***>
Subject: Re: [tuya/tuya-home-assistant] New Driver - Kogan Smart Heater (#476)
Hmm it should be the turn on/turn off commands - when you choose them are you able to select any devices or entities?
Is the heater already running in some sort of "auto" mode? If so then just adjusting the temperature should turn it on/off.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#476 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASPA4OZW4OLTRXBBAVXZF3DUCUMBDANCNFSM5EIOLJFA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
OK looking at the code I see it's expecting to find some "modes" that the heater supports and the API isn't sending any modes. I imagine that if there are no modes supported but the "switch" is supported it should just offer an "off" and "auto" option. I can patch the file for you test, but how are you running Home Assistant and are you comfortable replacing files to test it out? |
Yeah mate, comfortable in testing this for you
im running home assistant supervised in a vm
From: some-guy-in-oz ***@***.***>
Sent: Sunday, 19 September 2021 4:29 PM
To: tuya/tuya-home-assistant ***@***.***>
Cc: rodgrech ***@***.***>; Author ***@***.***>
Subject: Re: [tuya/tuya-home-assistant] New Driver - Kogan Smart Heater (#476)
OK looking at the code I see it's expecting to find some "modes" that the heater supports and the API isn't sending any modes. I imagine that if there are no modes supported but the "swsitch" is supported it should just offer an "off" and "auto" option. I can patch the file for you test, but how are you running Home Assistant and are you comfortable replacing files to test it out?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#476 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASPA4O3VOVI3G3IDGK5RTWTUCV7LFANCNFSM5EIOLJFA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
OK.. unzip and replace this file in your install. If you installed tuya v2 via hacs it'll be in the hacs subfolder somewhere, otherwise it'll be in the home assistant components subfolder. |
You might also like to try using the "HEAT" icon instead... If the above works, edit lines 364 & 372 replacing HVAC_MODE_AUTO with HVAC_MODE_HEAT |
Hey! That fixed the issue
changed the lines of code to HVAC_MODE_HEAT and that is much better :D
|
climate.zip ive rebooted HA a few times to make sure theres no oddities and it seems solid @some-guy-in-oz |
OK. The tuya devs won't accept it hard coded to heat as the climate entity also controls humidity and a/cs. I'm just trying out some changes that sets it to heat only if its a heater. Once I've finished testing I'll post here for you to try it out and if that works I'll submit the patch to the tuya devs so it can make its way to mainstream. |
you're a legend mate. shoot it through and ill test for ya |
Can you try out the enclosed file, make sure it allows turning on and off and temperature adjustment. |
Did it show on using the first file I posted or has it never shown as on (the icon should change colour to show when it's on too). What happens if you turn the device on and then restart home assistant? Does it show on then? |
Well not sure what is going on. Maybe an issue in tuya s end but I am able to use it correctly this evening using the 2nd lot of your files
…Sent from my iPhone
On 20 Sep 2021, at 10:36 am, some-guy-in-oz ***@***.***> wrote:
Did it show on using the first file I posted or has it never shown as on (the icon should change colour to show when it's on too). What happens if you turn the device on and then restart home assistant? Does it show on then?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#476 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASPA4O6DZTYVOBZ44SCRYGDUCZ6YXANCNFSM5EIOLJFA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Do the "target temperature" reading change if you adjust them via the tuya app or on the device itself? |
Yes it does
…Sent from my iPhone
On 20 Sep 2021, at 7:50 pm, some-guy-in-oz ***@***.***> wrote:
Do the "target temperature" reading change if you adjust them via the tuya app or on the device itself?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#476 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASPA4O7TEOS7L6PMPPS4USLUC37VHANCNFSM5EIOLJFA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
They change in home assistant too? Does the first set of files I uploaded work with switching it on/off? |
Yep, if I change it in the tuya app or on the device it works as expected now
And yes, it worked in the first set of files to.
I think when I was playing around with it in the morning there might of been an outage or something *shrug*
…Sent from my iPhone
On 20 Sep 2021, at 8:49 pm, some-guy-in-oz ***@***.***> wrote:
They change in home assistant too? Does the first set of files I uploaded work with switching it on/off?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#476 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASPA4O5O4HN7F6WIYCDW4UTUC4GU7ANCNFSM5EIOLJFA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
OK so everything appears to be working now with that latest set of files too? |
That’s correct. All working normally now as it did with the first set of files
…Sent from my iPhone
On 21 Sep 2021, at 7:48 am, some-guy-in-oz ***@***.***> wrote:
OK so everything appears to be working now with that latest set of files too?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#476 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASPA4OZCLINJLZ2CUMO3MG3UC6T3FANCNFSM5EIOLJFA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Cool. I'll submit the patch. Thanks for testing |
@some-guy-in-oz i have not had time to digest this thread fully but seems you may be able to assist us with a similar issue in #28 |
reopening issue as this nolonger works under the new version of Tuya V2 |
could you take a look here, we all can't seem to fix this heater issue. regards |
I still haven't had time to look any further at this, and since they've refactored 1.6 which probably changed a lot of stuff I can't comment until I've looked at the code. |
ok, i did make a fix, but apperantly it breaks other heaters from other people... regards |
Seems like a Kogan thing, my panel heater has the some problem. |
This has been fixed in Home Assistant Core integration and is released with the upcoming Home Assistant Core 2021.11. |
while this shows up in HA now, i have no control over its state
Device normal info
Kogan
Kogan Panel Heater - KAWFHTP15BA / KAHTP15WALA
{
"active_time": 1627895893,
"biz_type": 0,
"category": "qn",
"create_time": 1627895893,
"icon": "smart/icon/1470624702_0.jpeg",
"id": “xxxx ",
"ip": "",
"lat": "",
"local_key": "",
"lon": "",
"name": "Bedroom heater",
"online": true,
"owner_id": "23484236",
"product_id": "ynjanlglr4qa6dxf",
"product_name": "Panel heater",
"status": [
{
"code": "switch",
"value": false
},
{
"code": "temp_set",
"value": 25
},
{
"code": "temp_current",
"value": 19
}
],
"sub": false,
"time_zone": "+10:00",
"uid": "***",
"update_time": 1631720829,
"uuid": "0014083010521c49f20a"
},
},
Device specifications
2021-09-18 08:26:33 DEBUG (SyncWorker_6) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/xxxxx/specifications, params = None, body = None, t = 1631917593164
2021-09-18 08:26:33 DEBUG (Thread-25) [tuya iot] _on_log: Received PUBLISH (d0, q0, r0, m0), 'cloud/token/in/ebc1d658bf210987387c9f4d12782ce2', ... (284 bytes)
2021-09-18 08:26:33 DEBUG (Thread-25) [tuya iot] payload-> b'{"data":"JFYot1AkACi8/Ur2AvTCi3qltBYwgPLSJE1YUp2CUYLVDfkFVEIu0HrN+DDEC/uA30I2NnsvKp0PqavUK5p6+2QiO6QlCEtkkzxqFzKYNWxMrTh7bOcdtlB60wzimmmtVhPwPLhtAwgQaCu5WeOT9m6lumAfCbOsThm8glBZvTgjlDYEccpKuYPzJEOBdMLP","protocol":4,"pv":"2.0","sign":"60e1f36e5c5c57e0246d96ace8e56e37","t":1631917592}'
2021-09-18 08:26:33 DEBUG (Thread-25) [tuya iot] on_message: {'data': {'dataId': 'c8013806-594e-4521-ba79-685fc9d3270a', 'devId': '7312002040f5201c02cc', 'productKey': 'GXoLAzy1gQUbckKe', 'status': [{'5': 53}]}, 'protocol': 4, 'pv': '2.0', 'sign': '60e1f36e5c5c57e0246d96ace8e56e37', 't': 1631917592}
2021-09-18 08:26:33 DEBUG (Thread-25) [tuya iot] mq receive-> {'data': {'dataId': 'c8013806-594e-4521-ba79-685fc9d3270a', 'devId': '7312002040f5201c02cc', 'productKey': 'GXoLAzy1gQUbckKe', 'status': [{'5': 53}]}, 'protocol': 4, 'pv': '2.0', 'sign': '60e1f36e5c5c57e0246d96ace8e56e37', 't': 1631917592}
2021-09-18 08:26:33 DEBUG (Thread-25) [tuya iot] mq _on_device_report-> [{'5': 53}]
2021-09-18 08:26:33 DEBUG (SyncWorker_6) [tuya iot] Response: {
"result": {
"category": "qn",
"functions": [
{
"code": "switch",
"type": "Boolean",
"values": "{}"
},
{
"code": "temp_set",
"type": "Integer",
"values": "{"unit":"℃","min":5,"max":40,"scale":0,"step":1}"
}
],
"status": [
{
"code": "switch",
"type": "Boolean",
"values": "{}"
},
{
"code": "temp_set",
"type": "Integer",
"values": "{"unit":"℃","min":5,"max":40,"scale":0,"step":1}"
},
{
"code": "temp_current",
"type": "Integer",
"values": "{"unit":"℃","min":0,"max":100,"scale":0,"step":1}"
}
]
},
"success": true,
"t": 163191759334
The text was updated successfully, but these errors were encountered: