'Handle a SCSGate message related with this switch.'

def process_event(self, message):

    from scsgate.messages import StateMessage, ScenarioTriggeredMessage
    if isinstance(message, StateMessage):
        scenario_id = message.bytes[4]
    elif isinstance(message, ScenarioTriggeredMessage):
        scenario_id = message.scenario
    else:
        self._logger.warn('Scenario    switch:    received    unknown    message    %s', message)
        return
    self._hass.bus.fire('scenario_switch_triggered', {ATTR_ENTITY_ID: int(self._scs_id), ATTR_SCENARIO_ID: int(scenario_id, 16)})
