def set_cache_complex_value(self, name, value):
for item in self.json_state.get('<STR_LIT>'):<EOL><INDENT>if item.get('<STR_LIT>') == name:<EOL><INDENT>item['<STR_LIT:value>'] = str(value)<EOL><DEDENT><DEDENT>
Set a variable in the local complex state dictionary.

        This does not change the physical device. Useful if you want the
        device state to refect a new value which has not yet updated from
        Vera.