class Optergy::P864

Included Modules

Defined in:

optergy/p864.cr

Constant Summary

NO_MATCH = [] of Interface::Sensor::Detail
TYPES = {"value", "input", "output"}

Class Method Summary

Macro Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Macro Detail

macro check(response) #

[View source]

Instance Method Detail

def analog_input(instance : Int32) #

[View source]
def analog_inputs #

[View source]
def analog_output(instance : Int32) #

[View source]
def analog_outputs #

[View source]
def analog_value(instance : Int32) #

[View source]
def analog_values #

[View source]
def auth_headers #

[View source]
def binary_input(instance : Int32) #

[View source]
def binary_inputs #

[View source]
def binary_output(instance : Int32) #

[View source]
def binary_outputs #

[View source]
def binary_value(instance : Int32) #

[View source]
def binary_values #

[View source]
def configuration #

[View source]
def get_token #

[View source]
def on_load #

[View source]
def on_update #

[View source]
def sensor(mac : String, id : String | Nil = nil) : Interface::Sensor::Detail | Nil #
Description copied from module PlaceOS::Driver::Interface::Sensor

return the specified sensor details


[View source]
def sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil) : Array(Interface::Sensor::Detail) #
Description copied from module PlaceOS::Driver::Interface::Sensor

return an array of sensor details zone_id can be ignored if location is unknown by the sensor provider mac_address can be used to grab data from a single device (basic grouping)


[View source]
def set_input_mode(instance : Int32, mode : String) #

[View source]
def token_expired? #

[View source]
def version #

[View source]
def write_analog_output(instance : Int32, value : Float64, priority : Int32 = 8) #

[View source]
def write_analog_value(instance : Int32, value : Float64, priority : Int32 = 8) #

[View source]
def write_binary_output(instance : Int32, value : Bool, priority : Int32 = 8) #

[View source]
def write_binary_value(instance : Int32, value : Bool, priority : Int32 = 8) #

[View source]