added panel for lighting - added and tested functionality for shading control
This commit is contained in:
parent
d42b296bae
commit
ec9c2e818d
4 changed files with 122 additions and 7 deletions
|
@ -89,8 +89,8 @@ async def handleTseSencilo(client, cmd):
|
|||
rel = RelayState(shades_mapping['dol'], True)
|
||||
await executeAndPublish(client, topicPub, "MOVING_DOWN", rel)
|
||||
else:
|
||||
await executeAndPublish(client, topicPub, "STATIONARY", RelayState(shades_mapping['gor'], False))
|
||||
await executeAndPublish(client, topicPub, "STATIONARY", RelayState(shades_mapping['dol'], False))
|
||||
await executeAndPublish(client, topicPub, "STOPPED", RelayState(shades_mapping['gor'], False))
|
||||
await executeAndPublish(client, topicPub, "STOPPED", RelayState(shades_mapping['dol'], False))
|
||||
|
||||
|
||||
platnoBckgdMoving = False # mucho importante variable prav zares dedoles
|
||||
|
@ -176,8 +176,8 @@ async def task_command2serial(controlClient: aiomqtt.Client):
|
|||
systype = msgTopic[2]
|
||||
await handleTsePower(controlClient, systype, cmnd)
|
||||
|
||||
elif mesg.topic.matches(f'{room}/firanki/command/#'):
|
||||
await handleTseSencilo(topicVal, controlClient, cmnd)
|
||||
elif mesg.topic.matches(f'{room}/firanki/move/#'):
|
||||
await handleTseSencilo(controlClient, cmnd)
|
||||
|
||||
else:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue