added new videv device for garden
This commit is contained in:
parent
31c00259de
commit
f13cdfdcb7
9
rooms.py
9
rooms.py
@ -77,6 +77,7 @@ The device names in the room classes follow this definition:
|
|||||||
videv_heating
|
videv_heating
|
||||||
|
|
||||||
videv_multistate
|
videv_multistate
|
||||||
|
videv_mode
|
||||||
|
|
||||||
input_device
|
input_device
|
||||||
|
|
||||||
@ -105,6 +106,7 @@ from devices import videv_sw_br
|
|||||||
from devices import videv_sw_br_ct
|
from devices import videv_sw_br_ct
|
||||||
from devices import videv_sw_tm
|
from devices import videv_sw_tm
|
||||||
from devices import videv_hea
|
from devices import videv_hea
|
||||||
|
from devices import videv_pure_switch
|
||||||
from devices import videv_multistate
|
from devices import videv_multistate
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -309,12 +311,14 @@ class gar_garden(base_room):
|
|||||||
loc = props.LOC_GAR
|
loc = props.LOC_GAR
|
||||||
roo = props.ROO_GAR
|
roo = props.ROO_GAR
|
||||||
#
|
#
|
||||||
self.switch_main_light = shelly_sw1(mqtt_client, get_topic(props.STG_SHE, loc, roo, props.FUN_MAL))
|
self.switch_garland_light = shelly_sw1(mqtt_client, get_topic(props.STG_SHE, loc, roo, props.FUN_GAR))
|
||||||
self.videv_main_light = videv_sw(mqtt_client, get_topic(props.STG_VDE, loc, roo, props.FUN_MAL))
|
self.videv_garland_light = videv_sw(mqtt_client, get_topic(props.STG_VDE, loc, roo, props.FUN_GAR))
|
||||||
|
|
||||||
self.videv_repeater = videv_sw(mqtt_client, get_topic(props.STG_VDE, loc, roo, props.FUN_REP))
|
self.videv_repeater = videv_sw(mqtt_client, get_topic(props.STG_VDE, loc, roo, props.FUN_REP))
|
||||||
self.switch_repeater = shelly_sw1(mqtt_client, get_topic(props.STG_ZGW, loc, roo, props.FUN_REP))
|
self.switch_repeater = shelly_sw1(mqtt_client, get_topic(props.STG_ZGW, loc, roo, props.FUN_REP))
|
||||||
|
|
||||||
|
self.videv_mode = videv_pure_switch(mqtt_client, get_topic(props.STG_ZGW, loc, roo, props.FUN_MOD))
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# GFW #############################################################################################
|
# GFW #############################################################################################
|
||||||
@ -396,4 +400,3 @@ class stairway(base_room):
|
|||||||
self.motion_main_light_gf = silvercrest_motion_sensor(mqtt_client, get_topic(props.STG_ZGW, loc, props.ROO_STG, props.FUN_MSE))
|
self.motion_main_light_gf = silvercrest_motion_sensor(mqtt_client, get_topic(props.STG_ZGW, loc, props.ROO_STG, props.FUN_MSE))
|
||||||
self.motion_main_light_ff = silvercrest_motion_sensor(mqtt_client, get_topic(props.STG_ZFE, loc, props.ROO_STF, props.FUN_MSE))
|
self.motion_main_light_ff = silvercrest_motion_sensor(mqtt_client, get_topic(props.STG_ZFE, loc, props.ROO_STF, props.FUN_MSE))
|
||||||
self.videv_main_light = videv_sw(mqtt_client, get_topic(props.STG_VDE, loc, props.ROO_STF, props.FUN_MAL))
|
self.videv_main_light = videv_sw(mqtt_client, get_topic(props.STG_VDE, loc, props.ROO_STF, props.FUN_MAL))
|
||||||
|
|
||||||
|
3
topic.py
3
topic.py
@ -155,6 +155,8 @@ FUN_PHO = 27
|
|||||||
""" Phono """
|
""" Phono """
|
||||||
FUN_VMS = 28
|
FUN_VMS = 28
|
||||||
""" Virtual Multi State"""
|
""" Virtual Multi State"""
|
||||||
|
FUN_MOD = 29
|
||||||
|
""" Mode """
|
||||||
|
|
||||||
|
|
||||||
STG_TOPIC = {
|
STG_TOPIC = {
|
||||||
@ -219,6 +221,7 @@ FUN_TOPIC = {
|
|||||||
FUN_BTP: 'bt',
|
FUN_BTP: 'bt',
|
||||||
FUN_PHO: 'phono',
|
FUN_PHO: 'phono',
|
||||||
FUN_VMS: 'active_brightness_device',
|
FUN_VMS: 'active_brightness_device',
|
||||||
|
FUN_MOD: 'mode',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user