Hi everyone
I try to control O’WS Temperature Electric Towel Rack MJ120 aka ows.towel_w.mj1x0 via OH3, but with no luck
So, I know that Binding doesn’t support this device and I started to write my own json to miio folder (it worked for me with Mijia C1-80)
Found docs https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:towel-rack:0000A09A:ows-mj1x0:1
Converted part of it into json:
{
"deviceMapping": {
"id": [
"ows.towel_w.mj1x0"
],
"propertyMethod": "get_properties",
"maxProperties": 2,
"channels": [
{
"property": "manufacturer",
"siid": 1,
"piid": 1,
"friendlyName": "Device Information-Device Manufacturer",
"channel": "Manufacturer",
"channelType": "miot_string",
"type": "String",
"refresh": true,
"actions": []
},
{
"property": "model",
"siid": 1,
"piid": 2,
"friendlyName": "Device Information-Device Model",
"channel": "Model",
"channelType": "miot_string",
"type": "String",
"refresh": true,
"actions": []
},
{
"property": "serial-number",
"siid": 1,
"piid": 3,
"friendlyName": "Device Information-Device Serial Number",
"channel": "SerialNumber",
"channelType": "miot_string",
"type": "String",
"refresh": true,
"actions": []
},
{
"property": "firmware-revision",
"siid": 1,
"piid": 4,
"friendlyName": "Device Information-Current Firmware Version",
"channel": "FirmwareRevision",
"channelType": "miot_string",
"type": "String",
"refresh": true,
"actions": []
},
{
"property": "on",
"siid": 2,
"piid": 1,
"friendlyName": "Towel Rack",
"channel": "On",
"channelType": "miot_bool",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_power",
"parameterType": "ONOFFBOOL"
}
]
}
]
}
}
But still it doesn’t work for me
Device is online, token is okay
PS: I found this topic, but I don’t know how to use it within OH:
Please help me out