<?xml version="1.0" encoding="windows-1250" standalone="yes"?>
<scada>

  <!-- general settings -->

  <title>myHIQ - demo</title>
  <fullscreen>0</fullscreen>
  <width>1280</width>
  <height>800</height>
  <showhints>0</showhints>
  <closetotray>0</closetotray>

  <imagedir>images\</imagedir>

  <editenable>1</editenable>
  <gridsize>5</gridsize>

  <!-- page navigation -->

  <navigation>
    <enable>0</enable>
  </navigation>

<!-- ======================================================================= -->
<!-- style definitions -->
<!-- ======================================================================= -->

  <style> title
    <name>title</name>
    <font>Arial Rounded MT Bold</font>
    <size>20</size>
    <bold>0</bold>
    <italic>0</italic>
    <color>$555354</color>
    <h-align>center</h-align>
    <v-align>top</v-align>
  </style>

  <style> title 2
    <name>title 2</name>
    <font>Arial Rounded MT Bold</font>
    <size>15</size>
    <bold>0</bold>
    <italic>0</italic>
    <color>$555354</color>
    <h-align>center</h-align>
    <v-align>top</v-align>
  </style>

  <style> hw
    <name>hw</name>
    <font>Arial Rounded MT Bold</font>
    <size>8</size>
    <bold>0</bold>
    <italic>0</italic>
    <color>$000000</color>
    <h-align>center</h-align>
    <v-align>middle</v-align>
  </style>

  <style> button
    <name>button</name>
    <font>Arial Rounded MT Bold</font>
    <size>10</size>
    <bold>0</bold>
    <italic>0</italic>
    <color>$FFFFFF</color>
    <h-align>center</h-align>
    <v-align>middle</v-align>
  </style>

  <style> cmd caption
    <name>cmd caption</name>
    <font>Arial Rounded MT Bold</font>
    <size>20</size>
    <bold>0</bold>
    <italic>0</italic>
    <color>$4d4d4d</color>
    <h-align>left</h-align>
    <v-align>top</v-align>
  </style>

  <style> tag
    <name>tag</name>
    <font>Arial Rounded MT Bold</font>
    <size>20</size>
    <bold>0</bold>
    <italic>0</italic>
    <color>$03a3e1</color>
    <h-align>center</h-align>
    <v-align>middle</v-align>
  </style>

  <style> checkbox
    <name>checkbox</name>
    <font>Arial Rounded MT Bold</font>
    <size>9</size>
    <bold>0</bold>
    <italic>0</italic>
    <color>$9F9F9F</color>
    <h-align>right</h-align>
    <v-align>middle</v-align>
  </style>

  <style> nametag
    <name>nametag</name>
    <font>Arial Rounded MT Bold</font>
    <size>9</size>
    <bold>0</bold>
    <italic>0</italic>
    <color>$4d4d4d</color>
    <h-align>center</h-align>
    <v-align>below</v-align>
  </style>

  <style> smalltext
    <name>smalltext</name>
    <font>Arial Rounded MT Bold</font>
    <size>9</size>
    <bold>0</bold>
    <italic>0</italic>
    <color>$4d4d4d</color>
    <h-align>left</h-align>
    <v-align>above</v-align>
  </style>

<!-- ======================================================================= -->
<!-- TEMPLATES -->
<!-- ======================================================================= -->
  
  <template> title
    <name>title</name>   
    <object>
      <type>bitmap</type>   
      <file>bg.png</file>
      <lock>1</lock>
      <x>0</x>
      <y>0</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>hiq logo.png</file>
      <x>7</x>
      <y>0</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.rtc_date</var>
        <digits>2</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <text>.</text>
      <decimal>     
        <var>c17466.rtc_month</var>
        <digits>2</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <text>.</text>
      <decimal>     
        <var>c17466.rtc_year</var>
        <digits>4</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <text>  </text>
      <decimal>     
        <var>c17466.rtc_hour</var>
        <digits>2</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <text>:</text>
      <decimal>     
        <var>c17466.rtc_min</var>
        <digits>2</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <style>cmd caption</style>   
      <x>10</x>
      <y>760</y>
    </object>
  </template>
  
  <template> main menu
    <name>main menu</name>
    <object>
      <type>bitmap</type>   
      <file>menu home mmm.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>home</value>
        </action>
      </shortpress>
      <x>0</x>
      <y>50</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>menu light lll.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>lights fff 0</value>
        </action>
      </shortpress>
      <x>0</x>
      <y>150</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>menu temperature ttt.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>hvac fff 0</value>
        </action>
      </shortpress>
      <x>0</x>
      <y>250</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>menu energy eee.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>energy</value>
        </action>
      </shortpress>
      <x>0</x>
      <y>350</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>menu timetable tit.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>ttn</value>
        </action>
      </shortpress>
      <x>0</x>
      <y>550</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>menu settings sss.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>ssn</value>
        </action>
      </shortpress>
      <x>0</x>
      <y>650</y>
    </object>
  </template>

  <template> lights g
    <name>lights g</name>      
    <object>
      <type>bitmap</type>   
      <file>floor 0.png</file>
      <x>260</x>
      <y>100</y>
    </object>
    <!-- LIGHTS -->
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx00</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>460</x>
      <y>645</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx01</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>330</x>
      <y>645</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx02</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>325</x>
      <y>525</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx03</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>456</x>
      <y>511</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx03</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>521</x>
      <y>511</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx04</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>320</x>
      <y>435</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx05</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>275</x>
      <y>355</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx06</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>345</x>
      <y>290</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx07</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>515</x>
      <y>400</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx07</var>      
      <file>light m 0.png</file>
      <file>light m 1.png</file>
      <x>535</x>
      <y>360</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx08</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>510</x>
      <y>180</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx08</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>510</x>
      <y>270</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx09</var>      
      <file>light 0.png</file>
      <file>light 1.png</file>
      <x>345</x>
      <y>135</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.ld00_qx00</var>      
      <file>light l 0.png</file>
      <file>light l 1.png</file>
      <x>275</x>
      <y>229</y>
    </object>
    <!-- BLINDS -->
    <object>
      <type>bargraph</type>  
      <direction>vertical</direction>
      <reverse>1</reverse>    
      <var>c17466.bc00_blinds_position_00</var>
      <min>0</min>            
      <max>100</max>       
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>30</width>
      <height>45</height>
      <x>499</x>
      <y>545</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>blinds bg.png</file>
      <x>498</x>
      <y>544</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs00_up</var>      
      <file>blinds empty.png</file>
      <file>blinds up.png</file>
      <x>498</x>
      <y>544</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs00_dn</var>      
      <file>blinds empty.png</file>
      <file>blinds dn.png</file>
      <x>498</x>
      <y>544</y>
    </object>
    <object>
      <type>bargraph</type>  
      <direction>vertical</direction>
      <reverse>1</reverse>    
      <var>c17466.bc00_blinds_position_01</var>
      <min>0</min>            
      <max>100</max>       
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>30</width>
      <height>45</height>
      <x>569</x>
      <y>490</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>blinds bg.png</file>
      <x>568</x>
      <y>489</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs01_up</var>      
      <file>blinds empty.png</file>
      <file>blinds up.png</file>
      <x>568</x>
      <y>489</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs01_dn</var>      
      <file>blinds empty.png</file>
      <file>blinds dn.png</file>
      <x>568</x>
      <y>489</y>
    </object>
    <object>
      <type>bargraph</type>  
      <direction>vertical</direction>
      <reverse>1</reverse>    
      <var>c17466.bc00_blinds_position_02</var>
      <min>0</min>            
      <max>100</max>       
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>30</width>
      <height>45</height>
      <x>444</x>
      <y>140</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>blinds bg.png</file>
      <x>443</x>
      <y>139</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs02_up</var>      
      <file>blinds empty.png</file>
      <file>blinds up.png</file>
      <x>443</x>
      <y>139</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs02_dn</var>      
      <file>blinds empty.png</file>
      <file>blinds dn.png</file>
      <x>443</x>
      <y>139</y>
    </object>
    <object>
      <type>bargraph</type>  
      <direction>vertical</direction>
      <reverse>1</reverse>    
      <var>c17466.bc00_blinds_position_03</var>
      <min>0</min>            
      <max>100</max>       
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>30</width>
      <height>45</height>
      <x>339</x>
      <y>225</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>blinds bg.png</file>
      <x>338</x>
      <y>224</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs03_up</var>      
      <file>blinds empty.png</file>
      <file>blinds up.png</file>
      <x>338</x>
      <y>224</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs03_dn</var>      
      <file>blinds empty.png</file>
      <file>blinds dn.png</file>
      <x>338</x>
      <y>224</y>
    </object>
    <object>
      <type>bargraph</type>  
      <direction>vertical</direction>
      <reverse>1</reverse>    
      <var>c17466.bc00_blinds_position_04</var>
      <min>0</min>            
      <max>100</max>       
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>30</width>
      <height>45</height>
      <x>274</x>
      <y>425</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>blinds bg.png</file>
      <x>273</x>
      <y>424</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs04_up</var>      
      <file>blinds empty.png</file>
      <file>blinds up.png</file>
      <x>273</x>
      <y>424</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs04_dn</var>      
      <file>blinds empty.png</file>
      <file>blinds dn.png</file>
      <x>273</x>
      <y>424</y>
    </object>
    <!-- ROOM BUTTONS -->
    <object>
      <type>button</type> 
      <file>room 1.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>lights g 1</value>
        </action>
      </shortpress>
      <action>
        <type>page</type>
        <value>lights g 1</value>
      </action>
      <x>260</x>
      <y>595</y>
    </object>
    <object>
      <type>button</type> 
      <file>room 2.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>lights g 2</value>
        </action>
      </shortpress>
      <x>260</x>
      <y>395</y>
    </object>
    <object>
      <type>button</type> 
      <file>room 3.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>lights g 3</value>
        </action>
      </shortpress>
      <x>260</x>
      <y>220</y>
    </object>
    <object>
      <type>button</type> 
      <file>room 4.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>lights g 4</value>
        </action>
      </shortpress>
      <x>435</x>
      <y>350</y>
    </object>
    <object>
      <type>button</type> 
      <file>room 5.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>lights g 5</value>
        </action>
      </shortpress>
      <x>435</x>
      <y>100</y>
    </object>
    <object>
      <type>button</type> 
      <file>room 6.png</file>
      <shortpress>           
        <action>
          <type>page</type>
          <value>lights g 6</value>
        </action>
      </shortpress>
      <x>260</x>
      <y>100</y>
    </object>
  </template>
    
  <template> hvac g
    <name>hvac g</name>      
    <object>
      <type>bitmap</type>   
      <file>floor 0.png</file>
      <x>260</x>
      <y>100</y>
    </object>
  </template>
  
  <template> thermostat
    <name>thermostat</name>
  </template>  
  
