athombv / com.tuya

Tuya app for Homey
https://homey.app/a/com.tuya
15 stars 11 forks source link

[Device Request]: johgee tuya BLE smart water timer+ wifi hub #49

Closed jampeef closed 15 hours ago

jampeef commented 1 month ago

Not sure if the hub is even needed to be added, thers alot of different versions of this watermeter with different brands.

https://www.amazon.se/-/en/Watering-Computer-Irrigation-Bluetooth-Automatic/dp/B09XMKHBNP

2024-07-18T07:40:50.398Z [log] [ManagerDrivers] [Driver:other] Device: {"active_time":1627040373,"biz_type":0,"category":"sfkzq","create_time":1627040373,"icon":"smart/icon/ay1501578980436KOuNc/f922fa59436bd4ac23527b9a062b4365.png","id":"","ip":"","lat":"63.8799","local_key":"","lon":"20.3106","model":"SOP10","name":"Smart Water Timer","node_id":"d29f1a7905abd23e","online":true,"owner_id":"","product_id":"","product_name":"Smart Water Timer","status":[{"code":"switch","value":false},{"code":"battery_percentage","value":68},{"code":"time_use","value":358440},{"code":"weather_delay","value":"cancel"},{"code":"countdown","value":644},{"code":"work_state","value":"idle"},{"code":"smart_weather","value":"sunny"},{"code":"use_time_one","value":1159}],"sub":true,"time_zone":"+02:00","uid":"","update_time":1721251545,"uuid":""}

Johgee wifi hub 2024-07-18T07:40:50.399Z [log] [ManagerDrivers] [Driver:other] Device: {"active_time":1627040361,"biz_type":0,"category":"cz","create_time":1627040361,"icon":"smart/icon/ay1501578980436KOuNc/72467579727a7ddbf62d15a82db5de28.png","id":"","ip":"","lat":"63.8799","local_key":"","lon":"20.3106","model":"WG01","name":"Wi-Fi hub","online":true,"owner_id":"","product_id":"","product_name":"Wi-Fi hub","sub":true,"time_zone":"+02:00","uid":"","update_time":1721251545,"uuid":""}

bobvandevijver commented 1 month ago

We're missing some information, which can be retrieved from the advanced settings with the latest app version: you might need to re-add the device to be able to see the information. Can you please see if you can retrieve those details? The new issue template provides a short how to.

You do not need to do this for the hub: that doesn't need to be added.

jampeef commented 1 month ago
{
  "device": {
    "active_time": 1627040373,
    "biz_type": 0,
    "category": "sfkzq",
    "create_time": 1627040373,
    "icon": "smart/icon/ay1501578980436KOuNc/f922fa59436bd4ac23527b9a062b4365.png",
    "id": "bf07a3cmvzmg88d9",
    "ip": "<redacted>",
    "lat": "<redacted>",
    "local_key": "<redacted>",
    "lon": "<redacted>",
    "model": "SOP10",
    "name": "Smart Water Timer",
    "node_id": "d29f1a7905abd23e",
    "online": true,
    "owner_id": "<redacted>",
    "product_id": "nxquc5lb",
    "product_name": "Smart Water Timer",
    "status": [
      {
        "code": "switch",
        "value": false
      },
      {
        "code": "battery_percentage",
        "value": 68
      },
      {
        "code": "time_use",
        "value": 358440
      },
      {
        "code": "weather_delay",
        "value": "cancel"
      },
      {
        "code": "countdown",
        "value": 644
      },
      {
        "code": "work_state",
        "value": "idle"
      },
      {
        "code": "smart_weather",
        "value": "sunny"
      },
      {
        "code": "use_time_one",
        "value": 1159
      }
    ],
    "sub": true,
    "time_zone": "+02:00",
    "uid": "<redacted>",
    "update_time": 1722435692,
    "uuid": "<redacted>"
  },
  "specifications": {
    "category": "sfkzq",
    "functions": [
      {
        "code": "switch",
        "desc": "{}",
        "name": "阀门开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "time_use",
        "desc": "{\"unit\":\"s\",\"min\":0,\"max\":2592000,\"scale\":0,\"step\":1}",
        "name": "灌溉时间",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":2592000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "weather_delay",
        "desc": "{\"range\":[\"cancel\",\"24h\",\"48h\",\"72h\"]}",
        "name": "天气延时",
        "type": "Enum",
        "values": "{\"range\":[\"cancel\",\"24h\",\"48h\",\"72h\"]}"
      },
      {
        "code": "countdown",
        "desc": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}",
        "name": "倒计时",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "smart_weather",
        "desc": "{\"range\":[\"sunny\",\"cloudy\",\"rainy\"]}",
        "name": "智能天气类型",
        "type": "Enum",
        "values": "{\"range\":[\"sunny\",\"cloudy\",\"rainy\"]}"
      }
    ],
    "status": [
      {
        "code": "switch",
        "name": "阀门开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "battery_percentage",
        "name": "电池电量",
        "type": "Integer",
        "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}"
      },
      {
        "code": "time_use",
        "name": "灌溉时间",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":2592000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "weather_delay",
        "name": "天气延时",
        "type": "Enum",
        "values": "{\"range\":[\"cancel\",\"24h\",\"48h\",\"72h\"]}"
      },
      {
        "code": "countdown",
        "name": "倒计时",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "work_state",
        "name": "工作状态",
        "type": "Enum",
        "values": "{\"range\":[\"auto\",\"manual\",\"idle\"]}"
      },
      {
        "code": "smart_weather",
        "name": "智能天气类型",
        "type": "Enum",
        "values": "{\"range\":[\"sunny\",\"cloudy\",\"rainy\"]}"
      },
      {
        "code": "use_time_one",
        "name": "单次使用时间",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      }
    ]
  }
}