<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_cache_value(self, name, value):
 """Set a variable in the local 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 drom Vera. """

        dev_info = self.json_state.get('deviceInfo')
        if dev_info.get(name.lower()) is None:
            logger.error("Could not set %s for %s (key does not exist).",
                      name, self.name)
            logger.error("- dictionary %s", dev_info)
            return
        dev_info[name.lower()] = str(value)