Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Miio] support for yeelink.light.fancl2 #18227

Open
Simsal opened this issue Feb 4, 2025 · 0 comments
Open

[Miio] support for yeelink.light.fancl2 #18227

Simsal opened this issue Feb 4, 2025 · 0 comments
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@Simsal
Copy link

Simsal commented Feb 4, 2025

Info for yeelink.light.fancl2
Database file created:/etc/openhab/misc/miio/yeelink.light.fancl2-miot-experimental.json
{
	"deviceMapping": {
		"id": [
			"yeelink.light.fancl2"
		],
		"propertyMethod": "get_properties",
		"maxProperties": 1,
		"channels": [
			{
				"property": "",
				"friendlyName": "Actions",
				"channel": "actions",
				"type": "String",
				"stateDescription": {
					"options": [
						{
							"value": "light-toggle",
							"label": "Light Toggle"
						},
						{
							"value": "fan-toggle",
							"label": "Fan Toggle"
						},
						{
							"value": "yl-light-brightness-cycle",
							"label": "Yl Light Brightness Cycle"
						},
						{
							"value": "yl-light-ct-cycle",
							"label": "Yl Light Ct Cycle"
						},
						{
							"value": "yl-light-fan-gears-cycle",
							"label": "Yl Light Fan Gears Cycle"
						},
						{
							"value": "yl-light-birghtness-increase",
							"label": "Yl Light Birghtness Increase"
						},
						{
							"value": "yl-light-brightness-decrease",
							"label": "Yl Light Brightness Decrease"
						},
						{
							"value": "yl-light-ct-increase",
							"label": "Yl Light Ct Increase"
						},
						{
							"value": "yl-light-ct-decrease",
							"label": "Yl Light Ct Decrease"
						},
						{
							"value": "yl-light-on-or-bright-cycle",
							"label": "Yl Light On Or Bright Cycle"
						},
						{
							"value": "yl-light-on-or-ct-cycle",
							"label": "Yl Light On Or Ct Cycle"
						},
						{
							"value": "yl-fan-fan-gears-cycle",
							"label": "Yl Fan Fan Gears Cycle"
						}
					]
				},
				"refresh": false,
				"actions": [
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 2,
						"aiid": 1,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "light-toggle"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 3,
						"aiid": 1,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "fan-toggle"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 4,
						"aiid": 2,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "yl-light-brightness-cycle"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 4,
						"aiid": 3,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "yl-light-ct-cycle"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 4,
						"aiid": 4,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "yl-light-fan-gears-cycle"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 4,
						"aiid": 5,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "yl-light-birghtness-increase"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 4,
						"aiid": 6,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "yl-light-brightness-decrease"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 4,
						"aiid": 7,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "yl-light-ct-increase"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 4,
						"aiid": 8,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "yl-light-ct-decrease"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 4,
						"aiid": 9,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "yl-light-on-or-bright-cycle"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 4,
						"aiid": 10,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "yl-light-on-or-ct-cycle"
								}
							]
						}
					},
					{
						"command": "action",
						"parameterType": "EMPTY",
						"siid": 5,
						"aiid": 1,
						"condition": {
							"name": "matchValue",
							"parameters": [
								{
									"matchValue": "yl-fan-fan-gears-cycle"
								}
							]
						}
					}
				]
			},
			{
				"property": "on",
				"siid": 2,
				"piid": 1,
				"friendlyName": "Light - Switch Status",
				"channel": "on",
				"type": "Switch",
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "ONOFFBOOL"
					}
				]
			},
			{
				"property": "mode",
				"siid": 2,
				"piid": 2,
				"friendlyName": "Light - Mode",
				"channel": "mode",
				"type": "Number",
				"stateDescription": {
					"options": [
						{
							"value": "0",
							"label": "Day"
						},
						{
							"value": "1",
							"label": "Night"
						}
					]
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "NUMBER"
					}
				],
				"readmeComment": "Value mapping [\"0\"\u003d\"Day\",\"1\"\u003d\"Night\"]"
			},
			{
				"property": "brightness",
				"siid": 2,
				"piid": 3,
				"friendlyName": "Light - Brightness",
				"channel": "brightness",
				"type": "Number:Dimensionless",
				"unit": "percentage",
				"stateDescription": {
					"minimum": 1,
					"maximum": 100,
					"step": 1,
					"pattern": "%.0f %unit%"
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "NUMBER"
					}
				]
			},
			{
				"property": "color-temperature",
				"siid": 2,
				"piid": 5,
				"friendlyName": "Light - Color Temperature",
				"channel": "color_temperature",
				"type": "Number:Temperature",
				"unit": "kelvin",
				"stateDescription": {
					"minimum": 2700,
					"maximum": 6500,
					"step": 1,
					"pattern": "%.0f %unit%"
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "STRING"
					}
				]
			},
			{
				"property": "flow",
				"siid": 2,
				"piid": 6,
				"friendlyName": "Light - Flow",
				"channel": "flow",
				"type": "Number",
				"stateDescription": {
					"options": [
						{
							"value": "0",
							"label": "Auto"
						}
					]
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "NUMBER"
					}
				],
				"readmeComment": "Value mapping [\"0\"\u003d\"Auto\"]"
			},
			{
				"property": "off-delay-time",
				"siid": 2,
				"piid": 7,
				"friendlyName": "Light - Power Off Delay Time",
				"channel": "off_delay_time",
				"type": "Number:Time",
				"unit": "minutes",
				"stateDescription": {
					"minimum": 0,
					"maximum": 180,
					"step": 1,
					"pattern": "%.0f %unit%"
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "STRING"
					}
				]
			},
			{
				"property": "left-time",
				"siid": 2,
				"piid": 8,
				"friendlyName": "Light - Left Time",
				"channel": "left_time",
				"type": "Number:Time",
				"unit": "minutes",
				"stateDescription": {
					"minimum": 0,
					"maximum": 180,
					"step": 1,
					"pattern": "%.0f %unit%",
					"readOnly": true
				},
				"refresh": true,
				"actions": []
			},
			{
				"property": "on1",
				"siid": 3,
				"piid": 1,
				"friendlyName": "Fan - Switch Status",
				"channel": "on1",
				"type": "Switch",
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "ONOFFBOOL"
					}
				]
			},
			{
				"property": "fan-level",
				"siid": 3,
				"piid": 2,
				"friendlyName": "Fan - Fan Level",
				"channel": "fan_level",
				"type": "Number",
				"stateDescription": {
					"options": [
						{
							"value": "0",
							"label": "Level1"
						},
						{
							"value": "1",
							"label": "Level2"
						},
						{
							"value": "2",
							"label": "Level3"
						},
						{
							"value": "3",
							"label": "Level4"
						}
					]
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "NUMBER"
					}
				],
				"readmeComment": "Value mapping [\"0\"\u003d\"Level1\",\"1\"\u003d\"Level2\",\"2\"\u003d\"Level3\",\"3\"\u003d\"Level4\"]"
			},
			{
				"property": "mode1",
				"siid": 3,
				"piid": 7,
				"friendlyName": "Fan - Mode",
				"channel": "mode1",
				"type": "Number",
				"stateDescription": {
					"options": [
						{
							"value": "0",
							"label": "Normal-wind"
						},
						{
							"value": "1",
							"label": "Natural-wind"
						},
						{
							"value": "2",
							"label": "Reverse-wind"
						},
						{
							"value": "3",
							"label": "Strong-wind"
						},
						{
							"value": "4",
							"label": "Small-wind"
						},
						{
							"value": "5",
							"label": "Sleep-wind"
						}
					]
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "NUMBER"
					}
				],
				"readmeComment": "Value mapping [\"0\"\u003d\"Normal-wind\",\"1\"\u003d\"Natural-wind\",\"2\"\u003d\"Reverse-wind\",\"3\"\u003d\"Strong-wind\",\"4\"\u003d\"Small-wind\",\"5\"\u003d\"Sleep-wind\"]"
			},
			{
				"property": "status",
				"siid": 3,
				"piid": 8,
				"friendlyName": "Fan - Status",
				"channel": "status",
				"type": "Number",
				"stateDescription": {
					"readOnly": true,
					"options": [
						{
							"value": "0",
							"label": "Idle"
						},
						{
							"value": "1",
							"label": "Busy"
						}
					]
				},
				"refresh": true,
				"actions": [],
				"readmeComment": "Value mapping [\"0\"\u003d\"Idle\",\"1\"\u003d\"Busy\"]"
			},
			{
				"property": "fault",
				"siid": 3,
				"piid": 9,
				"friendlyName": "Fan - Device Fault",
				"channel": "fault",
				"type": "Number",
				"stateDescription": {
					"readOnly": true,
					"options": [
						{
							"value": "0",
							"label": "No faults"
						}
					]
				},
				"refresh": true,
				"actions": [],
				"readmeComment": "Value mapping [\"0\"\u003d\"No faults\"]"
			},
			{
				"property": "off-delay-time1",
				"siid": 3,
				"piid": 11,
				"friendlyName": "Fan - Power Off Delay Time",
				"channel": "off_delay_time1",
				"type": "Number:Time",
				"unit": "minutes",
				"stateDescription": {
					"minimum": 0,
					"maximum": 720,
					"step": 1,
					"pattern": "%.0f %unit%"
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "STRING"
					}
				]
			},
			{
				"property": "left-time1",
				"siid": 3,
				"piid": 12,
				"friendlyName": "Fan - Left Time",
				"channel": "left_time1",
				"type": "Number:Time",
				"unit": "minutes",
				"stateDescription": {
					"minimum": 0,
					"maximum": 720,
					"step": 1,
					"pattern": "%.0f %unit%",
					"readOnly": true
				},
				"refresh": true,
				"actions": []
			},
			{
				"property": "init-power-opt",
				"siid": 4,
				"piid": 1,
				"friendlyName": "Yl Light - Init Power Opt",
				"channel": "init_power_opt",
				"type": "Number",
				"stateDescription": {
					"options": [
						{
							"value": "1",
							"label": ""
						},
						{
							"value": "2",
							"label": ""
						}
					]
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "NUMBER"
					}
				],
				"readmeComment": "Value mapping [\"1\"\u003d\"\",\"2\"\u003d\"\"]"
			},
			{
				"property": "night-time",
				"siid": 4,
				"piid": 2,
				"friendlyName": "Yl Light - Night Time",
				"channel": "night_time",
				"type": "Number",
				"stateDescription": {
					"minimum": 0,
					"maximum": -1,
					"step": 1,
					"pattern": "%.0f"
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "STRING"
					}
				]
			},
			{
				"property": "smart-switch-en",
				"siid": 4,
				"piid": 4,
				"friendlyName": "Yl Light - Smart Switch En",
				"channel": "smart_switch_en",
				"type": "Switch",
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "ONOFFBOOL"
					}
				]
			},
			{
				"property": "miband-sleep-ctrl",
				"siid": 4,
				"piid": 5,
				"friendlyName": "Yl Light - Miband Sleep Ctrl",
				"channel": "miband_sleep_ctrl",
				"type": "Number",
				"stateDescription": {
					"options": [
						{
							"value": "0",
							"label": "Trun Off MiBand Ctrl"
						},
						{
							"value": "1",
							"label": "Trun Off Light By MiBand When Sleep"
						},
						{
							"value": "2",
							"label": "Trun Off Fan By MiBand When Sleep"
						},
						{
							"value": "3",
							"label": "Trun Off Light And Fan By MiBand When Sleep"
						},
						{
							"value": "4",
							"label": "Turn On Sleep-Wind Mode When Sleep"
						},
						{
							"value": "5",
							"label": "Trun Off Light And Turn On Sleep-Wind Mode When Sleep"
						}
					]
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "NUMBER"
					}
				],
				"readmeComment": "Value mapping [\"0\"\u003d\"Trun Off MiBand Ctrl\",\"1\"\u003d\"Trun Off Light By MiBand When Sleep\",\"2\"\u003d\"Trun Off Fan By MiBand When Sleep\",\"3\"\u003d\"Trun Off Light And Fan By MiBand When Sleep\",\"4\"\u003d\"Turn On Sleep-Wind Mode When Sleep\",\"5\"\u003d\"Trun Off Light And Turn On Sleep-Wind Mode When Sleep\"]"
			},
			{
				"property": "fan-init-power-opt",
				"siid": 5,
				"piid": 1,
				"friendlyName": "Yl Fan - Fan Init Power Opt",
				"channel": "fan_init_power_opt",
				"type": "Number",
				"stateDescription": {
					"options": [
						{
							"value": "0",
							"label": ""
						},
						{
							"value": "1",
							"label": ""
						}
					]
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "NUMBER"
					}
				],
				"readmeComment": "Value mapping [\"0\"\u003d\"\",\"1\"\u003d\"\"]"
			},
			{
				"property": "fanlevel-combine",
				"siid": 5,
				"piid": 2,
				"friendlyName": "Yl Fan - Fanlevel Combine",
				"channel": "fanlevel_combine",
				"type": "Number",
				"stateDescription": {
					"minimum": 0,
					"maximum": -1,
					"step": 1,
					"pattern": "%.0f"
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "STRING"
					}
				]
			},
			{
				"property": "smart-switch-en1",
				"siid": 5,
				"piid": 3,
				"friendlyName": "Yl Fan - Smart Switch En",
				"channel": "smart_switch_en1",
				"type": "Switch",
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "ONOFFBOOL"
					}
				]
			},
			{
				"property": "fan-speed",
				"siid": 5,
				"piid": 4,
				"friendlyName": "Yl Fan - Fan Speed",
				"channel": "fan_speed",
				"type": "Number:Dimensionless",
				"unit": "percentage",
				"stateDescription": {
					"minimum": 1,
					"maximum": 100,
					"step": 1,
					"pattern": "%.0f %unit%"
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "NUMBER"
					}
				]
			},
			{
				"property": "sleep-delay-off",
				"siid": 5,
				"piid": 5,
				"friendlyName": "Yl Fan - Sleep Delay Off",
				"channel": "sleep_delay_off",
				"type": "Number:Time",
				"unit": "minutes",
				"stateDescription": {
					"minimum": 0,
					"maximum": 720,
					"step": 1,
					"pattern": "%.0f %unit%"
				},
				"refresh": true,
				"actions": [
					{
						"command": "set_properties",
						"parameterType": "STRING"
					}
				]
			},
			{
				"property": "mode-for-restore",
				"siid": 5,
				"piid": 6,
				"friendlyName": "Yl Fan - Mode For Restore",
				"channel": "mode_for_restore",
				"type": "Number",
				"stateDescription": {
					"minimum": 0,
					"maximum": 2,
					"step": 1,
					"pattern": "%.0f",
					"readOnly": true
				},
				"refresh": true,
				"actions": []
			}
		],
		"experimental": true
	}
}
Testing Properties:
on -> get_properties[{"did":"on","siid":2,"piid":1}] -> 5077,
mode -> get_properties[{"did":"mode","siid":2,"piid":2}] -> 5078,
brightness -> get_properties[{"did":"brightness","siid":2,"piid":3}] -> 5079,
color_temperature -> get_properties[{"did":"color-temperature","siid":2,"piid":5}] -> 5080,
flow -> get_properties[{"did":"flow","siid":2,"piid":6}] -> 5081,
off_delay_time -> get_properties[{"did":"off-delay-time","siid":2,"piid":7}] -> 5082,
left_time -> get_properties[{"did":"left-time","siid":2,"piid":8}] -> 5083,
on1 -> get_properties[{"did":"on1","siid":3,"piid":1}] -> 5084,
fan_level -> get_properties[{"did":"fan-level","siid":3,"piid":2}] -> 5085,
mode1 -> get_properties[{"did":"mode1","siid":3,"piid":7}] -> 5086,
status -> get_properties[{"did":"status","siid":3,"piid":8}] -> 5087,
fault -> get_properties[{"did":"fault","siid":3,"piid":9}] -> 5088,
off_delay_time1 -> get_properties[{"did":"off-delay-time1","siid":3,"piid":11}] -> 5089,
left_time1 -> get_properties[{"did":"left-time1","siid":3,"piid":12}] -> 5090,
init_power_opt -> get_properties[{"did":"init-power-opt","siid":4,"piid":1}] -> 5091,
night_time -> get_properties[{"did":"night-time","siid":4,"piid":2}] -> 5092,
smart_switch_en -> get_properties[{"did":"smart-switch-en","siid":4,"piid":4}] -> 5093,
miband_sleep_ctrl -> get_properties[{"did":"miband-sleep-ctrl","siid":4,"piid":5}] -> 5094,
fan_init_power_opt -> get_properties[{"did":"fan-init-power-opt","siid":5,"piid":1}] -> 5095,
fanlevel_combine -> get_properties[{"did":"fanlevel-combine","siid":5,"piid":2}] -> 5096,
smart_switch_en1 -> get_properties[{"did":"smart-switch-en1","siid":5,"piid":3}] -> 5097,
fan_speed -> get_properties[{"did":"fan-speed","siid":5,"piid":4}] -> 5098,
sleep_delay_off -> get_properties[{"did":"sleep-delay-off","siid":5,"piid":5}] -> 5099,
mode_for_restore -> get_properties[{"did":"mode-for-restore","siid":5,"piid":6}] -> 5100,

