mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add devices to Tahoma (#14075)
This commit is contained in:
parent
0a0d34d394
commit
558b659f7c
@ -79,5 +79,7 @@ class TahomaCover(TahomaDevice, CoverDevice):
|
|||||||
if self.tahoma_device.type == \
|
if self.tahoma_device.type == \
|
||||||
'io:RollerShutterWithLowSpeedManagementIOComponent':
|
'io:RollerShutterWithLowSpeedManagementIOComponent':
|
||||||
self.apply_action('setPosition', 'secured')
|
self.apply_action('setPosition', 'secured')
|
||||||
|
elif self.tahoma_device.type == 'rts:BlindRTSComponent':
|
||||||
|
self.apply_action('my')
|
||||||
else:
|
else:
|
||||||
self.apply_action('stopIdentify')
|
self.apply_action('stopIdentify')
|
||||||
|
@ -46,6 +46,8 @@ class TahomaSensor(TahomaDevice, Entity):
|
|||||||
"""Return the unit of measurement of this entity, if any."""
|
"""Return the unit of measurement of this entity, if any."""
|
||||||
if self.tahoma_device.type == 'Temperature Sensor':
|
if self.tahoma_device.type == 'Temperature Sensor':
|
||||||
return None
|
return None
|
||||||
|
elif self.tahoma_device.type == 'io:SomfyContactIOSystemSensor':
|
||||||
|
return None
|
||||||
elif self.tahoma_device.type == 'io:LightIOSystemSensor':
|
elif self.tahoma_device.type == 'io:LightIOSystemSensor':
|
||||||
return 'lux'
|
return 'lux'
|
||||||
elif self.tahoma_device.type == 'Humidity Sensor':
|
elif self.tahoma_device.type == 'Humidity Sensor':
|
||||||
@ -57,3 +59,6 @@ class TahomaSensor(TahomaDevice, Entity):
|
|||||||
if self.tahoma_device.type == 'io:LightIOSystemSensor':
|
if self.tahoma_device.type == 'io:LightIOSystemSensor':
|
||||||
self.current_value = self.tahoma_device.active_states[
|
self.current_value = self.tahoma_device.active_states[
|
||||||
'core:LuminanceState']
|
'core:LuminanceState']
|
||||||
|
if self.tahoma_device.type == 'io:SomfyContactIOSystemSensor':
|
||||||
|
self.current_value = self.tahoma_device.active_states[
|
||||||
|
'core:ContactState']
|
||||||
|
@ -38,6 +38,8 @@ TAHOMA_COMPONENTS = [
|
|||||||
TAHOMA_TYPES = {
|
TAHOMA_TYPES = {
|
||||||
'rts:RollerShutterRTSComponent': 'cover',
|
'rts:RollerShutterRTSComponent': 'cover',
|
||||||
'rts:CurtainRTSComponent': 'cover',
|
'rts:CurtainRTSComponent': 'cover',
|
||||||
|
'rts:BlindRTSComponent': 'cover',
|
||||||
|
'rts:VenetianBlindRTSComponent': 'cover',
|
||||||
'io:RollerShutterWithLowSpeedManagementIOComponent': 'cover',
|
'io:RollerShutterWithLowSpeedManagementIOComponent': 'cover',
|
||||||
'io:RollerShutterVeluxIOComponent': 'cover',
|
'io:RollerShutterVeluxIOComponent': 'cover',
|
||||||
'io:RollerShutterGenericIOComponent': 'cover',
|
'io:RollerShutterGenericIOComponent': 'cover',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user