Add brightness and color_temp to example
This commit is contained in:
committed by
rospogrigio
parent
1da5c2c2e1
commit
f5146ad4eb
@@ -33,6 +33,8 @@ localtuya:
|
|||||||
- platform: light
|
- platform: light
|
||||||
friendly_name: Device Light
|
friendly_name: Device Light
|
||||||
id: 4
|
id: 4
|
||||||
|
brightness: 20
|
||||||
|
color_temp: 21
|
||||||
|
|
||||||
- platform: sensor
|
- platform: sensor
|
||||||
friendly_name: Plug Voltage
|
friendly_name: Plug Voltage
|
||||||
|
@@ -261,7 +261,7 @@ class LocalTuyaEntity(Entity):
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
def dps_conf(self, conf_item):
|
def dps_conf(self, conf_item):
|
||||||
"""Return value of datapoint for user speified config item.
|
"""Return value of datapoint for user specified config item.
|
||||||
|
|
||||||
This method looks up which DP a certain config item uses based on
|
This method looks up which DP a certain config item uses based on
|
||||||
user configuration and returns its value.
|
user configuration and returns its value.
|
||||||
|
Reference in New Issue
Block a user