<!-- ======================================================================= -->
<!-- PAGES -->
<!-- ======================================================================= -->

  <page> home
    <name>home</name> 

    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>1</replace>
      <search>lll</search>
      <replace>0</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>eee</search>
      <replace>0</replace>
      <search>sss</search>
      <replace>0</replace>
      <search>ssn</search>
      <replace>settings home</replace>
      <search>tit</search>
      <replace>2</replace>
      <search>ttn</search>
      <replace></replace>
      <search>fff</search>
      <replace>g</replace>
    </template>

    <object>
      <type>bitmap</type>   
      <file>HIQ robot.png</file>
      <x>190</x>
      <y>155</y>
    </object>

    <object>
      <type>text</type>
      <text>I&apos;m home</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>60</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.presence_indicator</var>      
      <file>button presence 0.png</file>
      <file>button presence 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.presence_indicator</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>50</y>
    </object>

    <object>
      <type>text</type>
      <text>Alarm</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>160</y>
    </object>
    <object>
      <type>bitlist</type>
      <var>c17466.alarm_state</var>
      <file>alarm off.png</file>
      <file>alarm arming.png</file>
      <file>alarm armed.png</file>
      <file>alarm activating.png</file>
      <file>alarm active.png</file>
      <file>alarm expired.png</file>
      <shortpress>           
        <action>
          <type>decimal</type>
          <var>c17466.alarm_code_request</var>
          <min>0</min>
          <max>9999</max>
          <decimals>0</decimals>
        </action>
      </shortpress>
      <x>1180</x>
      <y>150</y>
    </object>
        
    <!-- exit -->
    <object>
      <type>button</type> 
      <file>button close.png</file>
      <shortpress>           
        <action>
          <type>exit</type>  
        </action>
      </shortpress>
      <x>1230</x>
      <y>750</y>
    </object>
    
  </page>

<!-- ======================================================================= -->

  <page>  lights g 0
    <name>lights g 0</name>
    
    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>1</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>eee</search>
      <replace>0</replace>
      <search>sss</search>
      <replace>2</replace>
      <search>ssn</search>
      <replace></replace>
      <search>tit</search>
      <replace>0</replace>
      <search>ttn</search>
      <replace>timetable lights</replace>
      <search>fff</search>
      <replace>g</replace>
    </template>
    
    <template>
      <name>lights g</name>
    </template>

    <object>
      <type>bitlist</type>
      <name>scene 0</name>
      <style>nametag</style>
      <var>c17466.scene_status[0]</var>
      <file>button scene 0.png</file>
      <file>button scene 1.png</file>
      <file>button scene 2.png</file>
      <shortrelease>
        <action>
          <type>write</type>
          <var>c17466.global_scene_request</var>
          <value>0</value>
        </action>
      </shortrelease>
      <longpress>
        <delay>10</delay>
        <action>
          <type>write</type>
          <var>c17466.global_memory_request</var>
          <value>0</value>
        </action>
      </longpress>
      <x>880</x>
      <y>650</y>
    </object>
    <object>
      <type>bitlist</type>
      <name>scene 1</name>
      <style>nametag</style>
      <var>c17466.scene_status[1]</var>
      <file>button scene 0.png</file>
      <file>button scene 1.png</file>
      <file>button scene 2.png</file>
      <shortrelease>
        <action>
          <type>write</type>
          <var>c17466.global_scene_request</var>
          <value>1</value>
        </action>
      </shortrelease>
      <longpress>
        <delay>10</delay>
        <action>
          <type>write</type>
          <var>c17466.global_memory_request</var>
          <value>1</value>
        </action>
      </longpress>
      <x>980</x>
      <y>650</y>
    </object>
    <object>
      <type>bitlist</type>
      <name>scene 2</name>
      <style>nametag</style>
      <var>c17466.scene_status[2]</var>
      <file>button scene 0.png</file>
      <file>button scene 1.png</file>
      <file>button scene 2.png</file>
      <shortrelease>
        <action>
          <type>write</type>
          <var>c17466.global_scene_request</var>
          <value>2</value>
        </action>
      </shortrelease>
      <longpress>
        <delay>10</delay>
        <action>
          <type>write</type>
          <var>c17466.global_memory_request</var>
          <value>2</value>
        </action>
      </longpress>
      <x>1080</x>
      <y>650</y>
    </object>
    <object>
      <type>bitlist</type>
      <name>scene 3</name>
      <style>nametag</style>
      <var>c17466.scene_status[3]</var>
      <file>button scene 0.png</file>
      <file>button scene 1.png</file>
      <file>button scene 2.png</file>
      <shortrelease>
        <action>
          <type>write</type>
          <var>c17466.global_scene_request</var>
          <value>3</value>
        </action>
      </shortrelease>
      <longpress>
        <delay>10</delay>
        <action>
          <type>write</type>
          <var>c17466.global_memory_request</var>
          <value>3</value>
        </action>
      </longpress>
      <x>1180</x>
      <y>650</y>
    </object>
    
  </page>

