code: def set_value_alarm_ts(self, value, alarm, ts):
          
          # type: (Any, Alarm, TimeStamp) -> None
          with self.notifier.changes_squashed:
              # Assume they are of the right format
              self.value = value
              self.notifier.add_squashed_change(self.path + ["value"], value)
              if alarm is not self.alarm:
                  self.alarm = alarm
                  self.notifier.add_squashed_change(self.path + ["alarm"], alarm)
              self.timeStamp = ts
              self.notifier.add_squashed_change(self.path + ["timeStamp"], ts)
docs: Set value with pre-validated alarm and timeStamp