Bricks API
The Bricks API is fully documented and open to everyone. If you are a software dev, this section will help you to turn your hardware into a "Brick" and interact with our software.
IOT endpoint
The sensor / actory key ( sakey ) has follow the following schema ($x_$y_$z_$i):
    $x all fields are prefixed with a (actor) or s (sensor)
    $y datatype of the sensor / actor. currently supported are bool and number
    $z the physical meaning, e.g. temp, wort for sensors. or epower, pressure for actors.
    $i index on the device, starts with 0. This allows enumeration if multiple interfaces are of the same type. The index needs to be incremented for all groups of $x and $z (the datatype is not relevant).
    Device 1:
      s_number_temp_0: first sensor sending a temperature number.
      s_number_temp_1: second sensor sending a temperature number.
      a_number_epower_0: This a PWM actor.
      a_bool_epower_1: note, how index is incremented, despite the change of $z.
Last modified 3mo ago
Copy link