<!-- ======================================================================= -->

  <page>  lights g 1
    <name>lights g 1</name>
    
    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>1</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>fff</search>
      <replace>g</replace>
      <search>sss</search>
      <replace>2</replace>
      <search>ssn</search>
      <replace></replace>
      <search>tit</search>
      <replace>2</replace>
      <search>ttn</search>
      <replace></replace>
      <search>eee</search>
      <replace>0</replace>
    </template>
    
    <template>
      <name>lights g</name>
      <search>room 1.png</search>
      <replace>room 1 s.png</replace>
      <search>g 1</search>
      <replace>g 0</replace>
    </template>

    <!-- on off light -->
    <object>
      <type>text</type>
      <text>Front door light</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>60</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx00</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.lc00_qx00</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>50</y>
    </object>

    <object>
      <type>text</type>
      <text>Foyer light</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>160</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx01</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.lc00_qx01</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>150</y>
    </object>
    
  </page>

<!-- ======================================================================= -->

  <page>  lights g 2
    <name>lights g 2</name>
    
    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>1</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>fff</search>
      <replace>g</replace>
      <search>sss</search>
      <replace>2</replace>
      <search>ssn</search>
      <replace></replace>
      <search>tit</search>
      <replace>2</replace>
      <search>ttn</search>
      <replace></replace>
      <search>eee</search>
      <replace>0</replace>
    </template>
    
    <template>
      <name>lights g</name>
      <search>room 2.png</search>
      <replace>room 2 s.png</replace>
      <search>g 2</search>
      <replace>g 0</replace>
    </template>

    <!-- on off light -->
    <object>
      <type>text</type>
      <text>Entrance light</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>60</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx02</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.lc00_qx02</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>50</y>
    </object>
    <object>
      <type>text</type>
      <text>Kitchen light</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>160</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx03</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.lc00_qx03</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>150</y>
    </object>
    <object>
      <type>text</type>
      <text>Table light</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>260</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx04</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.lc00_qx04</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>250</y>
    </object>
    <!-- Blinds 00 -->
    <object>
      <type>text</type>
      <text>Kitchen blinds 1</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>360</y>
    </object>
    <object>
      <type>bargraph</type>  
      <direction>vertical</direction>
      <reverse>1</reverse>    
      <var>c17466.bc00_blinds_position_00</var>
      <min>0</min>            
      <max>100</max>       
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>30</width>
      <height>50</height>
      <x>1215</x>
      <y>375</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs00_up</var>      
      <file>button blinds 0.png</file>
      <file>button blinds up.png</file>
      <x>1180</x>
      <y>350</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs00_dn</var>      
      <file>button blinds 0.png</file>
      <file>button blinds dn.png</file>
      <shortpress>          
        <action>
          <type>write</type>  
          <var>c17466.bc00_blinds_setpoint_00</var>
          <value>-1</value>
        </action> 
      </shortpress>
      <x>1180</x>
      <y>350</y>
    </object>
    <object>
      <type>slider</type>  
      <direction>horizontal</direction>
      <reverse>0</reverse>    
      <var>c17466.bc00_blinds_setpoint_00</var>
      <min>0</min>            
      <max>100</max>       
      <step>5</step>         
      <file>slider.png</file> 
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>300</width>
      <height>5</height>
      <x>870</x>
      <y>425</y>
    </object>

    <!-- Blinds 01 -->
    <object>
      <type>text</type>
      <text>Kitchen blinds 2</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>460</y>
    </object>
    <object>
      <type>bargraph</type>  
      <direction>vertical</direction>
      <reverse>1</reverse>    
      <var>c17466.bc00_blinds_position_01</var>
      <min>0</min>            
      <max>100</max>       
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>30</width>
      <height>50</height>
      <x>1215</x>
      <y>475</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs01_up</var>      
      <file>button blinds 0.png</file>
      <file>button blinds up.png</file>
      <x>1180</x>
      <y>450</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs01_dn</var>      
      <file>button blinds 0.png</file>
      <file>button blinds dn.png</file>
      <shortpress>          
        <action>
          <type>write</type>  
          <var>c17466.bc00_blinds_setpoint_01</var>
          <value>-1</value>
        </action> 
      </shortpress>
      <x>1180</x>
      <y>450</y>
    </object>
    <object>
      <type>slider</type>  
      <direction>horizontal</direction>
      <reverse>0</reverse>    
      <var>c17466.bc00_blinds_setpoint_01</var>
      <min>0</min>            
      <max>100</max>       
      <step>5</step>         
      <file>slider.png</file> 
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>300</width>
      <height>5</height>
      <x>870</x>
      <y>525</y>
    </object>

    <!-- Blinds 04 -->
    <object>
      <type>text</type>
      <text>Table blinds</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>560</y>
    </object>
    <object>
      <type>bargraph</type>  
      <direction>vertical</direction>
      <reverse>1</reverse>    
      <var>c17466.bc00_blinds_position_04</var>
      <min>0</min>            
      <max>100</max>       
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>30</width>
      <height>50</height>
      <x>1215</x>
      <y>575</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs04_up</var>      
      <file>button blinds 0.png</file>
      <file>button blinds up.png</file>
      <x>1180</x>
      <y>550</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs04_dn</var>      
      <file>button blinds 0.png</file>
      <file>button blinds dn.png</file>
      <shortpress>          
        <action>
          <type>write</type>  
          <var>c17466.bc00_blinds_setpoint_04</var>
          <value>-1</value>
        </action> 
      </shortpress>
      <x>1180</x>
      <y>550</y>
    </object>
    <object>
      <type>slider</type>  
      <direction>horizontal</direction>
      <reverse>0</reverse>    
      <var>c17466.bc00_blinds_setpoint_04</var>
      <min>0</min>            
      <max>100</max>       
      <step>5</step>         
      <file>slider.png</file> 
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>300</width>
      <height>5</height>
      <x>870</x>
      <y>625</y>
    </object>
  </page>

