SwitchBot Information Object

class switchbot_api.bot_information.BotInformation(get_info_byte_array: Optional[bytearray] = None)[source]
read_service_bytes(service_bytes: bytearray) None[source]

Update object from service bytes (either from advertisement or Get Information)

Parameters

service_bytes (bytearray) – Service byte array

update_alarm(response_data: bytearray)[source]

Update alarm info from fetch alarm info request

Parameters

response_data (bytearray) – response bytes