Module: TpLinkSmartplug::Command

Defined in:
lib/tp_link_smartplug/command.rb

Overview

Module containing the static commands for the plug

Constant Summary collapse

INFO =

Plug information command

'{"system":{"get_sysinfo":{}}}'.freeze
ON =

Plug output on command

'{"system":{"set_relay_state":{"state":1}}}'.freeze
OFF =

Plug output off command

'{"system":{"set_relay_state":{"state":0}}}'.freeze
CLOUDINFO =

Plug cloud info command

'{"cnCloud":{"get_info":{}}}'.freeze
WLANSCAN =

Plug WLAN SSID scan command

'{"netif":{"get_scaninfo":{"refresh":0}}}'.freeze
TIME =

Plug time command

'{"time":{"get_time":{}}}'.freeze
TIMEZONE =

Plug timezone command

'{"time":{"get_timezone":{}}}'.freeze
SCHEDULE =

Plug schedule command

'{"schedule":{"get_rules":{}}}'.freeze
COUNTDOWN =

Plug countdown command

'{"count_down":{"get_rules":{}}}'.freeze
ANTITHEFT =

Plug antitheft command

'{"anti_theft":{"get_rules":{}}}'.freeze
REBOOT =

Plug reboot command

'{"system":{"reboot":{"delay":1}}}'.freeze
RESET =

Plug reset command

'{"system":{"reset":{"delay":1}}}'.freeze
ENERGY =

Plug energy command

'{"emeter":{"get_realtime":{}}}'.freeze
ENERGYGAINS =

Plug energy VGain/IGain settings

'{"emeter":{"get_vgain_igain":{}}}'.freeze
LEDON =

Plug LED On

'{"system":{"set_led_off":{"off":0}}}'.freeze
LEDOFF =

Plug LED Off

'{"system":{"set_led_off":{"off":1}}}'.freeze