pyg90alarm.event_mapping

Defines mapping of various events.

Functions

map_alert_state(source, state)

Converts alert state of infrared and other sensors to consolidated one.

pyg90alarm.event_mapping.map_alert_state(source, state)

Converts alert state of infrared and other sensors to consolidated one.

Parameters:
  • source (G90AlertSources) – Source of the alert

  • state (int) – State code as received from the panel

Return type:

G90AlertStates

Returns:

Consolidated alert state