Class: Kasa::Dimmable
- Inherits:
-
NonDimmable
- Object
- Device
- NonDimmable
- Kasa::Dimmable
- Defined in:
- lib/kasa/devices.rb
Overview
add dimmable device
Constant Summary
Constants inherited from Device
Kasa::Device::OFF, Kasa::Device::ON
Instance Attribute Summary
Attributes inherited from Device
#alias, #dev_name, #ip, #mac, #model
Instance Method Summary collapse
-
#brightness ⇒ Object
Get brightness.
-
#brightness=(level) ⇒ Object
Set brightness.
Methods inherited from Device
#initialize, #off, #off?, #on, #on?, #sysinfo
Constructor Details
This class inherits a constructor from Kasa::Device
Instance Method Details
#brightness ⇒ Object
Get brightness
68 69 70 |
# File 'lib/kasa/devices.rb', line 68 def brightness sysinfo['brightness'] end |