philipslight icon indicating copy to clipboard operation
philipslight copied to clipboard

Add lemesh.light.wy support

Open tkmark opened this issue 3 years ago • 5 comments

Device information:

  • Name(s) of the device: Xiaomi 3rd party (Dobest) WiFi LED driver / WiFi switch for MIIO

  • Link: their officical site on the Internet couldn't be found, only few product sales on the alibaba platform, and I believe they provide their products to many light manufactures.

  • Model: lemesh.light.wy / leshi.switch.v002

  • Hardware version: unknown / v002

  • Firmware version: 2.0.7_0006 / 2.0.7_0003

Please provide help on this, this means a lot to me. THANK YOU! I'll provide any other help and info if you need them.

Additional context

Following are my ha configuration:

light:

  • platform: xiaomi_miio name: "卧室灯" host: 10.0.2.91 token: 5742658a376c80d42c10f56fdd3e531e
  • platform: xiaomi_miio name: "餐厅灯" host: 10.0.2.95 token: 5fb96ef61cbd23060008248acb517de1
  • platform: xiaomi_miio name: "客厅灯" host: 10.0.2.99 token: a1a75076a58d3a0544438e989c14aa54 switch:
  • platform: xiaomi_miio name: "厨房灯" host: 10.0.2.97 token: 3c4abf6d1c6666cbb79d3cbefd0a9d19
  • platform: xiaomi_miio name: "卫生间灯" host: 10.0.2.96 token: 58520a09fdfbd990b949b93b4d41af0b

Here's my Mi Home app logs about these device:

btw: "设备在线“ means "device online"

","extra":{"isSetPincode":0,"fw_version":"2.0.6_0009","needVerifyCode":0,"isPasswordEncrypt":0},"uid":1225246927,"pd_id":1889,"password":"","p2p_id":"","rssi":-48,"family_id":0,"reset_flag":0},{"did":"293449149","token":"5742658a376c80d42c10f56fdd3e531e","longitude":"0.00000000","latitude":"0.00000000","name":"卧室灯","pid":"0","localip":"10.0.2.91","mac":"44:23:7C:E2:9B:73","ssid":"tkmarkall","bssid":"B0:7F:B9:A3:FC:A8","parent_id":"","parent_model":"","show_mode":1,"model":"lemesh.light.wy","adminFlag":1,"shareFlag":0,"permitLevel":16,"isOnline":true,"desc":"设备在线 ","extra":{"isSetPincode":0,"fw_version":"2.0.7_0006","needVerifyCode":0,"isPasswordEncrypt":0},"uid":1225246927,"pd_id":1322,"password":"","p2p_id":"","rssi":-57,"family_id":0,"reset_flag":0},{"did":"313842530","token":"5fb96ef61cbd23060008248acb517de1","longitude":"0.00000000","latitude":"0.00000000","name":"餐厅灯","pid":"0","localip":"10.0.2.95","mac":"5C:E5:0C:A2:9B:DD","ssid":"tkmarkall","bssid":"A0:04:60:41:B7:51","parent_id":"","parent_model":"","show_mode":1,"model":"lemesh.light.wy","adminFlag":1,"shareFlag":0,"permitLevel":16,"isOnline":true,"desc":"设备在线 ","extra":{"isSetPincode":0,"fw_version":"2.0.7_0006","needVerifyCode":0,"isPasswordEncrypt":0},"uid":1225246927,"pd_id":1322,"password":"","p2p_id":"","rssi":-67,"family_id":0,"reset_flag":0},{"did":"317385427","token":"3c4abf6d1c6666cbb79d3cbefd0a9d19","longitude":"0.00000000","latitude":"0.00000000","name":"厨房灯","pid":"0","localip":"10.0.2.97","mac":"5C:E5:0C:C8:AB:4E","ssid":"tkmarkall","bssid":"A0:04:60:41:B7:51","parent_id":"","parent_model":"","show_mode":1,"model":"leshi.switch.v002","adminFlag":1,"shareFlag":0,"permitLevel":16,"isOnline":true,"desc":"设备在线 ","extra":{"isSetPincode":0,"fw_version":"2.0.7_0003","needVerifyCode":0,"isPasswordEncrypt":0},"uid":1225246927,"pd_id":1581,"password":"","p2p_id":"","rssi":-63,"family_id":0,"reset_flag":0},{"did":"318856353","token":"58520a09fdfbd990b949b93b4d41af0b","longitude":"0.00000000","latitude":"0.00000000","name":"卫生间灯","pid":"0","localip":"10.0.2.96","mac":"5C:E5:0C:DF:1D:1C","ssid":"tkmarkall","bssid":"B0:7F:B9:A3:FC:A8","parent_id":"","parent_model":"","show_mode":1,"model":"leshi.switch.v002","adminFlag":1,"shareFlag":0,"permitLevel":16,"isOnline":true,"desc":"设备在线 ","extra":{"isSetPincode":0,"fw_version":"2.0.7_0003","needVerifyCode":0,"isPasswordEncrypt":0},"uid":1225246927,"pd_id":1581,"password":"","p2p_id":"","rssi":-71,"family_id":0,"reset_flag":0},{"did":"335809001","token":"a1a75076a58d3a0544438e989c14aa54","longitude":"113.23618600","latitude":"22.54364800","name":"客厅灯","pid":"0","localip":"10.0.2.99","mac":"64:90:C1:A6:8B:BC","ssid":"tkmarkall","bssid":"A0:04:60:41:B7:51","parent_id":"","parent_model":"","show_mode":1,"model":"lemesh.light.wy","adminFlag":1,"shareFlag":0,"permitLevel":16,"isOnline":true,"desc":"设备在线

