Module: MiOS::Services::HaDevice1
- Defined in:
- lib/mios/services/ha_device1.rb
Constant Summary collapse
- URN =
'urn:micasaverde-com:serviceId:HaDevice1'
Instance Method Summary collapse
- #auto_configure ⇒ Object
- #battery_date ⇒ Object
- #battery_level ⇒ Object
- #first_configured ⇒ Object
- #last_update ⇒ Object
Instance Method Details
#auto_configure ⇒ Object
7 8 9 |
# File 'lib/mios/services/ha_device1.rb', line 7 def auto_configure value_for(URN, 'AutoConfigure', as: Boolean) end |
#battery_date ⇒ Object
11 12 13 |
# File 'lib/mios/services/ha_device1.rb', line 11 def battery_date value_for(URN, 'BatteryDate', as: Time) end |
#battery_level ⇒ Object
15 16 17 |
# File 'lib/mios/services/ha_device1.rb', line 15 def battery_level value_for(URN, 'BatteryLevel', as: Integer) end |
#first_configured ⇒ Object
19 20 21 |
# File 'lib/mios/services/ha_device1.rb', line 19 def first_configured value_for(URN, 'FirstConfigured', as: Time) end |
#last_update ⇒ Object
23 24 25 |
# File 'lib/mios/services/ha_device1.rb', line 23 def last_update value_for(URN, 'LastUpdate', as: Time) end |