MQTT Home Emulation
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. from devdi import topic as props
  2. def functions(pd):
  3. #######
  4. # GFW #
  5. #######
  6. loc = props.LOC_GFW
  7. # DIRK
  8. roo = props.ROO_DIR
  9. sml = pd.get(props.STG_SHE, loc, roo, props.FUN_MAL)
  10. tml = pd.get(props.STG_ZGW, loc, roo, props.FUN_MAL)
  11. sml.register_power_on_instance(tml, sml.PROPERTIES[0])
  12. sml = pd.get(props.STG_MYA, loc, roo, props.FUN_MPP)
  13. tml = pd.get(props.STG_ZGW, loc, roo, props.FUN_DEL)
  14. sml.register_power_on_instance(tml, sml.PROPERTIES[1])
  15. # FLOOR
  16. roo = props.ROO_FLO
  17. sml = pd.get(props.STG_SHE, loc, roo, props.FUN_MAL)
  18. tml = pd.get(props.STG_ZGW, loc, roo, props.FUN_MAL)
  19. sml.register_power_on_instance(tml, sml.PROPERTIES[0])
  20. #######
  21. # FFW #
  22. #######
  23. loc = props.LOC_FFW
  24. # JULIAN
  25. roo = props.ROO_JUL
  26. sml = pd.get(props.STG_SHE, loc, roo, props.FUN_MAL)
  27. tml = pd.get(props.STG_ZFW, loc, roo, props.FUN_MAL)
  28. sml.register_power_on_instance(tml, sml.PROPERTIES[0])
  29. # LIVINGROOM
  30. roo = props.ROO_LIV
  31. sml = pd.get(props.STG_SHE, loc, roo, props.FUN_MAL)
  32. tml = pd.get(props.STG_ZFW, loc, roo, props.FUN_MAL)
  33. sml.register_power_on_instance(tml, sml.PROPERTIES[0])
  34. # SLEEP
  35. roo = props.ROO_SLP
  36. sml = pd.get(props.STG_SHE, loc, roo, props.FUN_MAL)
  37. tml = pd.get(props.STG_ZFW, loc, roo, props.FUN_MAL)
  38. sml.register_power_on_instance(tml, sml.PROPERTIES[0])
  39. #######
  40. # FFE #
  41. #######
  42. loc = props.LOC_FFE
  43. # KITCHEN
  44. roo = props.ROO_KIT
  45. sml = pd.get(props.STG_SHE, loc, roo, props.FUN_CIR)
  46. sml.auto_off(600)
  47. # LIVINGROOM
  48. roo = props.ROO_LIV
  49. sml = pd.get(props.STG_SHE, loc, roo, props.FUN_MAL)
  50. tml = pd.get(props.STG_ZFE, loc, roo, props.FUN_MAL)
  51. sml.register_power_on_instance(tml, sml.PROPERTIES[0])
  52. # SLEEP
  53. roo = props.ROO_SLP
  54. sml = pd.get(props.STG_SHE, loc, roo, props.FUN_MAL)
  55. tml = pd.get(props.STG_ZFE, loc, roo, props.FUN_MAL)
  56. sml.register_power_on_instance(tml, sml.PROPERTIES[0])