tkmark avatar Aug 06 '20 20:08 tkmark

It's possible to turn the device on and off via python-miio / miiocli?

syssi avatar Aug 06 '20 20:08 syssi

Scene Color Light WIFI X (lemesh.light.wy)

syssi avatar Nov 08 '20 09:11 syssi

lemesh.light.wy specs: https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:light:0000A001:lemesh-wy:1

Service: siid 1: (Device Information): 4 props, 0 actions

  • Property piid: 1 (Device Manufacturer): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 2 (Device Model): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 3 (Device Serial Number): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 4 (Current Firmware Version): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)

Service: siid 2: (Light): 3 props, 0 actions

  • Property piid: 1 (Switch Status): (bool, unit: None) (acc: ['read', 'write', 'notify'], value-list: [], value-range: None)
  • Property piid: 2 (Brightness): (uint8, unit: percentage) (acc: ['read', 'write', 'notify'], value-list: [], value-range: [1, 100, 1])
  • Property piid: 3 (色温): (uint32, unit: kelvin) (acc: ['read', 'write', 'notify'], value-list: [], value-range: [3000, 6400, 1])

leshi.switch.v002 specs: https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:switch:0000A003:leshi-v002:1

Service: siid 1: (Device Information): 4 props, 0 actions

  • Property piid: 1 (Device Manufacturer): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 2 (Device Model): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 3 (Device Serial Number): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 4 (Current Firmware Version): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)

Service: siid 2: (Switch): 1 props, 0 actions

  • Property piid: 1 (Switch Status): (bool, unit: None) (acc: ['read', 'write', 'notify'], value-list: [], value-range: None)

Service: siid 3: (scenes): 2 props, 0 actions

  • Property piid: 1 (on-off): (uint8, unit: none) (acc: ['write'], value-list: [{'value': 1, 'description': '开/关'}], value-range: None)
  • Property piid: 2 (default): (uint8, unit: none) (acc: ['read', 'write', 'notify'], value-list: [{'value': 1, 'description': '开启'}, {'value': 2, 'description': '关闭'}, {'value': 3, 'description': '恢复断电前状态'}], value-range: None)

syssi avatar Nov 08 '20 09:11 syssi

lemesh.light.wy specs: https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:light:0000A001:lemesh-wy:1

Service: siid 1: (Device Information): 4 props, 0 actions

  • Property piid: 1 (Device Manufacturer): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 2 (Device Model): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 3 (Device Serial Number): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 4 (Current Firmware Version): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)

Service: siid 2: (Light): 3 props, 0 actions

  • Property piid: 1 (Switch Status): (bool, unit: None) (acc: ['read', 'write', 'notify'], value-list: [], value-range: None)
  • Property piid: 2 (Brightness): (uint8, unit: percentage) (acc: ['read', 'write', 'notify'], value-list: [], value-range: [1, 100, 1])
  • Property piid: 3 (色温): (uint32, unit: kelvin) (acc: ['read', 'write', 'notify'], value-list: [], value-range: [3000, 6400, 1])

leshi.switch.v002 specs: https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:switch:0000A003:leshi-v002:1

Service: siid 1: (Device Information): 4 props, 0 actions

  • Property piid: 1 (Device Manufacturer): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 2 (Device Model): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 3 (Device Serial Number): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)
  • Property piid: 4 (Current Firmware Version): (string, unit: None) (acc: ['read'], value-list: [], value-range: None)

Service: siid 2: (Switch): 1 props, 0 actions

  • Property piid: 1 (Switch Status): (bool, unit: None) (acc: ['read', 'write', 'notify'], value-list: [], value-range: None)

Service: siid 3: (scenes): 2 props, 0 actions

  • Property piid: 1 (on-off): (uint8, unit: none) (acc: ['write'], value-list: [{'value': 1, 'description': '开/关'}], value-range: None)
  • Property piid: 2 (default): (uint8, unit: none) (acc: ['read', 'write', 'notify'], value-list: [{'value': 1, 'description': '开启'}, {'value': 2, 'description': '关闭'}, {'value': 3, 'description': '恢复断电前状态'}], value-range: None)

Hi Syssi, How should I use this for my HA? or you are currently working on this?

tkmark avatar Nov 09 '20 04:11 tkmark

I'm just collecting infos about the device. I will ping you if I need support.

syssi avatar Nov 09 '20 07:11 syssi