tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
856 stars 206 forks source link

New driver for kogan smart heater #249

Open Nousfeed opened 2 years ago

Nousfeed commented 2 years ago

It would be awesome if there was support added for this heater. At the moment it only shows device info of its Name.

{
"active_time": 1626418876,
"biz_type": 0,
"category": "qn",
"create_time": 1626418801,
"icon": "smart/icon/1470624702_0.jpeg",
"id": "xxxxxxxxxxxxxxxx",
"ip": "xxx.xxx.xxx.xxx",
"lat": "-38.0946039",
"local_key": "xxxxxxxxxxxx",
"lon": "176.7055206",
"name": "Heater",
"online": true,
"owner_id": "45810719",
"product_id": "ynjanlglr4qa6dxf",
"product_name": "Panel heater",
"status": [
{
"code": "switch",
"value": true
},
{
"code": "temp_set",
"value": 19
},
{
"code": "temp_current",
"value": 18
}
],
"sub": false,
"time_zone": "+12:00",
"uid": "az1626418078888BYhWL",
"update_time": 1627204862,
"uuid": "0014083040f52015bc7b"
}
tsutsuku commented 2 years ago

@Nousfeed Check v1.5.0

Nousfeed commented 2 years ago

So now it shows up as a thermostat entity but I can't switch it on or off, if I change the state it only changes it in Home assistant.

Changing the temp does seem to change the temp on the heater. I would like to be able to schedule it so I need to be able to turn it off and on.

aetha commented 2 years ago

Hi, I’m also having trouble with my Kogan oil column heater.

{
"active_time": 1625719882,
"biz_type": 18,
"category": "qn",
"create_time": 1625718730,
"icon": "smart/icon/ay15253387844269Sg99/f74d178697992a9d5f41bc66c5915969.png",
"id": "bfeba0bbb91725a641utdj",
"ip": "***",
"lat": "***",
"local_key": "***",
"lon": "***",
"name": "Warmboi",
"online": true,
"owner_id": "33750025",
"product_id": "4k4tkkwofjh8nqji",
"product_name": "",
"status": [
{
"code": "switch",
"value": true
},
{
"code": "temp_set",
"value": 35
},
{
"code": "temp_current",
"value": 30
},
{
"code": "temp_unit_convert",
"value": "c"
},
{
"code": "temp_set_f",
"value": 95
},
{
"code": "temp_current_f",
"value": 86
}
],
"sub": false,
"time_zone": "+10:00",
"uid": "***",
"update_time": 1629585134,
"uuid": "8191d31dfcd7dada"
}

I can see and change the thermostat temperature, that’s working. But the entity state in HA is always off, even when the device is on. Neither climate.turn_on nor climate.turn_off service calls have any effect on the state displayed in HA, or on the actual device’s state. Inspecting the entity shows it has an empty list of hvac_modes.

hvac_modes: []
min_temp: 5
max_temp: 35
target_temp_step: 1
current_temperature: 30
temperature: 35
current_humidity: 0
friendly_name: Warmboi
icon: mdi:radiator
supported_features: 1

Edit: I might also note that this heater has 3 different power settings (1000W, 1400W, and 2400W), but this is also undetected and not yet supported by tuya_v2.