x10.conf.j2 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. # Example Heyu configuration file. Copy this to file 'x10config' in
  2. # directory $HOME/.heyu/ and modify as required. This example uses
  3. # features which are new to heyu version 2
  4. # and which will not be recognized by heyu version 1.xx.
  5. # Note: This example file describes only a few of the most commom
  6. # configuration directives. For the complete list see man page
  7. # x10config(5).
  8. # Anything on a line between a '#' character and the end of the line is
  9. # treated as a comment and ignored by Heyu, as are blank lines.
  10. # The various configuration directives in this file can be in any order
  11. # except that ALIAS directives must appear before any other directive
  12. # which references the alias label in place of a housecode|unit address.
  13. # See 'man x10config' for additional information and directives.
  14. # Serial port to which the CM11a is connected. Default is /dev/ttyS0.
  15. TTY /dev/firecracker
  16. # If you have an X10 compatible RF receiver connected to a second
  17. # and model of receiver. Supported receivers are W800RF32, MR26A,
  18. # and RFXCOM. There are no defaults.
  19. # Base housecode. The default is A.
  20. HOUSECODE A # A B C D E F G H I J K L M N O P
  21. # Aliases:
  22. # Format: ALIAS Label Housecode|Unitcode_string [Module_Type]
  23. #
  24. # The label is limited to 32 characters in length and is case-sensitive,
  25. # e.g., Front_Porch and front_porch are treated as different labels.
  26. # Each alias may reference a single unitcode or a multiple unitcode
  27. # string (no embedded blanks), but is limited to one housecode.
  28. #
  29. # The optional Module_Type is the general type or specific model number
  30. # of a module currently supported by Heyu. (Knowing the characteristics
  31. # of a module allows Heyu to track changes in its On/Off/Dim state
  32. # as X10 signals are sent or received.) The most commonly used modules
  33. # are the standard X10 lamp module (StdLM) and standard X10 appliance
  34. # module (StdAM). Other modules currently supported by Heyu are listed
  35. # in x10config(5). A standard X10 lamp module (StdLM) is the
  36. # default (changeable with the DEFAULT_MODULE directive)
  37. # for housecode|units which are not defined in an alias directive.
  38. # A module_type should normally not be defined for mutiple-unit
  39. # aliases, just for the single-unit aliases. (The module characteristics
  40. # are associated with the housecode|unit, however referenced.)
  41. {% for alias in heyu_aliases %}
  42. ALIAS {{ alias.device }} {{ alias.code }} {{ alias.type }}
  43. {% endfor %}
  44. # Note: Prior versions of Heyu used a different format for
  45. # aliases - no ALIAS directive and the Housecode and Unitcode_string
  46. # were separated by a space, e.g., simply:
  47. # front_porch A 1
  48. # Heyu will continue to accept this older format for compatibility,
  49. # but its use is discouraged as modules cannot be specified.
  50. # Scenes and Usersyns (User-defined synonyms):
  51. # Format: SCENE Label Command1 <args> [; Command2 <args> [; ...
  52. # Format: USERSYN Label Command1 <args> [; Command2 <args> [; ...
  53. # The label is limited to 32 characters and is case-sensitive.
  54. # Scenes and Usersyns are both semicolon-separated lists of
  55. # commands with their arguments which can be executed or used
  56. # in macros as if their labels were ordinary Heyu commands.
  57. # See 'man x10config' for the features and limitations of Scenes
  58. # and Usersyns.
  59. # (In the current version of heyu, the ONLY distinction between
  60. # scenes and usersyns is the 'show' menus in which they appear.)
  61. # Some examples:
  62. # SCENE blinker on A1; off A1; on A1; off A1
  63. # SCENE tv_on on tv_set; dimb living_room 10
  64. # Scene and usersyn definitions can include positional
  65. # parameters, e.g., $1, $2, which are replaced by actual
  66. # parameters supplied when the scene/usersyn is run.
  67. # USERSYN night_lights dimb front_porch $1; dimb back_porch $1
  68. # Define the (writeable) directory where the Heyu state engine daemon
  69. # (started with 'heyu engine') is to write its log file 'heyu.log.<tty>'.
  70. # The default is 'NONE', indicating no log file is to be written.
  71. # LOG_DIR NONE
  72. # The entries in the log file are similar to those which appear in
  73. # the heyu monitor, but in addition will include an entry when
  74. # a script is launched, and unless redirected elsewhere, any
  75. # text output from that script.
  76. # Note that the log file will continue to grow. Manually delete
  77. # or trim it from time to time, or configure a Unix utility like
  78. # 'logrotate' to manage this task automatically.
  79. # If the Heyu state engine is running, Heyu can launch scripts
  80. # (or any Unix commands) when it sees specified X10 signals.
  81. # The format is:
  82. #
  83. # SCRIPT [ -l label ] <launch conditions> :: [options] <command line>
  84. #
  85. # where label is an optional label, <launch conditions> tell
  86. # Heyu under what conditions to launch the script, and
  87. # <command line> is the script command to be executed.
  88. # The '::' (two colons) separator is mandatory since the launch
  89. # conditions can be quite complex.
  90. # See x10scripts(5) for details, but here's a simple example
  91. # (with no label):
  92. #
  93. # ALIAS doorbell B1
  94. # SCRIPT doorbell on :: play $HOME/sounds/barking_dog.wav
  95. # Users have the option of running either 'heyuhelper' in a manner
  96. # similar to heyu 1.35 or general scripts as above with the
  97. # following directive. The default is SCRIPTS, to run general scripts.
  98. # SCRIPT_MODE SCRIPTS # SCRIPTS HEYUHELPER
  99. # (With the choice 'HEYUHELPER', a script named 'heyuhelper' on
  100. # the user's path is run every time any X10 signal is received
  101. # by heyu over the power line, assuming the heyu state engine
  102. # daemon is running.)
  103. ### The following directives apply when a schedule is ###
  104. ### is uploaded to the CM11A interface. ###
  105. # The file name of the user's X10 schedule file in the Heyu base
  106. # directory. The default is 'x10.sched'. If you regularly use
  107. # more than one, list them here and just comment/uncomment as
  108. # appropriate, e.g.,
  109. # SCHEDULE_FILE x10.sched
  110. # # SCHEDULE_FILE normal.sched
  111. # # SCHEDULE_FILE vacation.sched
  112. # The MODE directive - Heyu's two modes of operation:
  113. # In the default COMPATIBLE mode, the schedule uploaded to the
  114. # interface is configured to begin on Jan 1st of the current
  115. # year and # is valid for 366 days - through Dec 31st of the
  116. # current # year or Jan 1st of the following year, depending
  117. # whether # the current year is a leap or common year.
  118. # COMPATIBLE mode is the default.
  119. #
  120. # In HEYU mode the schedule uploaded to the interface is
  121. # configured to begin on today's date and is valid for
  122. # the number days of provided by the PROGRAM_DAYS directive.
  123. # WARNING: The mere execution of X10's ActiveHome(tm) program
  124. # under MS-Windows, or having its resident driver running, when
  125. # the interface has been programmed by Heyu in HEYU mode can
  126. # cause problems. See 'man x10config' for details.
  127. # MODE COMPATIBLE # COMPATIBLE HEYU
  128. # Number of days for which the interface is to be programmed
  129. # when running in HEYU mode. It is ignored in COMPATIBLE mode.
  130. # (A shorter period can yield more accurate values for dawn
  131. # and dusk.) The default is 366 days.
  132. # PROGRAM_DAYS 366 # [number of days 1 to 366]
  133. # Should Heyu combine events having the same date range, time, etc.,
  134. # by concatenating the macros for similar events? The default is YES.
  135. # COMBINE_EVENTS YES # YES NO
  136. # Should Heyu compress uploaded macros by combining unit codes for the same
  137. # housecode and command and eliminating duplicates? E.g.,
  138. # (on A1; on B2; on A3, on B2) ==> (on A1,3; on B2)
  139. # The default is NO
  140. # COMPRESS_MACROS NO # YES NO
  141. # The user's Longitude and Latitude, needed for dawn/dusk calculations.
  142. # There are no defaults. Don't use these examples - put in values
  143. # for your own location.
  144. # LONGITUDE W079:49 # [degrees:minutes East or West of Greenwich]
  145. # LATITUDE N36:04 # [degrees:minutes North or South of equator]
  146. # For dawn/dusk related times, Heyu breaks up the schedule date intervals
  147. # into subintervals, each with a constant value of dawn or dusk time.
  148. # These directives instruct Heyu what value of dawn/dusk time to use.
  149. # The default value is FIRST, i.e., that on the first day of the subinterval,
  150. # which is most convenient for comparing Heyu's computations with actual.
  151. # DAWN_OPTION FIRST # FIRST EARLIEST LATEST AVERAGE MEDIAN
  152. # DUSK_OPTION FIRST # FIRST EARLIEST LATEST AVERAGE MEDIAN
  153. # The following times allow bounds to be placed on the times of Dawn
  154. # and Dusk computed by Heyu. For example, setting the value for
  155. # MIN_DAWN to 06:30 will ensure that an event scheduled to be
  156. # executed at Dawn will occur at 06:30 during summer hours whenever
  157. # the actual computed value of Dawn is earlier than that time.
  158. # The value for these directives are specified as hh:mm Legal
  159. # (i.e., wall-clock) time, or the directives may be disabled with
  160. # the word OFF, which is the default.
  161. #
  162. # Timer options DAWNLT, DAWNGT, DUSKLT, DUSKGT used in the Heyu
  163. # schedule file will usually eliminate the need for these directives.
  164. # See man page x10sched(5) for details.
  165. # MIN_DAWN OFF # OFF or [hours:minutes 00:00-23:59]
  166. # MAX_DAWN OFF # OFF or [hours:minutes 00:00-23:59]
  167. # MIN_DUSK OFF # OFF or [hours:minutes 00:00-23:59]
  168. # MAX_DUSK OFF # OFF or [hours:minutes 00:00-23:59]
  169. # Directory to write reports and files other than the critical files
  170. # The default is to write them in the Heyu base directory.
  171. # REPORT_PATH ./ # [127 characters max.]
  172. # Replace events having delayed macros with new events and new
  173. # undelayed macros when possible. (The purpose is to avoid pending
  174. # delayed macros, which are purged when a new schedule is uploaded.)
  175. # The default is YES.
  176. # REPL_DELAYED_MACROS YES # YES NO
  177. # For test purposes, Heyu can write some additional files when
  178. # the command 'heyu upload check' is executed. This directive
  179. # instructs Heyu to write these files. The default is NO.
  180. # WRITE_CHECK_FILES NO # YES NO
  181. # Needed to work with domus.Link
  182. #START_ENGINE AUTO