{"life":418611,"model":"yeelink.light.fancl2","ipflag":1,"fw_ver":"2.2.8","mcu_fw_ver":"0077","miio_ver":"0.0.9","hw_ver":"esp32","mmfree":67696,"min_mmfree":48956,"wifi_fw_ver":"d6a484cd3","netif":{"localIp":"192.168.31.240","mask":"255.255.255.0","gw":"192.168.31.1"},"uid":1643309026,"ipv6":true,"power_mode":0}
{"id":5076,"method":"miIO.info","params":[]} -> {"id":5076,"result":{"life":418611,"model":"yeelink.light.fancl2","ipflag":1,"fw_ver":"2.2.8","mcu_fw_ver":"0077","miio_ver":"0.0.9","hw_ver":"esp32","mmfree":67696,"min_mmfree":48956,"wifi_fw_ver":"d6a484cd3","netif":{"localIp":"192.168.31.240","mask":"255.255.255.0","gw":"192.168.31.1"},"uid":1643309026,"ipv6":true,"power_mode":0},"exe_time":10}
{"id":5077,"method":"get_properties","params":[{"did":"on","siid":2,"piid":1}]} -> {"id":5077,"result":[{"did":"on","siid":2,"piid":1,"code":0,"value":false}],"exe_time":70}
{"id":5078,"method":"get_properties","params":[{"did":"mode","siid":2,"piid":2}]} -> {"id":5078,"result":[{"did":"mode","siid":2,"piid":2,"code":0,"value":0}],"exe_time":210}
{"id":5079,"method":"get_properties","params":[{"did":"brightness","siid":2,"piid":3}]} -> {"id":5079,"result":[{"did":"brightness","siid":2,"piid":3,"code":0,"value":100}],"exe_time":210}
{"id":5080,"method":"get_properties","params":[{"did":"color-temperature","siid":2,"piid":5}]} -> {"id":5080,"result":[{"did":"color-temperature","siid":2,"piid":5,"code":0,"value":3469}],"exe_time":210}
{"id":5081,"method":"get_properties","params":[{"did":"flow","siid":2,"piid":6}]} -> {"id":5081,"result":[{"did":"flow","siid":2,"piid":6,"code":0,"value":0}],"exe_time":210}
{"id":5082,"method":"get_properties","params":[{"did":"off-delay-time","siid":2,"piid":7}]} -> {"id":5082,"result":[{"did":"off-delay-time","siid":2,"piid":7,"code":0,"value":0}],"exe_time":170}
{"id":5083,"method":"get_properties","params":[{"did":"left-time","siid":2,"piid":8}]} -> {"id":5083,"result":[{"did":"left-time","siid":2,"piid":8,"code":0,"value":0}],"exe_time":190}
{"id":5084,"method":"get_properties","params":[{"did":"on1","siid":3,"piid":1}]} -> {"id":5084,"result":[{"did":"on1","siid":3,"piid":1,"code":0,"value":false}],"exe_time":450}
{"id":5085,"method":"get_properties","params":[{"did":"fan-level","siid":3,"piid":2}]} -> {"id":5085,"result":[{"did":"fan-level","siid":3,"piid":2,"code":0,"value":1}],"exe_time":200}
{"id":5086,"method":"get_properties","params":[{"did":"mode1","siid":3,"piid":7}]} -> {"id":5086,"result":[{"did":"mode1","siid":3,"piid":7,"code":0,"value":0}],"exe_time":140}
{"id":5087,"method":"get_properties","params":[{"did":"status","siid":3,"piid":8}]} -> {"id":5087,"result":[{"did":"status","siid":3,"piid":8,"code":0,"value":0}],"exe_time":160}
{"id":5088,"method":"get_properties","params":[{"did":"fault","siid":3,"piid":9}]} -> {"id":5088,"result":[{"did":"fault","siid":3,"piid":9,"code":0,"value":0}],"exe_time":190}
{"id":5089,"method":"get_properties","params":[{"did":"off-delay-time1","siid":3,"piid":11}]} -> {"id":5089,"result":[{"did":"off-delay-time1","siid":3,"piid":11,"code":0,"value":0}],"exe_time":200}
{"id":5090,"method":"get_properties","params":[{"did":"left-time1","siid":3,"piid":12}]} -> {"id":5090,"result":[{"did":"left-time1","siid":3,"piid":12,"code":0,"value":0}],"exe_time":190}
{"id":5091,"method":"get_properties","params":[{"did":"init-power-opt","siid":4,"piid":1}]} -> {"id":5091,"result":[{"did":"init-power-opt","siid":4,"piid":1,"code":0,"value":1}],"exe_time":210}
{"id":5092,"method":"get_properties","params":[{"did":"night-time","siid":4,"piid":2}]} -> {"id":5092,"result":[{"did":"night-time","siid":4,"piid":2,"code":0,"value":1099511955477}],"exe_time":210}
{"id":5093,"method":"get_properties","params":[{"did":"smart-switch-en","siid":4,"piid":4}]} -> {"id":5093,"result":[{"did":"smart-switch-en","siid":4,"piid":4,"code":0,"value":false}],"exe_time":160}
{"id":5094,"method":"get_properties","params":[{"did":"miband-sleep-ctrl","siid":4,"piid":5}]} -> {"id":5094,"result":[{"did":"miband-sleep-ctrl","siid":4,"piid":5,"code":0,"value":0}],"exe_time":180}
{"id":5095,"method":"get_properties","params":[{"did":"fan-init-power-opt","siid":5,"piid":1}]} -> {"id":5095,"result":[{"did":"fan-init-power-opt","siid":5,"piid":1,"code":0,"value":0}],"exe_time":200}
{"id":5096,"method":"get_properties","params":[{"did":"fanlevel-combine","siid":5,"piid":2}]} -> {"id":5096,"result":[{"did":"fanlevel-combine","siid":5,"piid":2,"code":0,"value":131586}],"exe_time":210}
{"id":5097,"method":"get_properties","params":[{"did":"smart-switch-en1","siid":5,"piid":3}]} -> {"id":5097,"result":[{"did":"smart-switch-en1","siid":5,"piid":3,"code":0,"value":false}],"exe_time":210}
{"id":5098,"method":"get_properties","params":[{"did":"fan-speed","siid":5,"piid":4}]} -> {"id":5098,"result":[{"did":"fan-speed","siid":5,"piid":4,"code":0,"value":100}],"exe_time":390}
{"id":5099,"method":"get_properties","params":[{"did":"sleep-delay-off","siid":5,"piid":5}]} -> {"id":5099,"result":[{"did":"sleep-delay-off","siid":5,"piid":5,"code":0,"value":454}],"exe_time":190}
{"id":5100,"method":"get_properties","params":[{"did":"mode-for-restore","siid":5,"piid":6}]} -> {"id":5100,"result":[{"did":"mode-for-restore","siid":5,"piid":6,"code":0,"value":1}],"exe_time":200}
===================================
Responsive properties
===================================
Device Info: {"life":418611,"model":"yeelink.light.fancl2","ipflag":1,"fw_ver":"2.2.8","mcu_fw_ver":"0077","miio_ver":"0.0.9","hw_ver":"esp32","mmfree":67696,"min_mmfree":48956,"wifi_fw_ver":"d6a484cd3","netif":{"localIp":"192.168.31.240","mask":"255.255.255.0","gw":"192.168.31.1"},"uid":1643309026,"ipv6":true,"power_mode":0}
24 channels with responses.
Property: on              Friendly Name: Light - Switch Status     Response: [{"did":"on","siid":2,"piid":1,"code":0,"value":false}]
Property: mode            Friendly Name: Light - Mode              Response: [{"did":"mode","siid":2,"piid":2,"code":0,"value":0}]
Property: brightness      Friendly Name: Light - Brightness        Response: [{"did":"brightness","siid":2,"piid":3,"code":0,"value":100}]
Property: color-temperature Friendly Name: Light - Color Temperature Response: [{"did":"color-temperature","siid":2,"piid":5,"code":0,"value":3469}]
Property: flow            Friendly Name: Light - Flow              Response: [{"did":"flow","siid":2,"piid":6,"code":0,"value":0}]
Property: off-delay-time  Friendly Name: Light - Power Off Delay Time Response: [{"did":"off-delay-time","siid":2,"piid":7,"code":0,"value":0}]
Property: left-time       Friendly Name: Light - Left Time         Response: [{"did":"left-time","siid":2,"piid":8,"code":0,"value":0}]
Property: on1             Friendly Name: Fan - Switch Status       Response: [{"did":"on1","siid":3,"piid":1,"code":0,"value":false}]
Property: fan-level       Friendly Name: Fan - Fan Level           Response: [{"did":"fan-level","siid":3,"piid":2,"code":0,"value":1}]
Property: mode1           Friendly Name: Fan - Mode                Response: [{"did":"mode1","siid":3,"piid":7,"code":0,"value":0}]
Property: status          Friendly Name: Fan - Status              Response: [{"did":"status","siid":3,"piid":8,"code":0,"value":0}]
Property: fault           Friendly Name: Fan - Device Fault        Response: [{"did":"fault","siid":3,"piid":9,"code":0,"value":0}]
Property: off-delay-time1 Friendly Name: Fan - Power Off Delay Time Response: [{"did":"off-delay-time1","siid":3,"piid":11,"code":0,"value":0}]
Property: left-time1      Friendly Name: Fan - Left Time           Response: [{"did":"left-time1","siid":3,"piid":12,"code":0,"value":0}]
Property: init-power-opt  Friendly Name: Yl Light - Init Power Opt Response: [{"did":"init-power-opt","siid":4,"piid":1,"code":0,"value":1}]
Property: night-time      Friendly Name: Yl Light - Night Time     Response: [{"did":"night-time","siid":4,"piid":2,"code":0,"value":1099511955477}]
Property: smart-switch-en Friendly Name: Yl Light - Smart Switch En Response: [{"did":"smart-switch-en","siid":4,"piid":4,"code":0,"value":false}]
Property: miband-sleep-ctrl Friendly Name: Yl Light - Miband Sleep Ctrl Response: [{"did":"miband-sleep-ctrl","siid":4,"piid":5,"code":0,"value":0}]
Property: fan-init-power-opt Friendly Name: Yl Fan - Fan Init Power Opt Response: [{"did":"fan-init-power-opt","siid":5,"piid":1,"code":0,"value":0}]
Property: fanlevel-combine Friendly Name: Yl Fan - Fanlevel Combine Response: [{"did":"fanlevel-combine","siid":5,"piid":2,"code":0,"value":131586}]
Property: smart-switch-en1 Friendly Name: Yl Fan - Smart Switch En  Response: [{"did":"smart-switch-en1","siid":5,"piid":3,"code":0,"value":false}]
Property: fan-speed       Friendly Name: Yl Fan - Fan Speed        Response: [{"did":"fan-speed","siid":5,"piid":4,"code":0,"value":100}]
Property: sleep-delay-off Friendly Name: Yl Fan - Sleep Delay Off  Response: [{"did":"sleep-delay-off","siid":5,"piid":5,"code":0,"value":454}]
Property: mode-for-restore Friendly Name: Yl Fan - Mode For Restore Response: [{"did":"mode-for-restore","siid":5,"piid":6,"code":0,"value":1}]
Miot file already created. Manually remove non-functional channels.
@Simsal Simsal added the enhancement An enhancement or new feature for an existing add-on label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

No branches or pull requests

1 participant