I am trying to log an event and assign a template id once a string is found. I am modifying existing code, but I can not figure it out. Right now it assigns all devices to template 4, but I only want to assign 0x6B to template 4. Below is the code.
when 0x05 # Climate Control
when 0x00; @work += 'Broan SMSC080 Exhaust Fan'
when 0x01; @work += 'Simplehomenet EZTherm'
when 0x02; @work += 'Broan SMSC110 Exhaust Fan'
when 0x03; @work += 'Venstar RF Thermostat Module'
when 0x04; @work += 'Simplehomenet EZStat Thermostat'
when 0x6B; @work += 'Venstar RF Thermostat Module'
@work += "\t\t4" # Set Template 4