Index: dialin/hd/alarms.py =================================================================== diff -u -r363867c876456821000c189f86fbb55b4d583c50 -rb2598badc6854e9e78a551a09120c88227bc0059 --- dialin/hd/alarms.py (.../alarms.py) (revision 363867c876456821000c189f86fbb55b4d583c50) +++ dialin/hd/alarms.py (.../alarms.py) (revision b2598badc6854e9e78a551a09120c88227bc0059) @@ -153,14 +153,6 @@ """ return self.alarms_flags - def get_alarm_ids(self): - """ - Returns a dictionary of the alarm short name and the corresponding id - - @return: OrderedDict of the alarm ids - """ - return self.ids - @_publish(["alarms_state", "alarm_top", "alarms_silence_expires_in", "alarms_escalates_in", "alarms_flags"]) def _handler_alarms_status_sync(self, message): """ Index: dialin/ui/hd_simulator_alarms.py =================================================================== diff -u -rf7cd7cb24f34bc40f718ecd8824c600ee1565134 -rb2598badc6854e9e78a551a09120c88227bc0059 --- dialin/ui/hd_simulator_alarms.py (.../hd_simulator_alarms.py) (revision f7cd7cb24f34bc40f718ecd8824c600ee1565134) +++ dialin/ui/hd_simulator_alarms.py (.../hd_simulator_alarms.py) (revision b2598badc6854e9e78a551a09120c88227bc0059) @@ -286,6 +286,26 @@ self.can_interface.send(message, 0) + def cmd_set_alarm_cleared_condition(self, alarm_id: int = 0): + """ + Broadcasts that the alarm condition has been cleared + + the Alarm Cleared message builder method + | MSG | CAN ID | Box | Type | Ack | Src | Dst | Description | #1:(U32) | + |:----:|:---------:|:---:|:------:|:---:|:---:|:---:|:---------------------: |:--: | + |0x3F00| 0x001,2,4 | 1 | Event | Y | HD | All | Alarm Condition Cleared | \ref Data::mAlarmID | + + @return: None + """ + + payload = integer_to_bytearray(alarm_id) + + message = DenaliMessage.build_message(channel_id=DenaliChannels.hd_alarm_broadcast_ch_id, + message_id=MsgIds.MSG_ID_ALARM_CONDITION_CLEARED.value, + payload=payload) + + self.can_interface.send(message, 0) + def cmd_set_alarm_triggered(self, alarm_id): """ Triggers an alarm.