Class: MQTT::Homie::Device::Statistics
- Inherits:
-
HomieObject
- Object
- HomieObject
- MQTT::Homie::Device::Statistics
- Defined in:
- lib/mqtt/homie/device.rb
Overview
statistics should be sent every interval seconds homie/device_id/$stats
Instance Method Summary collapse
Methods inherited from HomieObject
Methods included from HomieAttribute
Constructor Details
This class inherits a constructor from MQTT::Homie::HomieObject
Instance Method Details
#homie_attributes ⇒ Object
46 47 48 |
# File 'lib/mqtt/homie/device.rb', line 46 def homie_attributes super.merge("uptime" => (Time.now - @boot_time).to_i) end |