joshjcarrier / homeassistant-litter-robot

The litter-robot component offers integration with the Litter-Robot WiFi enabled devices to Home Assistant.
82 stars 15 forks source link

feat(services): Sleep mode can be enabled/disabled by service commands. #29

Closed joshjcarrier closed 4 years ago

joshjcarrier commented 4 years ago

Completes #27

Sending the litter_robot.sleep_enable a payload of the following from the Developer Tools/Services tab enables the 8 hour sleep mode at the current time.

{
  "h": 0,
  "min": 0,
  "s": 0
}

This payload sets it to just be finished, so it will enter sleep mode again in 16 hours.

{
  "h": 8,
  "min": 0,
  "s": 0
}

The service litter_robot.sleep_disable turns off sleep mode regardless of the set time.