Closed MarkP63 closed 2 years ago
Apologies meant SmartLife App not Smart Things. Since posting I have added ID names Radiator 1 and Radiator 2. One comes up correct now at 16C the other still shows 160.. identical formatting for both ID entries?
Please post the result of the steps under "How to check whether the api this library uses can control your device". and your current configuration as set in homebridge/hoobs.
Without this it is hard for me to help you with regards to this specific issue.
{
"header":{
"code":"SUCCESS",
"payloadVersion":1
},
"payload":{
"devices":[
{
"data":{
"current_temperature":100,
"max_temper":300,
"min_temper":70,
"online":true,
"state":"true",
"temperature":115
},
"dev_type":"climate",
"ha_type":"climate",
"icon":"https://images.tuyaeu.com/smart/icon/ay1555980033059u7AZh/158650072820f486513da.png",
"id":"bfccb1533f215093479r8j",
"name":"Studio radiator 2"
},
{
"data":{
"current_temperature":105,
"max_temper":300,
"min_temper":70,
"online":true,
"state":"true",
"temperature":115
},
"dev_type":"climate",
"ha_type":"climate",
"icon":"https://images.tuyaeu.com/smart/icon/ay1555980033059u7AZh/158650072820f486513da.png",
"id":"bf3dfd860f9e226a26hyjs",
"name":"Studio radiator 1"
},
{
"data":{
},
"dev_type":"scene",
"ha_type":"scene",
"id":"tux3ygpFcE9O26D5",
"name":"Studio Rads 16.0°C"
},
{
"data":{
},
"dev_type":"scene",
"ha_type":"scene",
"id":"uLTVXDX8xN3JVEcK",
"name":"Studio Rads 11.5°C"
},
{
"data":{
},
"dev_type":"scene",
"ha_type":"scene",
"id":"qAPe3Es0GPY0lwO4",
"name":"Studio Rads 7.0°C"
},
{
"data":{
},
"dev_type":"scene",
"ha_type":"scene",
"id":"bi4KW2CEgDOHhr4v",
"name":"\"Hifi lamp\" Switch 1:Reverse Switch"
},
{
"data":{
},
"dev_type":"scene",
"ha_type":"scene",
"id":"5cq0yE6nZQEzIrXn",
"name":"All Switch OFF"
},
{
"data":{
},
"dev_type":"scene",
"ha_type":"scene",
"id":"ubXsu44CYqoVoFIg",
"name":"All Switch ON"
},
{
"data":{
},
"dev_type":"scene",
"ha_type":"scene",
"id":"yR741ubZvDA2wHpK",
"name":"All OFF"
},
{
"data":{
},
"dev_type":"scene",
"ha_type":"scene",
"id":"jka5EZLRWCRlEBC1",
"name":" All ON"
}
],
"scenes":[
]
}
}
Please can you tell from this file as per your instructions? tks
I'm facing the same issue but with a thermostat:
Getting credentials
Got credentials
{ 'access_token': '',
'expires_in': 864000,
'refresh_token': '',
'token_type': 'bearer'}
Getting devices
Got devices
{ 'header':
{'code': 'SUCCESS', 'payloadVersion': 1},
'payload': {
'devices': [
{
'data':
{
'current_temperature': 41,
'max_temper': 35,
'min_temper': 5,
'online': True,
'state': 'true',
'temperature': 40},
'dev_type': 'climate',
'ha_type': 'climate',
'icon': 'https://images.tuyaeu.com/smart/icon/15264583415nnlzwfs1qd2wqz6i937op3nmi_0.png',
'id': '***',
'name': 'Termostato Salón'}],
'scenes': []
}
}
!!! NOW REMOVE THIS FILE, SO YOUR CREDENTIALS (username, password) WON'T LEAK !!!
Are you using the config ui-x plugin?
If so (for the both of you), please add a new device config.
Set the correct id (or name, but preferably id), select the correct device type, and set temperature factor accordingly.
So in the case that your themostat is reporting 160 instead of 16, set it to 0.1
You can leave the other values empty or set them accordingly.
Thank you very much!!!
Now it works !!!!!!!!!!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
Steps To Reproduce
Plugin Version
Homebridge Config
Device Config
Additional Context