<!-- ======================================================================= -->

  <page>  lights g 3
    <name>lights g 3</name>
    
    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>1</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>fff</search>
      <replace>g</replace>
      <search>sss</search>
      <replace>2</replace>
      <search>ssn</search>
      <replace></replace>
      <search>tit</search>
      <replace>2</replace>
      <search>ttn</search>
      <replace></replace>
      <search>eee</search>
      <replace>0</replace>
    </template>
    
    <template>
      <name>lights g</name>
      <search>room 3.png</search>
      <replace>room 3 s.png</replace>
      <search>g 3</search>
      <replace>g 0</replace>
    </template>

    <!-- on off light -->
    <object>
      <type>text</type>
      <text>Ceiling light</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>60</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx06</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.lc00_qx06</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>50</y>
    </object>
    <object>
      <type>text</type>
      <text>Reading light</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>160</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx05</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.lc00_qx05</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>150</y>
    </object>

    <object>
      <type>bitmap</type>   
      <file>rgb bg.png</file>
      <x>760</x>
      <y>250</y>
    </object>
    <object>
      <type>text</type>
      <text>LED RGBW stripe</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>260</y>
    </object>
    <object>
      <type>bitmap</type>
      <name>brightness</name>
      <style>nametag</style>
      <file>stripe brightness.png</file>
      <x>870</x>
      <y>325</y>
    </object>
    <object>
      <type>slider</type>
      <direction>horizontal</direction>
      <var>c17466.ld00_qw00</var>
      <min>0</min>
      <max>100</max>
      <step>5</step>         
      <file>slider.png</file>
      <barcolor></barcolor>
      <background></background>
      <width>300</width>
      <height>5</height>
      <x>870</x>
      <y>325</y>
    </object>
    <object>
      <type>bitlist</type>
      <var>c17466.ld00_color_wheel</var>
      <file>stripe hue rgbw.png</file>
      <file>stripe hue wwcw.png</file>
      <x>870</x>
      <y>375</y>
    </object>
    <object>
      <type>text</type>
      <style>nametag</style>
      <textlist>
        <var>c17466.ld00_color_wheel</var>
        <text>hue</text>
        <text>temperature</text>
      </textlist>
      <x>987</x>
      <y>384</y>
    </object>
    <object>
      <type>slider</type>
      <direction>horizontal</direction>
      <var>c17466.ld00_qw01</var>
      <min>0</min>
      <max>100</max>
      <step>5</step>         
      <file>slider.png</file>
      <barcolor></barcolor>
      <background></background>
      <width>300</width>
      <height>5</height>
      <x>870</x>
      <y>375</y>
    </object>
    <object>
      <type>bitmap</type>
      <name>saturation</name>
      <style>nametag</style>
      <file>stripe saturation.png</file>
      <x>870</x>
      <y>425</y>
    </object>
    <object>
      <type>slider</type>
      <direction>horizontal</direction>
      <var>c17466.ld00_qw02</var>
      <min>0</min>
      <max>100</max>
      <step>5</step>         
      <file>slider.png</file>
      <barcolor></barcolor>
      <background></background>
      <width>300</width>
      <height>5</height>
      <x>870</x>
      <y>425</y>
    </object>
    <object>
      <type>bitlist</type>
      <var>c17466.evo_light_enable</var>
      <file>blank.png</file>
      <file>stripe cover.png</file>
      <x>850</x>
      <y>360</y>
    </object>
    <object>
      <type>bitlist</type>
      <var>c17466.evo_light_enable</var>
      <file>blank.png</file>
      <file>stripe cover.png</file>
      <x>850</x>
      <y>405</y>
    </object>
    <object>
      <type>bitlist</type>
      <var>c17466.color_cycling_enable</var>
      <file>blank.png</file>
      <file>stripe cover.png</file>
      <x>845</x>
      <y>365</y>
    </object>
    <object>
      <type>bitlist</type>
      <var>c17466.ld00_rgb_mode</var>
      <file>page cover.png</file>
      <file>blank.png</file>
      <x>20</x>
      <y>90</y>
    </object>
    
    <object>
      <type>bitmap</type>   
      <file>rgb rgb.png</file>
      <shortpress>           
        <action>
          <type>write</type>  
          <var>c17466.ld00_color_wheel</var>
          <value>0</value>
        </action>
        <action>
          <type>write</type>
          <var>c17466.ld00_config_req</var>
          <value>1</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.evo_light_enable</var>
          <value>0</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.color_cycling_enable</var>
          <value>1</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.ld00_qw02</var>
          <value>100</value>
        </action>
      </shortpress>
      <x>1180</x>
      <y>349</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.ld00_color_wheel</var>      
      <file>blank.png</file>
      <file>rgb temperature.png</file>
      <shortpress>           
        <action>
          <type>write</type>  
          <var>c17466.ld00_color_wheel</var>
          <value>0</value>
        </action>
        <action>
          <type>write</type>
          <var>c17466.ld00_config_req</var>
          <value>1</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.evo_light_enable</var>
          <value>0</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.color_cycling_enable</var>
          <value>0</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.ld00_qw02</var>
          <value>100</value>
        </action>
      </shortpress>
      <x>1180</x>
      <y>349</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.color_cycling_enable</var>      
      <file>blank.png</file>
      <file>rgb cycling.png</file>
      <shortpress>           
        <action>
          <type>write</type>  
          <var>c17466.ld00_color_wheel</var>
          <value>1</value>
        </action>
        <action>
          <type>write</type>
          <var>c17466.ld00_config_req</var>
          <value>1</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.evo_light_enable</var>
          <value>1</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.color_cycling_enable</var>
          <value>0</value>
        </action>
      </shortpress>
      <x>1180</x>
      <y>349</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.evo_light_enable</var>      
      <file>blank.png</file>
      <file>rgb evo.png</file>
      <shortpress>           
        <action>
          <type>write</type>  
          <var>c17466.ld00_color_wheel</var>
          <value>1</value>
        </action>
        <action>
          <type>write</type>
          <var>c17466.ld00_config_req</var>
          <value>1</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.evo_light_enable</var>
          <value>0</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.color_cycling_enable</var>
          <value>0</value>
        </action>
        <action>
          <type>write</type>  
          <var>c17466.ld00_qw02</var>
          <value>100</value>
        </action>
      </shortpress>
      <x>1180</x>
      <y>349</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.ld00_qx00</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.ld00_qx00</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>272</y>
    </object>
    

    <!-- Blinds 01 -->
    <object>
      <type>text</type>
      <text>Living blinds</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>460</y>
    </object>
    <object>
      <type>bargraph</type>  
      <direction>vertical</direction>
      <reverse>1</reverse>    
      <var>c17466.bc00_blinds_position_03</var>
      <min>0</min>            
      <max>100</max>       
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>30</width>
      <height>50</height>
      <x>1215</x>
      <y>475</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs03_up</var>      
      <file>button blinds 0.png</file>
      <file>button blinds up.png</file>
      <x>1180</x>
      <y>450</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs03_dn</var>      
      <file>button blinds 0.png</file>
      <file>button blinds dn.png</file>
      <shortpress>          
        <action>
          <type>write</type>  
          <var>c17466.bc00_blinds_setpoint_03</var>
          <value>-1</value>
        </action> 
      </shortpress>
      <x>1180</x>
      <y>450</y>
    </object>
    <object>
      <type>slider</type>  
      <direction>horizontal</direction>
      <reverse>0</reverse>    
      <var>c17466.bc00_blinds_setpoint_03</var>
      <min>0</min>            
      <max>100</max>       
      <step>5</step>         
      <file>slider.png</file> 
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>300</width>
      <height>5</height>
      <x>870</x>
      <y>525</y>
    </object>
  </page>

<!-- ======================================================================= -->

  <page>  lights g 4
    <name>lights g 4</name>
    
    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>1</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>fff</search>
      <replace>g</replace>
      <search>sss</search>
      <replace>2</replace>
      <search>ssn</search>
      <replace></replace>
      <search>tit</search>
      <replace>2</replace>
      <search>ttn</search>
      <replace></replace>
      <search>eee</search>
      <replace>0</replace>
    </template>
    
    <template>
      <name>lights g</name>
      <search>room 4.png</search>
      <replace>room 4 s.png</replace>
      <search>g 4</search>
      <replace>g 0</replace>
    </template>

    <!-- on off light -->
    <object>
      <type>text</type>
      <text>Toilet light</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>60</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx07</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.lc00_qx07</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>50</y>
    </object>
  </page>

