OpenHAP::Characteristic(3p) Perl Library Manual OpenHAP::Characteristic(3p)

OpenHAP::Characteristic - HAP characteristic definitions

    use OpenHAP::Characteristic;
    my $char = OpenHAP::Characteristic->new(
        type => 'CurrentTemperature',
        iid => 13,
        format => 'float',
        perms => ['pr', 'ev'],
        value => 21.5,
        unit => 'celsius',
    );
    my $value = $char->get_value();
    $char->set_value(22.0);

This module represents HAP characteristics with their properties, values, and permissions.

spec/HAP-Characteristics.md

2026-07-27 OpenBSD