(* === DECLARATION === *) TYPE struct_room_cmds : STRUCT // Home Assistant Commands (set/reset) ha_l1_on: BOOL; // HA command: Light 1 ON ha_l1_off: BOOL; // HA command: Light 1 OFF ha_l2_on: BOOL; ha_l2_off: BOOL; ha_l3_on: BOOL; ha_l3_off: BOOL; ha_l4_on: BOOL; ha_l4_off: BOOL; ha_l5_on: BOOL; ha_l5_off: BOOL; ha_l6_on: BOOL; ha_l6_off: BOOL; // Zigbee Switch Inputs (edge detection for toggle) zigbee_sw1: BOOL; // Zigbee switch 1 (edge detected) zigbee_sw2: BOOL; zigbee_sw3: BOOL; zigbee_sw4: BOOL; zigbee_sw5: BOOL; zigbee_sw6: BOOL; // Global Commands ha_all_on: BOOL; // HA: All lights ON ha_all_off: BOOL; // HA: All lights OFF END_STRUCT END_TYPE (* === IMPLEMENTATION === *)