<!-- ======================================================================= -->

  <page>  lights g 5
    <name>lights g 5</name>
    
    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>1</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>fff</search>
      <replace>g</replace>
      <search>sss</search>
      <replace>2</replace>
      <search>ssn</search>
      <replace></replace>
      <search>tit</search>
      <replace>2</replace>
      <search>ttn</search>
      <replace></replace>
      <search>eee</search>
      <replace>0</replace>
    </template>
    
    <template>
      <name>lights g</name>
      <search>room 5.png</search>
      <replace>room 5 s.png</replace>
      <search>g 5</search>
      <replace>g 0</replace>
    </template>

    <!-- on off light -->
    <object>
      <type>text</type>
      <text>Bed-room light</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>60</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx08</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.lc00_qx08</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>50</y>
    </object>
    <!-- Blinds 02 -->
    <object>
      <type>text</type>
      <text>Bed-room blinds</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>160</y>
    </object>
    <object>
      <type>bargraph</type>  
      <direction>vertical</direction>
      <reverse>1</reverse>    
      <var>c17466.bc00_blinds_position_02</var>
      <min>0</min>            
      <max>100</max>       
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>30</width>
      <height>50</height>
      <x>1215</x>
      <y>175</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs02_up</var>      
      <file>button blinds 0.png</file>
      <file>button blinds up.png</file>
      <x>1180</x>
      <y>150</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.bc00_qxs02_dn</var>      
      <file>button blinds 0.png</file>
      <file>button blinds dn.png</file>
      <shortpress>          
        <action>
          <type>write</type>  
          <var>c17466.bc00_blinds_setpoint_02</var>
          <value>-1</value>
        </action> 
      </shortpress>
      <x>1180</x>
      <y>150</y>
    </object>
    <object>
      <type>slider</type>  
      <direction>horizontal</direction>
      <reverse>0</reverse>    
      <var>c17466.bc00_blinds_setpoint_02</var>
      <min>0</min>            
      <max>100</max>       
      <step>5</step>         
      <file>slider.png</file> 
      <barcolor>$0380b2</barcolor> 
      <background>$595959</background> 
      <width>300</width>
      <height>5</height>
      <x>870</x>
      <y>225</y>
    </object>
  </page>

<!-- ======================================================================= -->

  <page>  lights g 6
    <name>lights g 6</name>
    
    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>1</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>fff</search>
      <replace>g</replace>
      <search>sss</search>
      <replace>2</replace>
      <search>ssn</search>
      <replace></replace>
      <search>tit</search>
      <replace>2</replace>
      <search>ttn</search>
      <replace></replace>
      <search>eee</search>
      <replace>0</replace>
    </template>
    
    <template>
      <name>lights g</name>
      <search>room 6.png</search>
      <replace>room 6 s.png</replace>
      <search>g 6</search>
      <replace>g 0</replace>
    </template>

    <!-- on off light -->
    <object>
      <type>text</type>
      <text>Balcony light</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>60</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.lc00_qx09</var>      
      <file>button light 0.png</file>
      <file>button light 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.lc00_qx09</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>50</y>
    </object>

  </page>
  
<!-- ======================================================================= -->

  <page>  hvac g 0
    <name>hvac g 0</name>
    
    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>0</replace>
      <search>ttt</search>
      <replace>1</replace>
      <search>eee</search>
      <replace>0</replace>
      <search>sss</search>
      <replace>0</replace>
      <search>ssn</search>
      <replace>settings hvac</replace>
      <search>tit</search>
      <replace>0</replace>
      <search>ttn</search>
      <replace>timetable hvac</replace>
      <search>fff</search>
      <replace>g</replace>
    </template>
    
    <template>
      <name>hvac g</name>
    </template>

    <object>
      <type>bitlist</type>      
      <var>c17466.th00_output</var>      
      <file>th output 0.png</file>
      <file>th output 1.png</file>
      <x>375</x>
      <y>385</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.hvac_mode</var>      
      <file>th off.png</file>
      <file>th heating.png</file>
      <file>th cooling.png</file>
      <x>310</x>
      <y>350</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.th00_active</var>      
      <file>th active 0.png</file>
      <file>th active 1.png</file>
      <x>310</x>
      <y>350</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.th00_setpoint</var>
        <digits>4</digits>
        <decimals>1</decimals>
        <zeroblanking>1</zeroblanking>
      </decimal>
      <style>cmd caption</style>
      <size>18</size>       
      <color>$03a3e1</color> 
      <h-align>center</h-align> 
      <width>50</width>  
      <x>348</x>
      <y>353</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.th00_temperature</var>
        <digits>4</digits>
        <decimals>1</decimals>
        <zeroblanking>1</zeroblanking>
      </decimal>
      <style>cmd caption</style>
      <size>15</size>       
      <color>$595959</color> 
      <h-align>center</h-align> 
      <width>50</width>  
      <x>330</x>
      <y>389</y>
    </object>

    <!-- controls -->
    <object>
      <type>text</type>
      <text>Thermostat active</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>60</y>
    </object>
    <object>
      <type>bitlist</type>      
      <var>c17466.th00_active</var>      
      <file>button 0.png</file>
      <file>button 1.png</file>
      <shortpress>           
        <action>
          <type>toggle</type> 
          <var>c17466.th00_active</var>
        </action>
      </shortpress>
      <x>1180</x>
      <y>50</y>
    </object>

    <object>
      <type>text</type>
      <text>Setpoint</text>
      <style>cmd caption</style>
      <x>770</x>
      <y>160</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.th00_setpoint</var>
        <digits>4</digits>
        <decimals>1</decimals>
        <zeroblanking>1</zeroblanking>
      </decimal>
      <style>cmd caption</style>
      <size>40</size>       
      <color>$03a3e1</color> 
      <h-align>center</h-align> 
      <width>200</width>  
      <x>1065</x>
      <y>168</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>button dec.png</file>
      <shortpress>           
        <action>
          <type>increment</type> 
          <var>c17466.th00_setpoint</var>
          <min>0</min>
          <max>1000</max>
          <step>-5</step>    
        </action>
      </shortpress>
      <x>1055</x>
      <y>150</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>button inc.png</file>
      <shortpress>           
        <action>
          <type>increment</type> 
          <var>c17466.th00_setpoint</var>
          <min>0</min>
          <max>1000</max>
          <step>5</step>    
        </action>
      </shortpress>
      <x>1225</x>
      <y>150</y>
    </object>

  </page>
  
