From 15c2129672ace88b262df8f0f0f972ea2a5b6456 Mon Sep 17 00:00:00 2001 From: nestor Date: Mon, 10 Oct 2022 10:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1=20add=20miio2miot=20for=20philips.?= =?UTF-8?q?light.sread2=20(#840)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit only support power and bright --- .../xiaomi_miot/core/miio2miot_specs.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/custom_components/xiaomi_miot/core/miio2miot_specs.py b/custom_components/xiaomi_miot/core/miio2miot_specs.py index 0e68acf4d..9e049185e 100644 --- a/custom_components/xiaomi_miot/core/miio2miot_specs.py +++ b/custom_components/xiaomi_miot/core/miio2miot_specs.py @@ -845,6 +845,22 @@ def cbk(prop, params, props, **kwargs): 'prop.2.2': {'prop': 'bright', 'setter': True}, }, }, + 'philips.light.sread2': { + 'miio_specs': { + 'prop.2.1': {'prop': 'power', 'setter': True, 'format': 'onoff'}, + 'prop.2.2': {'prop': 'bright', 'setter': True}, + 'prop.2.3': {'prop': 'scene_num', 'setter': True, 'dict': { + 'None': 0, + 'Child Reading': 1, + 'Adult Reading': 2, + 'Computer': 3, + }}, + 'prop.3.2': {'prop': 'ambstatus', 'setter': True, 'format': 'onoff'}, + 'prop.3.3': {'prop': 'ambvalue', 'setter': True}, + 'prop.3.4': {'prop': 'notifystatus', 'setter': True, 'format': 'onoff'}, + 'prop.3.5': {'prop': 'eyecare', 'setter': True, 'format': 'onoff'}, + }, + }, 'philips.light.bulb': { 'miio_specs': { 'prop.2.1': {'prop': 'power', 'setter': True, 'format': 'onoff'},