devdi: My Ambient info added
This commit is contained in:
parent
1b8ad26f21
commit
0f5ad2a18a
@ -32,6 +32,7 @@ class base(dict):
|
||||
props.DTY_MPP_4xx: devices.my_powerplug,
|
||||
props.DTY_MAS_xxx: devices.audio_status,
|
||||
props.DTY_MRE_xxx: devices.remote,
|
||||
props.DTY_MAM_THP: devices.my_ambient,
|
||||
}.get(dty)
|
||||
|
||||
def add(self, mqtt_client, stg, loc, roo, fun, dty, num=None):
|
||||
@ -133,6 +134,7 @@ class physical_devices(base):
|
||||
self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASM, props.DTY_MAS_xxx) # Audio status MPD
|
||||
self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_ASB, props.DTY_MAS_xxx) # Audio status Bluetooth
|
||||
self.add(mqtt_client, props.STG_ZGW, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx) # Brennenstuhl Heatingvalve
|
||||
self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_AMB, props.DTY_MAM_THP) # My Ambient information
|
||||
|
||||
# GARDEN
|
||||
self.add(mqtt_client, props.STG_ZGW, props.LOC_GAR, props.ROO_GAR, props.FUN_GAR, props.DTY_SPP_SW1)
|
||||
@ -186,6 +188,7 @@ class physical_devices(base):
|
||||
self.add(mqtt_client, props.STG_ZFE, loc, roo, props.FUN_FLL, props.DTY_SPP_SW1) # Powerplug Floor Light
|
||||
self.add(mqtt_client, props.STG_ZFE, loc, roo, props.FUN_GAR, props.DTY_SPP_SW1) # Powerplug Garland
|
||||
self.add(mqtt_client, props.STG_ZFE, loc, roo, props.FUN_HEA, props.DTY_BVL_xxx) # Brennenstuhl Heatingvalve
|
||||
self.add(mqtt_client, props.STG_MYA, loc, roo, props.FUN_AMB, props.DTY_MAM_THP) # My Ambient information
|
||||
|
||||
# SLEEP
|
||||
roo = props.ROO_SLP
|
||||
|
7
topic.py
7
topic.py
@ -27,7 +27,8 @@ DTY_MAS_xxx = 11
|
||||
""" My Audio status (MPD) """
|
||||
DTY_MRE_xxx = 12
|
||||
""" My Remote control """
|
||||
|
||||
DTY_MAM_THP = 13
|
||||
""" My Ambient Information (Temperature, Humidity, Pressure)"""
|
||||
|
||||
#
|
||||
# Source Transmission Group
|
||||
@ -132,6 +133,9 @@ FUN_ASB = 18
|
||||
""" Audio status bluetooth """
|
||||
FUN_DCK = 19
|
||||
""" Docking Station """
|
||||
FUN_AMB = 20
|
||||
""" Ambient information """
|
||||
|
||||
|
||||
class topic_by_props(UserString):
|
||||
def __init__(self, stg, loc, roo, fun):
|
||||
@ -194,4 +198,5 @@ class topic_by_props(UserString):
|
||||
FUN_ASS: 'audio_status_spotify',
|
||||
FUN_ASM: 'audio_status_mpd',
|
||||
FUN_ASB: 'audio_status_bt',
|
||||
FUN_AMB: 'ambient',
|
||||
}.get(fun)
|
||||
|
Loading…
x
Reference in New Issue
Block a user