<!-- ======================================================================= -->

  <page> energy
    <name>energy</name> 

    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>0</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>eee</search>
      <replace>1</replace>
      <search>sss</search>
      <replace>2</replace>
      <search>ssn</search>
      <replace></replace>
      <search>tit</search>
      <replace>2</replace>
      <search>ttn</search>
      <replace></replace>
      <search>fff</search>
      <replace>g</replace>
    </template>

    <object>
      <type>bitmap</type>   
      <file>energy bg.png</file>
      <x>100</x>
      <y>50</y>
    </object>

    <!-- power meter -->

    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.power_meter_power</var>
        <digits>5</digits>
        <decimals>0</decimals>
        <zeroblanking>1</zeroblanking>
      </decimal>
      <style>tag</style>
      <width>150</width>  
      <x>145</x>
      <y>90</y>
    </object>
    <object>
      <type>text</type>
      <text>total power [W]</text>
      <style>nametag</style>
      <width>150</width>  
      <x>145</x>
      <y>130</y>
    </object>

    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.power_meter_relative</var>
        <digits>5</digits>
        <decimals>0</decimals>
        <zeroblanking>1</zeroblanking>
      </decimal>
      <style>tag</style>
      <width>150</width>  
      <x>145</x>
      <y>170</y>
    </object>
    <object>
      <type>text</type>
      <text>relative power [W]</text>
      <style>nametag</style>
      <width>150</width>  
      <x>145</x>
      <y>210</y>
    </object>
    <object>
      <type>button</type>
      <file>button reset.png</file>
      <shortrelease>
        <action>
          <type>write</type>
          <var>c17466.power_meter_reset_req</var>
          <value>1</value>
        </action>
      </shortrelease>
      <x>295</x>
      <y>170</y>
    </object>

    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.power_meter_energy</var>
        <digits>6</digits>
        <decimals>0</decimals>
        <zeroblanking>1</zeroblanking>
      </decimal>
      <style>tag</style>
      <width>150</width>  
      <x>370</x>
      <y>90</y>
    </object>
    <object>
      <type>text</type>
      <text>energy total [kWh]</text>
      <style>nametag</style>
      <width>150</width>  
      <x>370</x>
      <y>130</y>
    </object>

    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.power_meter_voltage</var>
        <digits>3</digits>
        <decimals>0</decimals>
        <zeroblanking>1</zeroblanking>
      </decimal>
      <style>tag</style>
      <width>150</width>  
      <x>370</x>
      <y>170</y>
    </object>
    <object>
      <type>text</type>
      <text>voltage [V]</text>
      <style>nametag</style>
      <width>150</width>  
      <x>370</x>
      <y>210</y>
    </object>

    <!-- power timeplot -->

    <object>
      <type>text</type>
      <style>smalltext</style>
      <text>Power consumption [W]</text>
      <x>595</x>
      <y>86</y>
    </object>

    <object>
      <type>timeplot</type>
      <var>c17466.power_meter_power,c17466.power_meter_reference</var>
      <alias>power,relative</alias>
      <span>60min</span>
      <sampletime>2sec</sampletime>
      <min>0</min>
      <max>5000</max>
      <decimals>0</decimals>
      <majorticks>6</majorticks>
      <minorticks>9</minorticks>
      <h-grid>2</h-grid>
      <v-grid>1</v-grid>
      <linemarkers>0,0</linemarkers>
      <linecolor>$03A3E1,$00FFFF</linecolor>
      <gridcolor>$3F3F3F</gridcolor>
      <textcolor>$4D4D4D</textcolor>
      <width>660</width>
      <height>580</height>
      <x>595</x>
      <y>115</y>
    </object>

    <!-- last 24 hours -->

    <object>
      <type>text</type>
      <style>smalltext</style>
      <text>Energy in last 24 hours [kWh]</text>
      <x>165</x>
      <y>281</y>
    </object>

    <object>
      <type>bitmap</type>
      <file>energy y-axis 5.png</file>
      <x>127</x>
      <y>285</y>
    </object>
    <object>
      <type>bitmap</type>
      <file>energy x-axis 24.png</file>
      <x>156</x>
      <y>457</y>
    </object>

    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[23]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>165</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[22]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>180</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[21]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>195</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[20]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>210</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[19]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>225</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[18]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>240</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[17]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>255</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[16]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>270</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[15]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>285</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[14]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>300</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[13]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>315</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[12]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>330</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[11]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>345</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[10]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>360</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[9]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>375</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[8]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>390</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[7]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>405</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[6]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>420</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[5]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>435</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[4]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>450</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[3]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>465</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[2]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>480</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[1]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>495</x>
      <y>310</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_hour[0]</var>
      <min>0</min>
      <max>5</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>15</width>
      <height>140</height>
      <x>510</x>
      <y>310</y>
    </object>

    <!-- last 30 days -->

    <object>
      <type>text</type>
      <style>smalltext</style>
      <text>Energy in last 30 days [kWh]</text>
      <x>165</x>
      <y>501</y>
    </object>

    <object>
      <type>bitmap</type>
      <file>energy y-axis 20.png</file>
      <x>127</x>
      <y>505</y>
    </object>
    <object>
      <type>bitmap</type>
      <file>energy x-axis 30.png</file>
      <x>156</x>
      <y>677</y>
    </object>

    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[29]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>165</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[28]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>177</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[27]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>189</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[26]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>201</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[25]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>213</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[24]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>225</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[23]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>237</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[22]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>249</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[21]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>261</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[20]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>273</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[19]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>285</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[18]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>297</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[17]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>309</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[16]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>321</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[15]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>333</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[14]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>345</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[13]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>357</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[12]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>369</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[11]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>381</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[10]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>393</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[9]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>405</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[8]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>417</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[7]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>429</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[6]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>441</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[5]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>453</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[4]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>465</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[3]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>477</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[2]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>489</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[1]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>501</x>
      <y>530</y>
    </object>
    <object>
      <type>bargraph</type>
      <direction>vertical</direction>
      <var>c17466.energy_consumption_by_day[0]</var>
      <min>0</min>
      <max>20</max>
      <barcolor>$03A3E1</barcolor>
      <background>$1A1A1A</background>
      <width>12</width>
      <height>140</height>
      <x>513</x>
      <y>530</y>
    </object>

  </page>

