ayushsharma82 / homebridge-tuya-local

A Homebridge plugin to control Tuya devices locally.
MIT License
5 stars 5 forks source link

New Device: 7-in-1 TUYA WEATHER STATION #5

Open mrmaximas opened 5 months ago

mrmaximas commented 5 months ago

I have Bresser ClimateConnect Tuya 7-in-1 Weather Station (now without possible 3 additonal external sensors) OEM model https://cclel.com/product/c6085a-c3120a/ This device gives a lot of different weather data, most of which does not support by homekit. I am currently capturing data from this weather station using NodeRed, but I really want to display the temperature, humidity, pressure from the internal sensor as well as the temperature, humidity, luminance from the external sensor. Unfortunately the battery status is only in the form of high and low. Let's try to add this device? Device Schema (from tinytuya) is : { "name": "WEATHER STATION", "id": "bf2733df5541a3910xxx", "key": "xxxxxxxx", "mac": "50:8a:06:xx", "uuid": "80204488f4c45439", "sn": "10004192600DA4", "category": "qxj", "product_name": "Smart 7-in-1 weather station", "product_id": "8qk6p78udvbjwlof", "biz_type": 18, "model": "C6085A", "sub": false, "icon": "https://images.tuyaeu.com/smart/icon/ay1579068487168nkTcW/a4565b926831bdbdfca3dbd4c671ac22.png", "mapping": { "1": { "code": "temp_current", "type": "Integer", "values": { "unit": "\u00b0C", "min": -400, "max": 603, "scale": 1, "step": 1 } }, "2": { "code": "humidity_value", "type": "Integer", "values": { "unit": "%", "min": 0, "max": 103, "scale": 0, "step": 1 } }, "3": { "code": "battery_state", "type": "Enum", "values": { "range": [ "low", "high" ] } }, "9": { "code": "temp_unit_convert", "type": "Enum", "values": { "range": [ "c", "f" ] } }, "10": { "code": "windspeed_unit_convert", "type": "Enum", "values": { "range": [ "m_s", "km_h", "knots", "mph" ] } }, "11": { "code": "pressure_unit_convert", "type": "Enum", "values": { "range": [ "hpa", "inhg", "mmhg" ] } }, "12": { "code": "rain_unit_convert", "type": "Enum", "values": { "range": [ "mm", "inch" ] } }, "13": { "code": "bright_unit_convert", "type": "Enum", "values": { "range": [ "lux", "fc", "wm2" ] } }, "22": { "code": "fault_type", "type": "Enum", "values": { "range": [ "normal", "ch1_offline", "ch2_offline", "ch3_offline", "offline" ] } }, "30": { "code": "battery_status", "type": "Enum", "values": { "range": [ "low", "high" ] } }, "31": { "code": "battery_state_1", "type": "Enum", "values": { "range": [ "low", "high" ] } }, "32": { "code": "battery_state_2", "type": "Enum", "values": { "range": [ "low", "high" ] } }, "33": { "code": "battery_state_3", "type": "Enum", "values": { "range": [ "low", "high" ] } }, "38": { "code": "temp_current_external", "type": "Integer", "values": { "unit": "\u00b0C", "min": -400, "max": 600, "scale": 1, "step": 1 } }, "39": { "code": "humidity_outdoor", "type": "Integer", "values": { "unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1 } }, "40": { "code": "temp_current_external_1", "type": "Integer", "values": { "unit": "\u00b0C", "min": -400, "max": 600, "scale": 1, "step": 1 } }, "41": { "code": "humidity_outdoor_1", "type": "Integer", "values": { "unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1 } }, "42": { "code": "temp_current_external_2", "type": "Integer", "values": { "unit": "\u00b0C", "min": -400, "max": 600, "scale": 1, "step": 1 } }, "43": { "code": "humidity_outdoor_2", "type": "Integer", "values": { "unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1 } }, "44": { "code": "temp_current_external_3", "type": "Integer", "values": { "unit": "\u00b0C", "min": -400, "max": 600, "scale": 1, "step": 1 } }, "45": { "code": "humidity_outdoor_3", "type": "Integer", "values": { "unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1 } }, "54": { "code": "atmospheric_pressture", "type": "Integer", "values": { "unit": "hPa", "min": 3000, "max": 12003, "scale": 1, "step": 1 } }, "55": { "code": "pressure_drop", "type": "Integer", "values": { "unit": "hPa", "min": 0, "max": 15, "scale": 0, "step": 1 } }, "56": { "code": "windspeed_avg", "type": "Integer", "values": { "unit": "m/s", "min": 0, "max": 700, "scale": 1, "step": 1 } }, "57": { "code": "windspeed_gust", "type": "Integer", "values": { "unit": "m/s", "min": 0, "max": 700, "scale": 1, "step": 1 } }, "58": { "code": "wind_direct", "type": "Enum", "values": { "range": [ "none", "north", "north_north_east", "north_east", "east_north_east", "east", "east_south_east", "south_east", "south_south_east", "south", "south_south_west", "south_west", "west_south_west", "west", "west_north_west", "north_west", "north_north_west" ] } }, "60": { "code": "rain_24h", "type": "Integer", "values": { "unit": "mm", "min": 0, "max": 1000000, "scale": 3, "step": 1 } }, "61": { "code": "rain_rate", "type": "Integer", "values": { "unit": "mm", "min": 0, "max": 999999, "scale": 3, "step": 1 } }, "62": { "code": "uv_index", "type": "Integer", "values": { "unit": "", "min": 0, "max": 180, "scale": 1, "step": 1 } }, "63": { "code": "bright_value", "type": "Integer", "values": { "unit": "lux", "min": 0, "max": 238000, "scale": 0, "step": 100 } }, "64": { "code": "dew_point_temp", "type": "Integer", "values": { "unit": "\u00b0C", "min": -400, "max": 800, "scale": 1, "step": 1 } }, "65": { "code": "feellike_temp", "type": "Integer", "values": { "unit": "\u00b0C", "min": -650, "max": 500, "scale": 1, "step": 1 } }, "66": { "code": "heat_index", "type": "Integer", "values": { "unit": "\u00b0C", "min": 260, "max": 500, "scale": 1, "step": 1 } }, "67": { "code": "windchill_index", "type": "Integer", "values": { "unit": "\u00b0C", "min": -650, "max": 600, "scale": 1, "step": 1 } }, "68": { "code": "com_index", "type": "Enum", "values": { "range": [ "none", "moist", "dry", "comfortable" ] } }, "101": { "code": "wind_dir360", "type": "Integer", "values": { "unit": "", "min": 0, "max": 361, "scale": 0, "step": 1 } }, "102": { "code": "all_max_min", "type": "Raw", "values": {} }, "103": { "code": "CH_type", "type": "Raw", "values": {} } }, "ip": "", "version": "" },

Current DP request/answer via tuya-cli get results is: { '1': 60, '2': 42, '3': 'high', '9': 'c', '10': 'm_s', '11': 'hpa', '12': 'mm', '13': 'lux', '30': 'high', '38': -56, '39': 92, '54': 10169, '55': 0, '56': 13, '57': 13, '58': 'south_west', '60': 0, '61': 0, '62': 0, '63': 2904, '64': -65, '65': -56, '67': -56, '68': 'moist', '101': 216 }

The DPs we're interested is: '1': 60, < internal temperature (must be divided by 10) '2': 42, < internal humidity '3': 'high', < internal battery state '30': 'high', < external battery state '38': -56, < external temperature (must be divided by 10) '39': 92, < external humidity '54': 10169, < pressure (must be divided by 10) '63': 2904, < external luminance '64': -65, < external dew point temperature (must be divided by 10)

Thanks!

pepegragera commented 6 days ago

Hello, has anyone been able to make this station work as a homekit?

mrmaximas commented 3 days ago

Hello, has anyone been able to make this station work as a homekit?

https://github.com/0x5e/homebridge-tuya-platform/issues/388