miio.gateway.alarm module¶
Xiaomi Gateway Alarm implementation.
- class miio.gateway.alarm.Alarm(parent: Gateway = None)[source]¶
Bases:
miio.gateway.gatewaydevice.GatewayDevice
Class representing the Xiaomi Gateway Alarm.
- arming_time() int [source]¶
Return time in seconds the alarm stays ‘oning’ before transitioning to ‘on’.
- last_status_change_time() datetime.datetime [source]¶
Return the last time the alarm changed status.
- set_triggering_light(seconds)[source]¶
Set the time the gateway light blinks when the alarm is triggerd.
- set_triggering_time(seconds)[source]¶
Set the time in seconds the alarm is going off when triggered.