<!-- ======================================================================= -->

  <page> settings home
    <name>settings home</name> 

    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>2</replace>
      <search>lll</search>
      <replace>0</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>eee</search>
      <replace>0</replace>
      <search>sss</search>
      <replace>1</replace>
      <search>ssn</search>
      <replace>home</replace>
      <search>tit</search>
      <replace>2</replace>
      <search>ttn</search>
      <replace>home</replace>
      <search>fff</search>
      <replace>g</replace>
    </template>

    <object>
      <type>bitmap</type>   
      <file>settings bg.png</file>
      <x>100</x>
      <y>0</y>
    </object>

    <!-- real time clock -->

    <object>
      <type>text</type>
      <style>title 2</style>
      <text>Real-time clock</text>
      <x>210</x>
      <y>140</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.rtc_year</var>
        <digits>4</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <shortpress>
        <action>
          <type>decimal</type>
          <var>c17466.rtc_year</var>
          <min>2000</min>
          <max>2099</max>
        </action>
        <action>
          <type>write</type>
          <var>c17466.rtc_write_req</var>
          <value>1</value>
        </action>
      </shortpress>
      <width>85</width>  
      <style>tag</style>   
      <x>210</x>
      <y>170</y>
    </object>
    <object>
      <type>text</type>
      <style>nametag</style>
      <text>year</text>
      <width>85</width>  
      <x>211</x>
      <y>201</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.rtc_month</var>
        <digits>2</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <shortpress>
        <action>
          <type>decimal</type>
          <var>c17466.rtc_month</var>
          <min>1</min>
          <max>12</max>
        </action>
        <action>
          <type>write</type>
          <var>c17466.rtc_write_req</var>
          <value>1</value>
        </action>
      </shortpress>
      <width>50</width>  
      <style>tag</style>   
      <x>295</x>
      <y>170</y>
    </object>
    <object>
      <type>text</type>
      <style>nametag</style>
      <text>month</text>
      <width>50</width>  
      <x>296</x>
      <y>201</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.rtc_date</var>
        <digits>2</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <shortpress>
        <action>
          <type>decimal</type>
          <var>c17466.rtc_date</var>
          <min>1</min>
          <max>31</max>
        </action>
        <action>
          <type>write</type>
          <var>c17466.rtc_write_req</var>
          <value>1</value>
        </action>
      </shortpress>
      <width>50</width>  
      <style>tag</style>   
      <x>345</x>
      <y>170</y>
    </object>
    <object>
      <type>text</type>
      <style>nametag</style>
      <text>date</text>
      <width>50</width>  
      <x>346</x>
      <y>201</y>
    </object>
    <object>
      <type>text</type>
      <style>tag</style>
      <textlist>
        <var>c17466.rtc_weekday</var>
        <text>sun</text>
        <text>mon</text>
        <text>tue</text>
        <text>wed</text>
        <text>thu</text>
        <text>fri</text>
        <text>sat</text>
      </textlist>
      <shortpress>
        <action>
          <type>combo</type>
          <var>c17466.rtc_weekday</var>
          <value>0</value>
          <value>1</value>
          <value>2</value>
          <value>3</value>
          <value>4</value>
          <value>5</value>
          <value>6</value>
          <text>Sunday</text>
          <text>Monday</text>
          <text>Tuesday</text>
          <text>Wednesday</text>
          <text>Thursday</text>
          <text>Friday</text>
          <text>Saturday</text>
        </action>
        <action>
          <type>write</type>
          <var>c17466.rtc_write_req</var>
          <value>1</value>
        </action>
      </shortpress>
      <width>75</width>  
      <x>395</x>
      <y>170</y>
    </object>
    <object>
      <type>text</type>
      <style>nametag</style>
      <text>weekday</text>
      <width>75</width>  
      <x>396</x>
      <y>201</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.rtc_hour</var>
        <digits>2</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <shortpress>
        <action>
          <type>decimal</type>
          <var>c17466.rtc_hour</var>
          <min>0</min>
          <max>23</max>
        </action>
        <action>
          <type>write</type>
          <var>c17466.rtc_write_req</var>
          <value>1</value>
        </action>
      </shortpress>
      <width>50</width>  
      <style>tag</style>   
      <x>475</x>
      <y>170</y>
    </object>
    <object>
      <type>text</type>
      <style>nametag</style>
      <text>hour</text>
      <width>50</width>  
      <x>476</x>
      <y>201</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.rtc_min</var>
        <digits>2</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <shortpress>
        <action>
          <type>decimal</type>
          <var>c17466.rtc_min</var>
          <min>0</min>
          <max>59</max>
        </action>
        <action>
          <type>write</type>
          <var>c17466.rtc_write_req</var>
          <value>1</value>
        </action>
      </shortpress>
      <width>50</width>  
      <style>tag</style>   
      <x>525</x>
      <y>170</y>
    </object>
    <object>
      <type>text</type>
      <style>nametag</style>
      <text>min</text>
      <width>50</width>  
      <x>526</x>
      <y>201</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.rtc_sec</var>
        <digits>2</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <shortpress>
        <action>
          <type>decimal</type>
          <var>c17466.rtc_sec</var>
          <min>0</min>
          <max>59</max>
        </action>
        <action>
          <type>write</type>
          <var>c17466.rtc_write_req</var>
          <value>1</value>
        </action>
      </shortpress>
      <width>50</width>  
      <style>tag</style>   
      <x>575</x>
      <y>170</y>
    </object>
    <object>
      <type>text</type>
      <style>nametag</style>
      <text>sec</text>
      <width>50</width>  
      <x>576</x>
      <y>201</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.time_zone</var>
        <digits>2</digits>
        <decimals>0</decimals>
        <zeroblanking>0</zeroblanking>
      </decimal>
      <shortpress>
        <action>
          <type>decimal</type>
          <var>c17466.time_zone</var>
          <min>-12</min>
          <max>12</max>
        </action>
      </shortpress>
      <width>80</width>  
      <style>tag</style>   
      <x>640</x>
      <y>170</y>
    </object>
    <object>
      <type>text</type>
      <style>nametag</style>
      <text>time zone</text>
      <width>80</width>  
      <x>641</x>
      <y>201</y>
    </object>

    <!-- alarm code -->

    <object>
      <type>text</type>
      <style>title 2</style>
      <text>Alarm code</text>
      <x>210</x>
      <y>240</y>
    </object>
    <object>
      <type>button</type> 
      <name>code</name>    
      <file>button gray.png</file>
      <shortrelease>   
        <action>
          <type>decimal</type>
          <var>c17466.alarm_code_memory</var>
          <min>1000</min>
          <max>9999</max>
          <decimals>0</decimals>
        </action>   
      </shortrelease>
      <x>210</x>
      <y>270</y>
    </object>


    <!-- autodetect -->

    <object>
      <type>button</type>
      <name>Autodetect</name>
      <style>button</style>
      <file>button gray.png</file>
      <shortrelease>
        <action>
          <type>command</type>
          <command>UtilScript.wsf</command>
          <parameters>/autodetect CyBroMiniScada.xml</parameters>
          <waitforexit>1</waitforexit>
        </action>
      </shortrelease>
      <x>210</x>
      <y>345</y>
    </object>

    <object>
      <type>text</type>
      <style>tag</style>
      <text>c17466 v</text>
      <decimal>
        <var>c17466.version_major</var>
      </decimal>
      <text>.</text>
      <decimal>
        <var>c17466.version_minor</var>
      </decimal>
      <text>.</text>
      <decimal>
        <var>c17466.version_release</var>
      </decimal>
      <width>200</width>
      <h-align>right</h-align> 
      <x>320</x>
      <y>345</y>
    </object>

    <object>
      <type>text</type>
      <style>smalltext</style>
      <text>HIQ Controller serial number and firmware version. </text>
      <text>Command searches local network for HIQ controllers. </text>
      <width>310</width>
      <x>210</x>
      <y>385</y>
    </object>
    
    <!-- save/restore config -->

    <object>
      <type>button</type>
      <name>Backup</name>
      <style>button</style>
      <file>button gray.png</file>
      <shortrelease>
        <action>
          <type>command</type>
          <command>backup.bat</command>
          <parameters></parameters>
          <waitforexit>1</waitforexit>
        </action>
      </shortrelease>
      <x>210</x>
      <y>470</y>
    </object>

    <object>
      <type>button</type>
      <name>Restore</name>
      <style>button</style>
      <file>button gray.png</file>
      <shortrelease>
        <action>
          <type>command</type>
          <command>restore.bat</command>
          <parameters></parameters>
          <waitforexit>1</waitforexit>
        </action>
      </shortrelease>
      <x>320</x>
      <y>470</y>
    </object>

    <object>
      <type>text</type>
      <style>smalltext</style>
      <text>Backup system settings (scene, ready light, hvac setup, timetable, automation, alarm) to file, or restore from saved state. </text>
      <text>Device settings (output timer, input mode, blinds settings) not included. </text>
      <width>250</width>
      <x>210</x>
      <y>510</y>
    </object>
    
    <!-- HW sch -->
    <object>
      <type>text</type>
      <style>title 2</style>
      <text>HW overview</text>
      <x>640</x>
      <y>240</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>hw sch.png</file>
      <x>640</x>
      <y>270</y>
    </object>
    <object>
      <type>bitlist</type>      
      <name>HC</name>    
      <var>c17466.retentive_fail</var>      
      <file>module din l ok.png</file>
      <file>module din l err.png</file>
      <style>hw</style>   
      <x>650</x>
      <y>330</y>
    </object>
    <object>
      <type>bitlist</type>      
      <name>CAD</name>    
      <var>c17466.retentive_fail</var>      
      <file>module din s ok.png</file>
      <file>module din s err.png</file>
      <style>hw</style>   
      <x>710</x>
      <y>330</y>
    </object>
    <object>
      <type>bitlist</type>      
      <name>LC</name>    
      <var>c17466.lc00_general_error</var>      
      <file>module din l ok.png</file>
      <file>module din l err.png</file>
      <style>hw</style>   
      <x>743</x>
      <y>330</y>
    </object>
    <object>
      <type>bitlist</type>      
      <name>BC</name>    
      <var>c17466.bc00_general_error</var>      
      <file>module din l ok.png</file>
      <file>module din l err.png</file>
      <style>hw</style>   
      <x>649</x>
      <y>395</y>
    </object>
    <object>
      <type>bitlist</type>      
      <name>LD</name>    
      <var>c17466.ld00_general_error</var>      
      <file>module field box ok.png</file>
      <file>module field box err.png</file>
      <style>hw</style>   
      <x>739</x>
      <y>405</y>
    </object>
    <object>
      <type>bitlist</type>      
      <name>SC</name>    
      <var>c17466.sc00_general_error</var>      
      <file>module field panel ok.png</file>
      <file>module field panel err.png</file>
      <style>hw</style>   
      <x>757</x>
      <y>275</y>
    </object>
    <object>
      <type>bitlist</type>      
      <name>TH</name>    
      <var>c17466.th00_general_error</var>      
      <file>module field panel ok.png</file>
      <file>module field panel err.png</file>
      <style>hw</style>   
      <x>660</x>
      <y>275</y>
    </object>

    <object>
      <type>statustable</type>
      <font>Calibri</font>
      <size>11</size>
      <bold>0</bold>
      <italic>0</italic>
      <color>$9F9F9F</color>
      <options>$0000</options>
      <x>640</x>
      <y>455</y>
    </object>

  </page>

<!-- ======================================================================= -->

  <page> timetable lights
    <name>timetable lights</name> 

    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>2</replace>
      <search>ttt</search>
      <replace>0</replace>
      <search>eee</search>
      <replace>0</replace>
      <search>sss</search>
      <replace>2</replace>
      <search>ssn</search>
      <replace></replace>
      <search>tit</search>
      <replace>1</replace>
      <search>ttn</search>
      <replace>lights g 0</replace>
      <search>fff</search>
      <replace>g</replace>
    </template>

    <object>
      <type>bitmap</type>   
      <file>timetable bg.png</file>
      <x>100</x>
      <y>50</y>
    </object>

    <object>
      <type>text</type>
      <text>Timetable for front door light</text>
      <style>title</style>   
      <x>125</x>
      <y>70</y>
    </object>

    <!-- timetable 1 -->

    <object>
      <type>bittable</type>
      <var>c17466.timetable_1_array</var>
      <writeenable>1</writeenable>
      <file>timetable 0.png</file>
      <file>timetable 1.png</file>
      <columns>48</columns>
      <rows>7</rows>
      <layout>0</layout>
      <x>236</x>
      <y>142</y>
    </object>

  </page>

<!-- ======================================================================= -->

  <page> settings hvac
    <name>settings hvac</name> 

    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>0</replace>
      <search>ttt</search>
      <replace>2</replace>
      <search>eee</search>
      <replace>0</replace>
      <search>sss</search>
      <replace>1</replace>
      <search>ssn</search>
      <replace>hvac g 0</replace>
      <search>tit</search>
      <replace>0</replace>
      <search>ttn</search>
      <replace>timetable hvac</replace>
      <search>fff</search>
      <replace>g</replace>
    </template>

    <object>
      <type>bitmap</type>   
      <file>settings bg.png</file>
      <x>100</x>
      <y>50</y>
    </object>
    
    <object>
      <type>bitlist</type>      
      <var>c17466.hvac_mode</var>      
      <file>hvac mode 0.png</file>
      <file>hvac mode 1.png</file>
      <file>hvac mode 2.png</file>
      <x>200</x>
      <y>150</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>hvac mode button.png</file>
      <shortpress>           
        <action>
          <type>write</type>  
          <var>c17466.hvac_mode</var>
          <value>0</value>
        </action>
      </shortpress>
      <x>200</x>
      <y>150</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>hvac mode button.png</file>
      <shortpress>           
        <action>
          <type>write</type>  
          <var>c17466.hvac_mode</var>
          <value>1</value>
        </action>
      </shortpress>
      <x>300</x>
      <y>150</y>
    </object>
    <object>
      <type>bitmap</type>   
      <file>hvac mode button.png</file>
      <shortpress>           
        <action>
          <type>write</type>  
          <var>c17466.hvac_mode</var>
          <value>2</value>
        </action>
      </shortpress>
      <x>400</x>
      <y>150</y>
    </object>
    <object>
      <type>text</type>
      <text>hvac mode</text>
      <width>300</width>
      <style>nametag</style>     
      <x>200</x>
      <y>255</y>
    </object>

    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.th00_setpoint_idle</var>
        <digits>4</digits>
        <decimals>1</decimals>
        <zeroblanking>1</zeroblanking>
      </decimal>
      <shortpress>           
        <action>
          <type>decimal</type>
          <var>c17466.th00_setpoint_idle</var>
          <min>0</min>
          <max>1000</max>
          <decimals>1</decimals>
        </action>
        <action>
          <type>write</type>
          <var>c17466.th00_config2_req</var>
          <value>1</value>
        </action>
      </shortpress>
      <width>100</width>
      <style>tag</style>     
      <x>200</x>
      <y>345</y>
    </object>
    <object>
      <type>text</type>
      <text>setpoint  \n idle [°C]</text>
      <width>100</width>
      <style>nametag</style>     
      <x>200</x>
      <y>380</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.th00_setpoint_lo</var>
        <digits>4</digits>
        <decimals>1</decimals>
        <zeroblanking>1</zeroblanking>
      </decimal>
      <shortpress>           
        <action>
          <type>decimal</type>
          <var>c17466.th00_setpoint_lo</var>
          <min>0</min>
          <max>1000</max>
          <decimals>1</decimals>
        </action>
        <action>
          <type>write</type>
          <var>c17466.th00_config2_req</var>
          <value>1</value>
        </action>
      </shortpress>
      <width>100</width>
      <style>tag</style>     
      <x>300</x>
      <y>345</y>
    </object>
    <object>
      <type>text</type>
      <text>setpoint \n lo limit [°C]</text>
      <width>100</width>
      <style>nametag</style>     
      <x>300</x>
      <y>380</y>
    </object>
    <object>
      <type>text</type>
      <decimal>     
        <var>c17466.th00_setpoint_hi</var>
        <digits>4</digits>
        <decimals>1</decimals>
        <zeroblanking>1</zeroblanking>
      </decimal>
      <shortpress>           
        <action>
          <type>decimal</type>
          <var>c17466.th00_setpoint_hi</var>
          <min>0</min>
          <max>1000</max>
          <decimals>1</decimals>
        </action>
        <action>
          <type>write</type>
          <var>c17466.th00_config2_req</var>
          <value>1</value>
        </action>
      </shortpress>
      <width>100</width>
      <style>tag</style>     
      <x>400</x>
      <y>345</y>
    </object>
    <object>
      <type>text</type>
      <text>setpoint \n hi limit [°C]</text>
      <width>100</width>
      <style>nametag</style>     
      <x>400</x>
      <y>380</y>
    </object>
  </page>

<!-- ======================================================================= -->

  <page> timetable hvac
    <name>timetable hvac</name> 

    <template>
      <name>title</name>
    </template>
    
    <template>
      <name>main menu</name>
      <search>mmm</search>
      <replace>0</replace>
      <search>lll</search>
      <replace>0</replace>
      <search>ttt</search>
      <replace>2</replace>
      <search>eee</search>
      <replace>0</replace>
      <search>sss</search>
      <replace>0</replace>
      <search>ssn</search>
      <replace>settings hvac</replace>
      <search>tit</search>
      <replace>1</replace>
      <search>ttn</search>
      <replace>hvac g 0</replace>
      <search>fff</search>
      <replace>g</replace>
    </template>

    <object>
      <type>bitmap</type>   
      <file>timetable bg.png</file>
      <x>100</x>
      <y>50</y>
    </object>

    <object>
      <type>text</type>
      <text>Timetable for thermostat</text>
      <style>title</style>   
      <x>125</x>
      <y>70</y>
    </object>

    <!-- timetable 0 -->

    <object>
      <type>bittable</type>
      <var>c17466.timetable_0_array</var>
      <writeenable>1</writeenable>
      <file>timetable 0.png</file>
      <file>timetable 1.png</file>
      <columns>48</columns>
      <rows>7</rows>
      <layout>0</layout>
      <x>236</x>
      <y>142</y>
    </object>
  </page>

<!-- ======================================================================= -->

</scada>
