init home-assistant
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"""Tests for homekit_controller component."""
|
||||
406
home-assistant/tests/components/homekit_controller/common.py
Normal file
406
home-assistant/tests/components/homekit_controller/common.py
Normal file
@@ -0,0 +1,406 @@
|
||||
"""Code to support homekit_controller tests."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
import os
|
||||
from typing import Any, Final
|
||||
from unittest import mock
|
||||
|
||||
from aiohomekit.controller.abstract import AbstractDescription, AbstractPairing
|
||||
from aiohomekit.hkjson import loads as hkloads
|
||||
from aiohomekit.model import Accessories, AccessoriesState, Accessory
|
||||
from aiohomekit.model.services import Service
|
||||
from aiohomekit.testing import FakeController, FakePairing
|
||||
|
||||
from homeassistant.components.device_automation import DeviceAutomationType
|
||||
from homeassistant.components.homekit_controller.const import (
|
||||
CONTROLLER,
|
||||
DEBOUNCE_COOLDOWN,
|
||||
DOMAIN,
|
||||
HOMEKIT_ACCESSORY_DISPATCH,
|
||||
IDENTIFIER_ACCESSORY_ID,
|
||||
SUBSCRIBE_COOLDOWN,
|
||||
)
|
||||
from homeassistant.components.homekit_controller.utils import async_get_controller
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import EntityCategory
|
||||
from homeassistant.core import HomeAssistant, State, callback
|
||||
from homeassistant.helpers import device_registry as dr, entity_registry as er
|
||||
from homeassistant.helpers.service_info.bluetooth import BluetoothServiceInfo
|
||||
from homeassistant.setup import async_setup_component
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
async_fire_time_changed,
|
||||
async_get_device_automations,
|
||||
load_fixture,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
# Root device in test harness always has an accessory id of this
|
||||
HUB_TEST_ACCESSORY_ID: Final[str] = "00:00:00:00:00:00:aid:1"
|
||||
|
||||
TEST_ACCESSORY_ADDRESS = "AA:BB:CC:DD:EE:FF"
|
||||
|
||||
|
||||
TEST_DEVICE_SERVICE_INFO = BluetoothServiceInfo(
|
||||
name="test_accessory",
|
||||
address=TEST_ACCESSORY_ADDRESS,
|
||||
rssi=-56,
|
||||
manufacturer_data={},
|
||||
service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"],
|
||||
service_data={},
|
||||
source="local",
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
class EntityTestInfo:
|
||||
"""Describes how we expected an entity to be created by homekit_controller."""
|
||||
|
||||
entity_id: str
|
||||
unique_id: str
|
||||
friendly_name: str
|
||||
state: str
|
||||
supported_features: int = 0
|
||||
capabilities: dict[str, Any] | None = None
|
||||
entity_category: EntityCategory | None = None
|
||||
unit_of_measurement: str | None = None
|
||||
|
||||
|
||||
@dataclass
|
||||
class DeviceTriggerInfo:
|
||||
"""Describe a automation trigger we expect to be created.
|
||||
|
||||
We only use these for a stateless characteristic like a doorbell.
|
||||
"""
|
||||
|
||||
type: str
|
||||
subtype: str
|
||||
|
||||
|
||||
@dataclass
|
||||
class DeviceTestInfo:
|
||||
"""Describes how we exepced a device to be created by homekit_controlller."""
|
||||
|
||||
name: str
|
||||
manufacturer: str
|
||||
model: str
|
||||
sw_version: str
|
||||
hw_version: str
|
||||
|
||||
devices: list[DeviceTestInfo]
|
||||
entities: list[EntityTestInfo]
|
||||
|
||||
# At least one of these must be provided
|
||||
unique_id: str | None = None
|
||||
serial_number: str | None = None
|
||||
|
||||
# A homekit device can have events but no entity (like a doorbell or remote)
|
||||
stateless_triggers: list[DeviceTriggerInfo] | None = None
|
||||
|
||||
|
||||
class Helper:
|
||||
"""Helper methods for interacting with HomeKit fakes."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
hass: HomeAssistant,
|
||||
entity_id: str,
|
||||
pairing: FakePairing,
|
||||
accessory: Accessory,
|
||||
config_entry: ConfigEntry,
|
||||
) -> None:
|
||||
"""Create a helper for a given accessory/entity."""
|
||||
self.hass = hass
|
||||
self.entity_id = entity_id
|
||||
self.pairing = pairing
|
||||
self.accessory = accessory
|
||||
self.config_entry = config_entry
|
||||
|
||||
async def async_update(
|
||||
self, service: str, characteristics: dict[str, Any]
|
||||
) -> State:
|
||||
"""Set the characteristics on this service."""
|
||||
changes = []
|
||||
|
||||
service = self.accessory.services.first(service_type=service)
|
||||
aid = service.accessory.aid
|
||||
|
||||
for ctype, value in characteristics.items():
|
||||
char = service.characteristics.first(char_types=[ctype])
|
||||
changes.append((aid, char.iid, value))
|
||||
|
||||
self.pairing.testing.update_aid_iid(changes)
|
||||
|
||||
if not self.pairing.testing.events_enabled:
|
||||
# If events aren't enabled, explicitly do a poll
|
||||
# If they are enabled, then HA will pick up the changes next time
|
||||
# we yield control
|
||||
await time_changed(self.hass, 60)
|
||||
await time_changed(self.hass, DEBOUNCE_COOLDOWN)
|
||||
|
||||
await self.hass.async_block_till_done()
|
||||
|
||||
state = self.hass.states.get(self.entity_id)
|
||||
assert state is not None
|
||||
return state
|
||||
|
||||
async def async_set_aid_iid_status(
|
||||
self, aid_iid_status: list[tuple[int, int, int]]
|
||||
) -> None:
|
||||
"""Set the status of a set of aid/iid pairs."""
|
||||
self.pairing.testing.set_aid_iid_status(aid_iid_status)
|
||||
await self.hass.async_block_till_done()
|
||||
|
||||
@callback
|
||||
def async_assert_service_values(
|
||||
self, service: str, characteristics: dict[str, Any]
|
||||
) -> None:
|
||||
"""Assert a service has characteristics with these values."""
|
||||
service = self.accessory.services.first(service_type=service)
|
||||
for ctype, value in characteristics.items():
|
||||
assert service.value(ctype) == value
|
||||
|
||||
async def poll_and_get_state(self) -> State:
|
||||
"""Trigger a time based poll and return the current entity state."""
|
||||
await time_changed(self.hass, 60)
|
||||
await time_changed(self.hass, DEBOUNCE_COOLDOWN)
|
||||
|
||||
state = self.hass.states.get(self.entity_id)
|
||||
assert state is not None
|
||||
return state
|
||||
|
||||
|
||||
async def time_changed(hass: HomeAssistant, seconds: int) -> None:
|
||||
"""Trigger time changed."""
|
||||
next_update = dt_util.utcnow() + timedelta(seconds)
|
||||
async_fire_time_changed(hass, next_update)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
async def setup_accessories_from_file(hass: HomeAssistant, path: str) -> Accessories:
|
||||
"""Load an collection of accessory defs from JSON data."""
|
||||
accessories_fixture = await hass.async_add_executor_job(
|
||||
load_fixture, os.path.join("homekit_controller", path)
|
||||
)
|
||||
accessories_json = hkloads(accessories_fixture)
|
||||
return Accessories.from_list(accessories_json)
|
||||
|
||||
|
||||
async def setup_platform(hass: HomeAssistant) -> FakeController:
|
||||
"""Load the platform but with a fake Controller API."""
|
||||
config = {"discovery": {}}
|
||||
|
||||
with mock.patch(
|
||||
"homeassistant.components.homekit_controller.utils.Controller", FakeController
|
||||
):
|
||||
await async_setup_component(hass, DOMAIN, config)
|
||||
|
||||
return await async_get_controller(hass)
|
||||
|
||||
|
||||
async def setup_test_accessories(
|
||||
hass: HomeAssistant, accessories: list[Accessory], connection: str | None = None
|
||||
) -> tuple[MockConfigEntry, AbstractPairing]:
|
||||
"""Load a fake homekit device based on captured JSON profile."""
|
||||
fake_controller = await setup_platform(hass)
|
||||
return await setup_test_accessories_with_controller(
|
||||
hass, accessories, fake_controller, connection
|
||||
)
|
||||
|
||||
|
||||
async def setup_test_accessories_with_controller(
|
||||
hass: HomeAssistant,
|
||||
accessories: list[Accessory],
|
||||
fake_controller: FakeController,
|
||||
connection: str | None = None,
|
||||
) -> tuple[MockConfigEntry, AbstractPairing]:
|
||||
"""Load a fake homekit device based on captured JSON profile."""
|
||||
|
||||
pairing_id = "00:00:00:00:00:00"
|
||||
|
||||
accessories_obj = Accessories()
|
||||
for accessory in accessories:
|
||||
accessories_obj.add_accessory(accessory)
|
||||
pairing = await fake_controller.add_paired_device(accessories_obj, pairing_id)
|
||||
|
||||
data = {"AccessoryPairingID": pairing_id}
|
||||
if connection == "BLE":
|
||||
data["Connection"] = "BLE"
|
||||
data["AccessoryAddress"] = TEST_ACCESSORY_ADDRESS
|
||||
|
||||
config_entry = MockConfigEntry(
|
||||
version=1,
|
||||
domain="homekit_controller",
|
||||
entry_id="TestData",
|
||||
data=data,
|
||||
title="test",
|
||||
)
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await time_changed(hass, SUBSCRIBE_COOLDOWN)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
return config_entry, pairing
|
||||
|
||||
|
||||
async def device_config_changed(hass: HomeAssistant, accessories: Accessories):
|
||||
"""Discover new devices added to Home Assistant at runtime."""
|
||||
# Update the accessories our FakePairing knows about
|
||||
controller = hass.data[CONTROLLER]
|
||||
pairing: AbstractPairing = controller.pairings["00:00:00:00:00:00"]
|
||||
|
||||
accessories_obj = Accessories()
|
||||
for accessory in accessories:
|
||||
accessories_obj.add_accessory(accessory)
|
||||
|
||||
new_config_num = pairing.config_num + 1
|
||||
pairing._async_description_update(
|
||||
AbstractDescription(
|
||||
name="testdevice.local.",
|
||||
id="00:00:00:00:00:00",
|
||||
status_flags=0,
|
||||
config_num=new_config_num,
|
||||
category=1,
|
||||
)
|
||||
)
|
||||
# Set the accessories state only after calling
|
||||
# _async_description_update, otherwise the config_num will be
|
||||
# overwritten
|
||||
pairing._accessories_state = AccessoriesState(accessories_obj, new_config_num)
|
||||
|
||||
# Wait for services to reconfigure
|
||||
await hass.async_block_till_done()
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
async def setup_test_component(
|
||||
hass: HomeAssistant,
|
||||
aid: int,
|
||||
setup_accessory: Callable[[Accessory], Service | None],
|
||||
capitalize: bool = False,
|
||||
suffix: str | None = None,
|
||||
connection: str | None = None,
|
||||
) -> Helper:
|
||||
"""Load a fake homekit accessory based on a homekit accessory model.
|
||||
|
||||
If capitalize is True, property names will be in upper case.
|
||||
|
||||
If suffix is set, entityId will include the suffix
|
||||
"""
|
||||
accessory = Accessory.create_with_info(
|
||||
aid, "TestDevice", "example.com", "Test", "0001", "0.1"
|
||||
)
|
||||
setup_accessory(accessory)
|
||||
|
||||
domain = None
|
||||
for service in accessory.services:
|
||||
service_name = service.type
|
||||
if service_name in HOMEKIT_ACCESSORY_DISPATCH:
|
||||
domain = HOMEKIT_ACCESSORY_DISPATCH[service_name]
|
||||
break
|
||||
|
||||
assert domain, "Cannot map test homekit services to Home Assistant domain"
|
||||
|
||||
config_entry, pairing = await setup_test_accessories(hass, [accessory], connection)
|
||||
entity = "testdevice" if suffix is None else f"testdevice_{suffix}"
|
||||
return Helper(hass, f"{domain}.{entity}", pairing, accessory, config_entry)
|
||||
|
||||
|
||||
async def assert_devices_and_entities_created(
|
||||
hass: HomeAssistant, expected: DeviceTestInfo
|
||||
):
|
||||
"""Check that all expected devices and entities are loaded and enumerated as expected."""
|
||||
entity_registry = er.async_get(hass)
|
||||
device_registry = dr.async_get(hass)
|
||||
|
||||
async def _do_assertions(expected: DeviceTestInfo) -> dr.DeviceEntry:
|
||||
# Note: homekit_controller currently uses a 3-tuple for device identifiers
|
||||
# The current standard is a 2-tuple (hkc was not migrated when this change was brought in)
|
||||
|
||||
# There are currently really 3 cases here:
|
||||
# - We can match exactly one device by serial number. This won't work for devices like the Ryse.
|
||||
# These have nlank or broken serial numbers.
|
||||
# - The device unique id is "00:00:00:00:00:00" - this is the pairing id. This is only set for
|
||||
# the root (bridge) device.
|
||||
# - The device unique id is "00:00:00:00:00:00-X", where X is a HAP aid. This is only set when
|
||||
# we have detected broken serial numbers (and serial number is not used as an identifier).
|
||||
|
||||
device = device_registry.async_get_device(
|
||||
identifiers={(IDENTIFIER_ACCESSORY_ID, expected.unique_id)}
|
||||
)
|
||||
|
||||
logger.debug("Comparing device %r to %r", device, expected)
|
||||
|
||||
assert device
|
||||
assert device.name == expected.name
|
||||
assert device.model == expected.model
|
||||
assert device.manufacturer == expected.manufacturer
|
||||
assert device.hw_version == expected.hw_version
|
||||
assert device.sw_version == expected.sw_version
|
||||
|
||||
# We might have matched the device by one identifier only
|
||||
# Lets check that the other one is correct. Otherwise the test might silently be wrong.
|
||||
accessory_id_set = False
|
||||
|
||||
for key, value in device.identifiers:
|
||||
if key == IDENTIFIER_ACCESSORY_ID:
|
||||
assert value == expected.unique_id
|
||||
accessory_id_set = True
|
||||
|
||||
# If unique_id or serial is provided it MUST actually appear in the device registry entry.
|
||||
assert (not expected.unique_id) ^ accessory_id_set
|
||||
|
||||
for entity_info in expected.entities:
|
||||
entity = entity_registry.async_get(entity_info.entity_id)
|
||||
logger.debug("Comparing entity %r to %r", entity, entity_info)
|
||||
|
||||
assert entity
|
||||
assert entity.device_id == device.id
|
||||
assert entity.unique_id == entity_info.unique_id
|
||||
assert entity.supported_features == entity_info.supported_features
|
||||
assert entity.entity_category == entity_info.entity_category
|
||||
assert entity.unit_of_measurement == entity_info.unit_of_measurement
|
||||
assert entity.capabilities == entity_info.capabilities
|
||||
|
||||
state = hass.states.get(entity_info.entity_id)
|
||||
logger.debug("Comparing state %r to %r", state, entity_info)
|
||||
|
||||
assert state is not None
|
||||
assert state.state == entity_info.state
|
||||
assert state.attributes["friendly_name"] == entity_info.friendly_name
|
||||
|
||||
all_triggers = await async_get_device_automations(
|
||||
hass, DeviceAutomationType.TRIGGER, device.id
|
||||
)
|
||||
stateless_triggers = []
|
||||
for trigger in all_triggers:
|
||||
if trigger.get("entity_id"):
|
||||
continue
|
||||
stateless_triggers.append(
|
||||
DeviceTriggerInfo(
|
||||
type=trigger.get("type"), subtype=trigger.get("subtype")
|
||||
)
|
||||
)
|
||||
assert stateless_triggers == (expected.stateless_triggers or [])
|
||||
|
||||
for child in expected.devices:
|
||||
child_device = await _do_assertions(child)
|
||||
assert child_device.via_device_id == device.id
|
||||
assert child_device.id != device.id
|
||||
|
||||
return device
|
||||
|
||||
root_device = await _do_assertions(expected)
|
||||
|
||||
# Root device must not have a via, otherwise its not the device
|
||||
assert root_device.via_device_id is None
|
||||
@@ -0,0 +1,59 @@
|
||||
"""HomeKit controller session fixtures."""
|
||||
|
||||
from collections.abc import Callable, Generator
|
||||
import datetime
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from aiohomekit.testing import FakeController
|
||||
from freezegun import freeze_time
|
||||
from freezegun.api import FrozenDateTimeFactory
|
||||
import pytest
|
||||
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from tests.components.light.conftest import mock_light_profiles # noqa: F401
|
||||
|
||||
pytest.register_assert_rewrite("tests.components.homekit_controller.common")
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def freeze_time_in_future() -> Generator[FrozenDateTimeFactory]:
|
||||
"""Freeze time at a known point."""
|
||||
now = dt_util.utcnow()
|
||||
start_dt = datetime.datetime(now.year + 1, 1, 1, 0, 0, 0, tzinfo=now.tzinfo)
|
||||
with freeze_time(start_dt) as frozen_time:
|
||||
yield frozen_time
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def controller() -> Generator[FakeController]:
|
||||
"""Replace aiohomekit.Controller with an instance of aiohomekit.testing.FakeController."""
|
||||
instance = FakeController()
|
||||
with patch(
|
||||
"homeassistant.components.homekit_controller.utils.Controller",
|
||||
return_value=instance,
|
||||
):
|
||||
yield instance
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def hk_mock_async_zeroconf(mock_async_zeroconf: MagicMock) -> None:
|
||||
"""Auto mock zeroconf."""
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def auto_mock_bluetooth(mock_bluetooth: None) -> None:
|
||||
"""Auto mock bluetooth."""
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def get_next_aid() -> Generator[Callable[[], int]]:
|
||||
"""Generate a function that returns increasing accessory ids."""
|
||||
id_counter = 0
|
||||
|
||||
def _get_id():
|
||||
nonlocal id_counter
|
||||
id_counter += 1
|
||||
return id_counter
|
||||
|
||||
return _get_id
|
||||
@@ -0,0 +1,517 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Sleekpoint Innovations",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "AP2",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Airversa AP2 1808",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1234",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "0.8.16",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "0.1",
|
||||
"description": "Hardware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "string",
|
||||
"value": "\"6.1\";72ca72be",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000220-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "2646e00091f99a29"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 17,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 18,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.2.0",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 32,
|
||||
"type": "00000055-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "0000004C-0000-1000-8000-0026BB765291",
|
||||
"iid": 34,
|
||||
"perms": [],
|
||||
"format": "data",
|
||||
"description": "Pair Setup"
|
||||
},
|
||||
{
|
||||
"type": "0000004E-0000-1000-8000-0026BB765291",
|
||||
"iid": 35,
|
||||
"perms": [],
|
||||
"format": "data",
|
||||
"description": "Pair Verify"
|
||||
},
|
||||
{
|
||||
"type": "0000004F-0000-1000-8000-0026BB765291",
|
||||
"iid": 36,
|
||||
"perms": [],
|
||||
"format": "int",
|
||||
"description": "Pairing Features"
|
||||
},
|
||||
{
|
||||
"type": "00000050-0000-1000-8000-0026BB765291",
|
||||
"iid": 37,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "data",
|
||||
"value": null,
|
||||
"description": "Pairing Pairings"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 32832,
|
||||
"type": "000000BB-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 32833,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 32834,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "AirPurifier",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"iid": 32835,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 0,
|
||||
"description": "Active",
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "000000A9-0000-1000-8000-0026BB765291",
|
||||
"iid": 32836,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "int",
|
||||
"value": 0,
|
||||
"description": "Current Air Purifier State",
|
||||
"minValue": 0,
|
||||
"maxValue": 2
|
||||
},
|
||||
{
|
||||
"type": "000000A8-0000-1000-8000-0026BB765291",
|
||||
"iid": 32837,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 1,
|
||||
"description": "Target Air Purifier State",
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "00000029-0000-1000-8000-0026BB765291",
|
||||
"iid": 32838,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 0.0,
|
||||
"description": "Rotation Speed",
|
||||
"unit": "percentage",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 20.0
|
||||
},
|
||||
{
|
||||
"type": "000000A7-0000-1000-8000-0026BB765291",
|
||||
"iid": 32839,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 0,
|
||||
"description": "Lock Physical Controls",
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "00000004-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 32840,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 255,
|
||||
"minValue": 1,
|
||||
"maxValue": 255
|
||||
},
|
||||
{
|
||||
"type": "00000005-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 32841,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 255,
|
||||
"minValue": 1,
|
||||
"maxValue": 255
|
||||
},
|
||||
{
|
||||
"type": "00000006-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 32842,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "0000011A-0000-1000-8000-0026BB765291",
|
||||
"iid": 32843,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "Mute"
|
||||
},
|
||||
{
|
||||
"type": "00000401-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 32844,
|
||||
"perms": ["pr", "pw", "ev", "hd"],
|
||||
"format": "int",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 2
|
||||
},
|
||||
{
|
||||
"type": "00000501-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 32845,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "data",
|
||||
"value": "0000000000000000000000000000000000000000"
|
||||
},
|
||||
{
|
||||
"type": "00000502-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 32846,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "data",
|
||||
"value": "0000000000000000"
|
||||
},
|
||||
{
|
||||
"type": "00000402-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 32847,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Airversa AP2 1808",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 2576,
|
||||
"type": "0000008D-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 2577,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2578,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Air Quality Sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000095-0000-1000-8000-0026BB765291",
|
||||
"iid": 2579,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "int",
|
||||
"value": 1,
|
||||
"description": "Air Quality",
|
||||
"minValue": 0,
|
||||
"maxValue": 5
|
||||
},
|
||||
{
|
||||
"type": "000000C6-0000-1000-8000-0026BB765291",
|
||||
"iid": 2580,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 3.0,
|
||||
"description": "PM2.5 Density",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 1000.0,
|
||||
"minStep": 1.0
|
||||
},
|
||||
{
|
||||
"type": "00000601-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 2581,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "data",
|
||||
"value": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
},
|
||||
{
|
||||
"type": "00000602-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 2582,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 32896,
|
||||
"type": "000000BA-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 32897,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 32898,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Filter Maintenance",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "000000AC-0000-1000-8000-0026BB765291",
|
||||
"iid": 32899,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "int",
|
||||
"value": 0,
|
||||
"description": "Filter Change Indication",
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "000000AB-0000-1000-8000-0026BB765291",
|
||||
"iid": 32900,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 100.0,
|
||||
"description": "Filter Life Level",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 1.0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 112,
|
||||
"type": "00000701-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 113,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"type": "00000706-0000-1000-8000-0026BB765291",
|
||||
"iid": 116,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "OPENTHREAD/thread-reference-20200818-ncs1-rc3-560-g02e61a2ed; Zephyr; Feb 11 2022 08:26:44",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000702-0000-1000-8000-0026BB765291",
|
||||
"iid": 115,
|
||||
"perms": ["pr"],
|
||||
"format": "int",
|
||||
"value": 12,
|
||||
"description": "Thread Node Capabilities",
|
||||
"minValue": 0,
|
||||
"maxValue": 31
|
||||
},
|
||||
{
|
||||
"type": "00000703-0000-1000-8000-0026BB765291",
|
||||
"iid": 117,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "int",
|
||||
"value": 16,
|
||||
"description": "Thread Status",
|
||||
"minValue": 0,
|
||||
"maxValue": 127
|
||||
},
|
||||
{
|
||||
"type": "0000022B-0000-1000-8000-0026BB765291",
|
||||
"iid": 118,
|
||||
"perms": ["pr"],
|
||||
"format": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"type": "00000704-0000-1000-8000-0026BB765291",
|
||||
"iid": 119,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 2560,
|
||||
"type": "00000239-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 2564,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"type": "0000023A-0000-1000-8000-0026BB765291",
|
||||
"iid": 2561,
|
||||
"perms": ["pr"],
|
||||
"format": "int",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 67108863
|
||||
},
|
||||
{
|
||||
"type": "0000023C-0000-1000-8000-0026BB765291",
|
||||
"iid": 2562,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"type": "0000024A-0000-1000-8000-0026BB765291",
|
||||
"iid": 2565,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "int",
|
||||
"value": 12
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 32960,
|
||||
"type": "00000100-5E50-11EC-B400-0A80FF2603DE",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 32961,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 32962,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Date Time",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000101-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 32963,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 0,
|
||||
"minValue": -1200,
|
||||
"maxValue": 1400
|
||||
},
|
||||
{
|
||||
"type": "00000102-5E50-11EC-B400-0A80FF2603DE",
|
||||
"iid": 32964,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "int",
|
||||
"value": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,493 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 65537,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 65538,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Aqara",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65539,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "HE1-G01",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65540,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Aqara-Hub-E1-00A0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65541,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "00aa00000a0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65542,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "3.3.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65543,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65544,
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"format": "string",
|
||||
"value": "5.0;dfeceb3a",
|
||||
"perms": ["pr", "hd"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65545,
|
||||
"type": "220",
|
||||
"format": "data",
|
||||
"value": "xDsGO4QdTEA=",
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"maxDataLen": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 131074,
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "22A",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 262145,
|
||||
"type": "22B",
|
||||
"format": "bool",
|
||||
"value": 1,
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 262146,
|
||||
"type": "22C",
|
||||
"format": "uint32",
|
||||
"value": 9,
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 15,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 262147,
|
||||
"type": "22D",
|
||||
"format": "tlv8",
|
||||
"value": "",
|
||||
"perms": ["pr", "pw", "ev", "tw", "wr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "0000007E-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 1048578,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Security System",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 1048579,
|
||||
"type": "00000066-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 3,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 0,
|
||||
"maxValue": 4,
|
||||
"minStep": 1,
|
||||
"valid-values": [0, 1, 2, 3, 4]
|
||||
},
|
||||
{
|
||||
"iid": 1048580,
|
||||
"type": "00000067-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 3,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"valid-values": [0, 1, 2, 3]
|
||||
},
|
||||
{
|
||||
"iid": 1048581,
|
||||
"type": "60CDDE6C-42B6-4C72-9719-AB2740EABE2A",
|
||||
"format": "tlv8",
|
||||
"value": "AAA=",
|
||||
"perms": ["pr", "pw"],
|
||||
"ev": false,
|
||||
"description": "Stay Arm Trigger Devices"
|
||||
},
|
||||
{
|
||||
"iid": 1048582,
|
||||
"type": "4AB2460A-41E4-4F05-97C3-CCFDAE1BE324",
|
||||
"format": "tlv8",
|
||||
"value": "AAA=",
|
||||
"perms": ["pr", "pw"],
|
||||
"ev": false,
|
||||
"description": "Alarm Trigger Devices"
|
||||
},
|
||||
{
|
||||
"iid": 1048583,
|
||||
"type": "F8296386-5A30-4AA7-838C-ED0DA9D807DF",
|
||||
"format": "tlv8",
|
||||
"value": "AAA=",
|
||||
"perms": ["pr", "pw"],
|
||||
"ev": false,
|
||||
"description": "Night Arm Trigger Devices"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 17,
|
||||
"type": "9715BF53-AB63-4449-8DC7-2785D617390A",
|
||||
"primary": false,
|
||||
"hidden": true,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 1114114,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Gateway",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 1114115,
|
||||
"type": "4CB28907-66DF-4D9C-962C-9971ABF30EDC",
|
||||
"format": "string",
|
||||
"value": "1970-01-01 21:01:22+8",
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"ev": false,
|
||||
"description": "Date and Time"
|
||||
},
|
||||
{
|
||||
"iid": 1114116,
|
||||
"type": "EE56B186-B0D3-488E-8C79-C21FC9BCF437",
|
||||
"format": "int",
|
||||
"value": 40,
|
||||
"perms": ["pr", "pw", "ev", "hd"],
|
||||
"ev": false,
|
||||
"description": "Gateway Volume",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1114117,
|
||||
"type": "B1C09E4C-E202-4827-B863-B0F32F727CFF",
|
||||
"format": "bool",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev", "hd"],
|
||||
"ev": false,
|
||||
"description": "New Accessory Permission"
|
||||
},
|
||||
{
|
||||
"iid": 1114118,
|
||||
"type": "2CB22739-1E4C-4798-A761-BC2FAF51AFC3",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr", "ev", "hd"],
|
||||
"ev": false,
|
||||
"description": "Accessory Joined"
|
||||
},
|
||||
{
|
||||
"iid": 1114119,
|
||||
"type": "75D19FA9-218B-4943-997E-341E5D1C60CC",
|
||||
"format": "string",
|
||||
"perms": ["pw", "hd"],
|
||||
"description": "Remove Accessory"
|
||||
},
|
||||
{
|
||||
"iid": 1114120,
|
||||
"type": "7D943F6A-E052-4E96-A176-D17BF00E32CB",
|
||||
"format": "int",
|
||||
"value": -1,
|
||||
"perms": ["pr", "ev", "hd"],
|
||||
"ev": false,
|
||||
"description": "Firmware Update Status",
|
||||
"minValue": -65535,
|
||||
"maxValue": 65535,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1114121,
|
||||
"type": "A45EFD52-0DB5-4C1A-9727-513FBCD8185F",
|
||||
"format": "string",
|
||||
"perms": ["pw", "hd"],
|
||||
"description": "Firmware Update URL",
|
||||
"maxLen": 256
|
||||
},
|
||||
{
|
||||
"iid": 1114122,
|
||||
"type": "40F0124A-579D-40E4-865E-0EF6740EA64B",
|
||||
"format": "string",
|
||||
"perms": ["pw", "hd"],
|
||||
"description": "Firmware Update Checksum"
|
||||
},
|
||||
{
|
||||
"iid": 1114123,
|
||||
"type": "E1C20B22-E3A7-4B92-8BA3-C16E778648A7",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr", "ev", "hd"],
|
||||
"ev": false,
|
||||
"description": "Identify Accessory"
|
||||
},
|
||||
{
|
||||
"iid": 1114124,
|
||||
"type": "4CF1436A-755C-4377-BDB8-30BE29EB8620",
|
||||
"format": "string",
|
||||
"value": "Chinese",
|
||||
"perms": ["pr", "pw", "ev", "hd"],
|
||||
"ev": false,
|
||||
"description": "Language"
|
||||
},
|
||||
{
|
||||
"iid": 1114125,
|
||||
"type": "25D889CB-7135-4A29-B5B4-C1FFD6D2DD5C",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"ev": false,
|
||||
"description": "Country Domain"
|
||||
},
|
||||
{
|
||||
"iid": 1114126,
|
||||
"type": "C7EECAA7-91D9-40EB-AD0C-FFDDE3143CB9",
|
||||
"format": "string",
|
||||
"value": "lumi1.00aa00000a0",
|
||||
"perms": ["pr", "hd"],
|
||||
"ev": false,
|
||||
"description": "Lumi Did"
|
||||
},
|
||||
{
|
||||
"iid": 1114127,
|
||||
"type": "80FA747E-CB45-45A4-B7BE-AA7D9964859E",
|
||||
"format": "string",
|
||||
"perms": ["pw", "hd"],
|
||||
"description": "Lumi Bindkey"
|
||||
},
|
||||
{
|
||||
"iid": 1114128,
|
||||
"type": "C3B8A329-EF0C-4739-B773-E5B7AEA52C71",
|
||||
"format": "bool",
|
||||
"value": 0,
|
||||
"perms": ["pr", "hd"],
|
||||
"ev": false,
|
||||
"description": "Lumi Bindstate"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 33,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 65537,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 65538,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Aqara",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65539,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "AS006",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65540,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Contact Sensor",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65541,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "158d0007c59c6a",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65542,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 65543,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000080-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 262146,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Contact Sensor",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 262147,
|
||||
"type": "0000006A-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"valid-values": [0, 1]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000096-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 327682,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Battery Sensor",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 327683,
|
||||
"type": "00000068-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 327685,
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"valid-values": [0, 1]
|
||||
},
|
||||
{
|
||||
"iid": 327684,
|
||||
"type": "0000008F-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 2,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"valid-values": [2]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,362 @@
|
||||
[
|
||||
{
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "Aqara",
|
||||
"description": "Manufacturer",
|
||||
"type": "20",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": "ZHWA11LM",
|
||||
"description": "Model",
|
||||
"type": "21",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": "Aqara Hub-1563",
|
||||
"description": "Name",
|
||||
"type": "23",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": "0000000123456789",
|
||||
"description": "Serial Number",
|
||||
"type": "30",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"description": "Identify",
|
||||
"iid": 7,
|
||||
"perms": ["pw"],
|
||||
"type": "14",
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"value": "1.4.7",
|
||||
"description": "Firmware Revision",
|
||||
"type": "52",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
}
|
||||
],
|
||||
"type": "3e"
|
||||
},
|
||||
{
|
||||
"iid": 60,
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "1.1.0",
|
||||
"description": "Protocol Version",
|
||||
"type": "37",
|
||||
"iid": 62,
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
}
|
||||
],
|
||||
"type": "a2"
|
||||
},
|
||||
{
|
||||
"hidden": true,
|
||||
"iid": 65536,
|
||||
"characteristics": [
|
||||
{
|
||||
"value": false,
|
||||
"description": "New Accessory Permission",
|
||||
"type": "b1c09e4c-e202-4827-b343-b0f32f727cff",
|
||||
"iid": 65538,
|
||||
"perms": ["pr", "pw", "ev", "hd"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"value": "()",
|
||||
"description": "Accessory Joined",
|
||||
"type": "2cb22739-1e4c-4798-a712-bc2faf51afc3",
|
||||
"maxLen": 256,
|
||||
"iid": 65539,
|
||||
"perms": ["pr", "ev", "hd"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": " ",
|
||||
"description": "Remove Accessory",
|
||||
"type": "75d19fa9-218b-4943-427e-341e5d1c60cc",
|
||||
"iid": 65540,
|
||||
"perms": ["pr", "pw", "ev", "hd"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"maxValue": 100,
|
||||
"value": 40,
|
||||
"minValue": 0,
|
||||
"description": "Gateway Volume",
|
||||
"type": "ee56b186-b0d3-528e-8c79-c21fc9bcf437",
|
||||
"unit": "percentage",
|
||||
"iid": 65541,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "int"
|
||||
},
|
||||
{
|
||||
"value": "Chinese",
|
||||
"description": "Language",
|
||||
"type": "4cf1436a-755c-1277-bdb8-30be29eb8620",
|
||||
"iid": 65542,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": "2019-02-12 06:45:07+10",
|
||||
"description": "Date and Time",
|
||||
"type": "4cb28907-66df-4d9c-924c-9971abf30edc",
|
||||
"iid": 65543,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": " ",
|
||||
"description": "Identify Accessory",
|
||||
"type": "e1c20b22-e3a7-4b12-8ba3-c16e778648a7",
|
||||
"iid": 65544,
|
||||
"perms": ["pr", "ev", "hd"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": "aiot-coap.aqara.cn",
|
||||
"description": "Country Domain",
|
||||
"type": "25d889cb-7135-4a21-b5b4-c1ffd6d2dd5c",
|
||||
"iid": 65545,
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": -1,
|
||||
"description": "Firmware Update Status",
|
||||
"type": "7d943f6a-e052-4e96-a124-d17bf00e32cb",
|
||||
"iid": 65546,
|
||||
"perms": ["pr", "ev", "hd"],
|
||||
"format": "int"
|
||||
},
|
||||
{
|
||||
"description": "Firmware Update Data",
|
||||
"iid": 65547,
|
||||
"perms": ["pw", "hd"],
|
||||
"type": "7f51dc43-dc68-4237-bae8-d705e61139f5",
|
||||
"format": "data"
|
||||
},
|
||||
{
|
||||
"description": "Firmware Update URL",
|
||||
"type": "a45efd52-0db5-4c1a-1227-513fbcd8185f",
|
||||
"maxLen": 256,
|
||||
"iid": 65548,
|
||||
"perms": ["pw", "hd"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"description": "Firmware Update Checksum",
|
||||
"iid": 65549,
|
||||
"perms": ["pw", "hd"],
|
||||
"type": "40f0124a-579d-40e4-245e-0ef6740ea64b",
|
||||
"format": "string"
|
||||
}
|
||||
],
|
||||
"type": "9715bf53-ab63-4449-8dc7-2485d617390a"
|
||||
},
|
||||
{
|
||||
"iid": 65792,
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "Lightbulb-1563",
|
||||
"description": "Name",
|
||||
"type": "23",
|
||||
"iid": 65794,
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": false,
|
||||
"description": "On",
|
||||
"type": "25",
|
||||
"iid": 65795,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"maxValue": 360,
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"description": "Hue",
|
||||
"type": "13",
|
||||
"unit": "arcdegrees",
|
||||
"iid": 65796,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float"
|
||||
},
|
||||
{
|
||||
"maxValue": 100,
|
||||
"value": 100,
|
||||
"minValue": 0,
|
||||
"description": "Saturation",
|
||||
"type": "2f",
|
||||
"unit": "percentage",
|
||||
"iid": 65797,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float"
|
||||
},
|
||||
{
|
||||
"maxValue": 100,
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"description": "Brightness",
|
||||
"type": "8",
|
||||
"unit": "percentage",
|
||||
"iid": 65798,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int"
|
||||
},
|
||||
{
|
||||
"value": "",
|
||||
"description": "Timers",
|
||||
"type": "232aa6bd-6ce2-4d7f-b7cf-52305f0d2bcf",
|
||||
"iid": 65799,
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"format": "tlv8"
|
||||
}
|
||||
],
|
||||
"type": "43"
|
||||
},
|
||||
{
|
||||
"iid": 66048,
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "MIIO Service",
|
||||
"description": "Name",
|
||||
"type": "23",
|
||||
"iid": 66050,
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": false,
|
||||
"description": "miio provisioned",
|
||||
"type": "6ef066c1-08f8-46de-9121-b89b77e459e7",
|
||||
"iid": 66051,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"description": "miio bindkey",
|
||||
"iid": 66052,
|
||||
"perms": ["pw", "hd"],
|
||||
"type": "6ef066c2-08f8-46de-9121-b89b77e459e7",
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": "152601563",
|
||||
"description": "miio did",
|
||||
"type": "6ef066c5-08f8-46de-9121-b89b77e459e7",
|
||||
"iid": 66053,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": "lumi.gateway.aqhm01",
|
||||
"description": "miio model",
|
||||
"type": "6ef066c4-08f8-46de-9121-b89b77e459e7",
|
||||
"iid": 66054,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": "ch",
|
||||
"description": "miio country domain",
|
||||
"type": "6ef066c3-08f8-46de-9121-b89b77e459e7",
|
||||
"iid": 66055,
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": "country code",
|
||||
"description": "miio country code",
|
||||
"type": "6ef066d1-08f8-46de-9121-b89b77e459e7",
|
||||
"iid": 66056,
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": "app",
|
||||
"description": "miio config type",
|
||||
"type": "6ef066d3-08f8-46de-9121-b89b77e459e7",
|
||||
"iid": 66057,
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"value": 28800,
|
||||
"description": "miio gmt offset",
|
||||
"type": "6ef066d2-08f8-46de-9121-b89b77e459e7",
|
||||
"unit": "seconds",
|
||||
"iid": 66058,
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"format": "int"
|
||||
}
|
||||
],
|
||||
"type": "6ef066c0-08f8-46de-9121-b89b77e459e7"
|
||||
},
|
||||
{
|
||||
"iid": 66304,
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "Security System",
|
||||
"description": "Name",
|
||||
"type": "23",
|
||||
"iid": 66306,
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"maxValue": 4,
|
||||
"value": 3,
|
||||
"minValue": 0,
|
||||
"description": "Security System Current State",
|
||||
"type": "66",
|
||||
"valid-values": [1, 3, 4],
|
||||
"iid": 66307,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8"
|
||||
},
|
||||
{
|
||||
"maxValue": 3,
|
||||
"value": 3,
|
||||
"minValue": 0,
|
||||
"description": "Security System Target State",
|
||||
"type": "67",
|
||||
"valid-values": [1, 3],
|
||||
"iid": 66308,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8"
|
||||
}
|
||||
],
|
||||
"type": "7e"
|
||||
}
|
||||
],
|
||||
"aid": 1
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,166 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 65537,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 65538,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Aqara"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 65539,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "AR004"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 65540,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Programmable Switch"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 65541,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "111a1111a1a111"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 65542,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "9"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 65543,
|
||||
"perms": ["pr"],
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"value": "1.0"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 1,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 262146,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Programmable Switch"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 262147,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000073-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 262148,
|
||||
"maxValue": 255,
|
||||
"minStep": 1,
|
||||
"minValue": 1,
|
||||
"perms": ["pr"],
|
||||
"type": "000000CB-0000-1000-8000-0026BB765291",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 4,
|
||||
"linked": [],
|
||||
"primary": true,
|
||||
"stype": "stateless-programmable-switch",
|
||||
"type": "00000089-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 327682,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Battery Sensor"
|
||||
},
|
||||
{
|
||||
"ev": true,
|
||||
"format": "uint8",
|
||||
"iid": 327683,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000068-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"ev": true,
|
||||
"format": "uint8",
|
||||
"iid": 327685,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"ev": true,
|
||||
"format": "uint8",
|
||||
"iid": 327684,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "0000008F-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 5,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "battery",
|
||||
"type": "00000096-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,381 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"iid": 1,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"value": "ArloBabyA0",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"value": "Netgear, Inc",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"value": "00A0000000000",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"value": "ABC1000",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"value": "1.10.931",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"iid": 20,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 21,
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "00000110-0000-1000-8000-0026BB765291",
|
||||
"iid": 100,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000120-0000-1000-8000-0026BB765291",
|
||||
"iid": 106,
|
||||
"value": "AQEB",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"type": "00000114-0000-1000-8000-0026BB765291",
|
||||
"iid": 101,
|
||||
"value": "AY8BAQACFQEBAAEBAQEBAQIBAAMBAAQBAAUBAQMLAQKABwICOAQDAR4DCwECAAUCAsADAwEeAwsBAgAEAgIAAwMBHgMLAQIABQIC0AIDAR4DCwECgAICAmgBAwEeAwsBAuABAgIOAQMBHgMLAQKAAgIC4AEDAR4DCwEC4AECAmgBAwEeAwsBAkABAgLwAAMBHg==",
|
||||
"perms": ["pr"],
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"type": "00000115-0000-1000-8000-0026BB765291",
|
||||
"iid": 102,
|
||||
"value": "AQ4BAQMCCQEBAQIBAAMBAQIBAA==",
|
||||
"perms": ["pr"],
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"type": "00000116-0000-1000-8000-0026BB765291",
|
||||
"iid": 103,
|
||||
"value": "AgEAAgEBAgEC",
|
||||
"perms": ["pr"],
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"type": "00000117-0000-1000-8000-0026BB765291",
|
||||
"iid": 104,
|
||||
"value": "",
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"type": "00000118-0000-1000-8000-0026BB765291",
|
||||
"iid": 108,
|
||||
"value": "",
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "tlv8"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "00000110-0000-1000-8000-0026BB765291",
|
||||
"iid": 110,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000120-0000-1000-8000-0026BB765291",
|
||||
"iid": 116,
|
||||
"value": "AQEA",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"type": "00000114-0000-1000-8000-0026BB765291",
|
||||
"iid": 111,
|
||||
"value": "AWgBAQACFQEBAAEBAQEBAQIBAAMBAAQBAAUBAQMLAQIABQIC0AIDAR4DCwECgAICAmgBAwEeAwsBAuABAgIOAQMBHgMLAQKAAgIC4AEDAR4DCwEC4AECAmgBAwEeAwsBAkABAgLwAAMBHg==",
|
||||
"perms": ["pr"],
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"type": "00000115-0000-1000-8000-0026BB765291",
|
||||
"iid": 112,
|
||||
"value": "AQ4BAQMCCQEBAQIBAAMBAQIBAA==",
|
||||
"perms": ["pr"],
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"type": "00000116-0000-1000-8000-0026BB765291",
|
||||
"iid": 113,
|
||||
"value": "AgEAAgEBAgEC",
|
||||
"perms": ["pr"],
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"type": "00000117-0000-1000-8000-0026BB765291",
|
||||
"iid": 114,
|
||||
"value": "",
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"type": "00000118-0000-1000-8000-0026BB765291",
|
||||
"iid": 118,
|
||||
"value": "",
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "tlv8"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "00000112-0000-1000-8000-0026BB765291",
|
||||
"iid": 300,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "0000011A-0000-1000-8000-0026BB765291",
|
||||
"iid": 302,
|
||||
"value": false,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "00000113-0000-1000-8000-0026BB765291",
|
||||
"iid": 400,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "0000011A-0000-1000-8000-0026BB765291",
|
||||
"iid": 402,
|
||||
"value": false,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"type": "00000119-0000-1000-8000-0026BB765291",
|
||||
"iid": 403,
|
||||
"value": 50,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"unit": "percentage"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "00000085-0000-1000-8000-0026BB765291",
|
||||
"iid": 500,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 501,
|
||||
"value": "Motion",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"type": "00000022-0000-1000-8000-0026BB765291",
|
||||
"iid": 502,
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "bool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "00000096-0000-1000-8000-0026BB765291",
|
||||
"iid": 700,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000068-0000-1000-8000-0026BB765291",
|
||||
"iid": 701,
|
||||
"value": 82,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"unit": "percentage"
|
||||
},
|
||||
{
|
||||
"type": "0000008F-0000-1000-8000-0026BB765291",
|
||||
"iid": 702,
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"iid": 703,
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "0000008D-0000-1000-8000-0026BB765291",
|
||||
"iid": 800,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 801,
|
||||
"value": "Air Quality",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"type": "00000095-0000-1000-8000-0026BB765291",
|
||||
"iid": 802,
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minValue": 0,
|
||||
"maxValue": 5,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "00000082-0000-1000-8000-0026BB765291",
|
||||
"iid": 900,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 901,
|
||||
"value": "Humidity",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"type": "00000010-0000-1000-8000-0026BB765291",
|
||||
"iid": 902,
|
||||
"value": 60.099998,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 1.0,
|
||||
"unit": "percentage"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "0000008A-0000-1000-8000-0026BB765291",
|
||||
"iid": 1000,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 1001,
|
||||
"value": "Temperature",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"type": "00000011-0000-1000-8000-0026BB765291",
|
||||
"iid": 1002,
|
||||
"value": 24.0,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 0.1,
|
||||
"unit": "celsius"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "00000043-0000-1000-8000-0026BB765291",
|
||||
"iid": 1100,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 1101,
|
||||
"value": "Nightlight",
|
||||
"perms": ["pr"],
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"iid": 1102,
|
||||
"value": false,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"type": "00000008-0000-1000-8000-0026BB765291",
|
||||
"iid": 1103,
|
||||
"value": 100,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"unit": "percentage"
|
||||
},
|
||||
{
|
||||
"type": "00000013-0000-1000-8000-0026BB765291",
|
||||
"iid": 1104,
|
||||
"value": 0.0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 360.0,
|
||||
"minStep": 1.0,
|
||||
"unit": "arcdegrees"
|
||||
},
|
||||
{
|
||||
"type": "0000002F-0000-1000-8000-0026BB765291",
|
||||
"iid": 1105,
|
||||
"value": 0.0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 1.0,
|
||||
"unit": "percentage"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,378 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pw"],
|
||||
"ev": false,
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"value": "ConnectSense",
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"value": "CS-IWO",
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"value": "InWall Outlet-0394DE",
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"value": "1020301376",
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"value": "1.0.0",
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"format": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"value": "1.1.0",
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"format": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "B3BD50B1-B30B-4974-A71F-5C68AA126698",
|
||||
"hidden": true,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 11,
|
||||
"value": 100,
|
||||
"type": "00000008-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"unit": "percentage"
|
||||
},
|
||||
{
|
||||
"iid": 12,
|
||||
"value": 7250712,
|
||||
"type": "00000005-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"description": "Epoch",
|
||||
"unit": "seconds"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 13,
|
||||
"type": "00000047-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 14,
|
||||
"value": true,
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": true,
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 15,
|
||||
"value": true,
|
||||
"type": "00000026-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"value": "Outlet A",
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"iid": 17,
|
||||
"value": 126.3,
|
||||
"type": "00000008-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 130.0,
|
||||
"minStep": 0.1,
|
||||
"description": "Volts"
|
||||
},
|
||||
{
|
||||
"iid": 18,
|
||||
"value": 0.03,
|
||||
"type": "00000009-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 20.0,
|
||||
"minStep": 0.1,
|
||||
"description": "Amps"
|
||||
},
|
||||
{
|
||||
"iid": 19,
|
||||
"value": 0.8,
|
||||
"type": "0000000A-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"description": "Watts"
|
||||
},
|
||||
{
|
||||
"iid": 20,
|
||||
"value": 379.69299,
|
||||
"type": "0000000C-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 34028234663852885981170418348,
|
||||
"minStep": 0.1,
|
||||
"description": "Kilowatt-hours"
|
||||
},
|
||||
{
|
||||
"iid": 21,
|
||||
"value": 22,
|
||||
"type": "0000000B-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"description": "Power factor"
|
||||
},
|
||||
{
|
||||
"iid": 22,
|
||||
"value": 390,
|
||||
"type": "00000005-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"description": "State timer",
|
||||
"unit": "seconds"
|
||||
},
|
||||
{
|
||||
"iid": 23,
|
||||
"value": "Outlet A",
|
||||
"type": "0000000E-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"description": "Assigned name"
|
||||
},
|
||||
{
|
||||
"iid": 24,
|
||||
"value": 0,
|
||||
"type": "0000000F-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"description": "Device type"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 25,
|
||||
"type": "00000047-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 26,
|
||||
"value": true,
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": true,
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 27,
|
||||
"value": true,
|
||||
"type": "00000026-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 28,
|
||||
"value": "Outlet B",
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"iid": 29,
|
||||
"value": 126.3,
|
||||
"type": "00000008-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 130.0,
|
||||
"minStep": 0.1,
|
||||
"description": "Volts"
|
||||
},
|
||||
{
|
||||
"iid": 30,
|
||||
"value": 0.05,
|
||||
"type": "00000009-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 20.0,
|
||||
"minStep": 0.1,
|
||||
"description": "Amps"
|
||||
},
|
||||
{
|
||||
"iid": 31,
|
||||
"value": 0.8,
|
||||
"type": "0000000A-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"description": "Watts"
|
||||
},
|
||||
{
|
||||
"iid": 32,
|
||||
"value": 175.85001,
|
||||
"type": "0000000C-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 34028234663852885981170418348,
|
||||
"minStep": 0.1,
|
||||
"description": "Kilowatt-hours"
|
||||
},
|
||||
{
|
||||
"iid": 33,
|
||||
"value": 13,
|
||||
"type": "0000000B-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"description": "Power factor"
|
||||
},
|
||||
{
|
||||
"iid": 34,
|
||||
"value": 390,
|
||||
"type": "00000005-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"description": "State timer",
|
||||
"unit": "seconds"
|
||||
},
|
||||
{
|
||||
"iid": 35,
|
||||
"value": "Outlet B",
|
||||
"type": "0000000E-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"description": "Assigned name"
|
||||
},
|
||||
{
|
||||
"iid": 36,
|
||||
"value": 0,
|
||||
"type": "0000000F-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"description": "Device type"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 37,
|
||||
"type": "00000020-0000-1000-8000-001D4B474349",
|
||||
"hidden": true,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 38,
|
||||
"value": 0,
|
||||
"type": "00000021-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"format": "uint8"
|
||||
},
|
||||
{
|
||||
"iid": 39,
|
||||
"type": "00000022-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pw"],
|
||||
"ev": false,
|
||||
"format": "uint8"
|
||||
},
|
||||
{
|
||||
"iid": 40,
|
||||
"type": "00000023-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pw"],
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"maxLen": 256
|
||||
},
|
||||
{
|
||||
"iid": 41,
|
||||
"type": "00000024-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pw"],
|
||||
"ev": false,
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 42,
|
||||
"type": "00000300-0000-1000-8000-001D4B474349",
|
||||
"perms": ["pw"],
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"maxLen": 65
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,803 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "HomeW",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 2
|
||||
},
|
||||
{
|
||||
"value": "ecobee Inc.",
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"format": "string",
|
||||
"iid": 3
|
||||
},
|
||||
{
|
||||
"value": "123456789012",
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"format": "string",
|
||||
"iid": 4
|
||||
},
|
||||
{
|
||||
"value": "ecobee3",
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"format": "string",
|
||||
"iid": 5
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "14",
|
||||
"format": "bool",
|
||||
"iid": 6
|
||||
},
|
||||
{
|
||||
"value": "4.2.394",
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"format": "string",
|
||||
"iid": 8
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "A6",
|
||||
"format": "uint32",
|
||||
"iid": 9
|
||||
}
|
||||
],
|
||||
"iid": 1
|
||||
},
|
||||
{
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"maxLen": 64,
|
||||
"type": "37",
|
||||
"format": "string",
|
||||
"iid": 31
|
||||
}
|
||||
],
|
||||
"iid": 30
|
||||
},
|
||||
{
|
||||
"primary": true,
|
||||
"type": "4A",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": 1,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "F",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 17
|
||||
},
|
||||
{
|
||||
"value": 1,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "33",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 18
|
||||
},
|
||||
{
|
||||
"value": 21.8,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "11",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 19
|
||||
},
|
||||
{
|
||||
"value": 22.2,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "35",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 20
|
||||
},
|
||||
{
|
||||
"value": 1,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "36",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 21
|
||||
},
|
||||
{
|
||||
"value": 24.4,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "D",
|
||||
"minValue": 18.3,
|
||||
"format": "float",
|
||||
"iid": 22
|
||||
},
|
||||
{
|
||||
"value": 22.2,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "12",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 23
|
||||
},
|
||||
{
|
||||
"value": 34,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "percentage",
|
||||
"type": "10",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 24
|
||||
},
|
||||
{
|
||||
"value": 36,
|
||||
"maxValue": 50,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "percentage",
|
||||
"type": "34",
|
||||
"minValue": 20,
|
||||
"format": "float",
|
||||
"iid": 25
|
||||
},
|
||||
{
|
||||
"value": "HomeW",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 27
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "B7DDB9A3-54BB-4572-91D2-F1F5B0510F8C",
|
||||
"format": "uint8",
|
||||
"iid": 33
|
||||
},
|
||||
{
|
||||
"value": 22.2,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "E4489BBC-5227-4569-93E5-B345E3E5508F",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 34
|
||||
},
|
||||
{
|
||||
"value": 24.4,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "7D381BAA-20F9-40E5-9BE9-AEB92D4BECEF",
|
||||
"minValue": 18.3,
|
||||
"format": "float",
|
||||
"iid": 35
|
||||
},
|
||||
{
|
||||
"value": 17.8,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "73AAB542-892A-4439-879A-D2A883724B69",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 36
|
||||
},
|
||||
{
|
||||
"value": 27.8,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "5DA985F0-898A-4850-B987-B76C6C78D670",
|
||||
"minValue": 18.3,
|
||||
"format": "float",
|
||||
"iid": 37
|
||||
},
|
||||
{
|
||||
"value": 18.9,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "05B97374-6DC0-439B-A0FA-CA33F612D425",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 38
|
||||
},
|
||||
{
|
||||
"value": 26.7,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "A251F6E7-AC46-4190-9C5D-3D06277BDF9F",
|
||||
"minValue": 18.3,
|
||||
"format": "float",
|
||||
"iid": 39
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"perms": ["pw"],
|
||||
"type": "1B300BC2-CFFC-47FF-89F9-BD6CCF5F2853",
|
||||
"format": "uint8",
|
||||
"iid": 40
|
||||
},
|
||||
{
|
||||
"value": "2014-01-03T00:00:00-05:00",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "1621F556-1367-443C-AF19-82AF018E99DE",
|
||||
"format": "string",
|
||||
"iid": 41
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "FA128DE6-9D7D-49A4-B6D8-4E4E234DEE38",
|
||||
"format": "bool",
|
||||
"iid": 48
|
||||
},
|
||||
{
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "4A6AE4F6-036C-495D-87CC-B3702B437741",
|
||||
"format": "uint8",
|
||||
"iid": 49
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DB7BF261-7042-4194-8BD1-3AA22830AEDD",
|
||||
"format": "uint8",
|
||||
"iid": 50
|
||||
},
|
||||
{
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "41935E3E-B54D-42E9-B8B9-D33C6319F0AF",
|
||||
"format": "bool",
|
||||
"iid": 51
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "C35DA3C0-E004-40E3-B153-46655CDD9214",
|
||||
"value": 0,
|
||||
"format": "uint8",
|
||||
"iid": 52
|
||||
},
|
||||
{
|
||||
"value": 100,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "48F62AEC-4171-4B4A-8F0E-1EEB6708B3FB",
|
||||
"format": "uint8",
|
||||
"iid": 53
|
||||
},
|
||||
{
|
||||
"value": "The Hive is humming along. You have no pending alerts or reminders.",
|
||||
"perms": ["pr", "ev"],
|
||||
"iid": 54,
|
||||
"type": "1B1515F2-CC45-409F-991F-C480987F92C3",
|
||||
"format": "string",
|
||||
"maxLen": 256
|
||||
}
|
||||
],
|
||||
"iid": 16
|
||||
},
|
||||
{
|
||||
"type": "85",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "HomeW",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 28
|
||||
},
|
||||
{
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "22",
|
||||
"format": "bool",
|
||||
"iid": 66
|
||||
},
|
||||
{
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "BFE61C70-4A40-11E6-BDF4-0800200C9A66",
|
||||
"value": 2980,
|
||||
"format": "int",
|
||||
"iid": 67
|
||||
}
|
||||
],
|
||||
"iid": 56
|
||||
},
|
||||
{
|
||||
"type": "86",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "HomeW",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 29
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "71",
|
||||
"value": 1,
|
||||
"format": "uint8",
|
||||
"iid": 65
|
||||
},
|
||||
{
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "A8f798E0-4A40-11E6-BDF4-0800200C9A66",
|
||||
"value": 2980,
|
||||
"format": "int",
|
||||
"iid": 68
|
||||
}
|
||||
],
|
||||
"iid": 57
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 2,
|
||||
"services": [
|
||||
{
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "Kitchen",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 2049
|
||||
},
|
||||
{
|
||||
"value": "ecobee Inc.",
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"format": "string",
|
||||
"iid": 2050
|
||||
},
|
||||
{
|
||||
"value": "AB1C",
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"format": "string",
|
||||
"iid": 2051
|
||||
},
|
||||
{
|
||||
"value": "REMOTE SENSOR",
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"format": "string",
|
||||
"iid": 2052
|
||||
},
|
||||
{
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"format": "string",
|
||||
"iid": 8
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "14",
|
||||
"format": "bool",
|
||||
"iid": 2053
|
||||
}
|
||||
],
|
||||
"iid": 1
|
||||
},
|
||||
{
|
||||
"type": "8A",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": 21.5,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "11",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 2064
|
||||
},
|
||||
{
|
||||
"value": "Kitchen",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 2067
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 2066
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 2065
|
||||
}
|
||||
],
|
||||
"iid": 55
|
||||
},
|
||||
{
|
||||
"type": "85",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "22",
|
||||
"format": "bool",
|
||||
"iid": 2060
|
||||
},
|
||||
{
|
||||
"value": "Kitchen",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 2063
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 2062
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"value": 0,
|
||||
"format": "uint8",
|
||||
"iid": 2061
|
||||
},
|
||||
{
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "BFE61C70-4A40-11E6-BDF4-0800200C9A66",
|
||||
"value": 3620,
|
||||
"format": "int",
|
||||
"iid": 2059
|
||||
}
|
||||
],
|
||||
"iid": 56
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 3,
|
||||
"services": [
|
||||
{
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "Porch",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 3073
|
||||
},
|
||||
{
|
||||
"value": "ecobee Inc.",
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"format": "string",
|
||||
"iid": 3074
|
||||
},
|
||||
{
|
||||
"value": "AB2C",
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"format": "string",
|
||||
"iid": 3075
|
||||
},
|
||||
{
|
||||
"value": "REMOTE SENSOR",
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"format": "string",
|
||||
"iid": 3076
|
||||
},
|
||||
{
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"format": "string",
|
||||
"iid": 8
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "14",
|
||||
"format": "bool",
|
||||
"iid": 3077
|
||||
}
|
||||
],
|
||||
"iid": 1
|
||||
},
|
||||
{
|
||||
"type": "8A",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": 21,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "11",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 3088
|
||||
},
|
||||
{
|
||||
"value": "Porch",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 3091
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 3090
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 3089
|
||||
}
|
||||
],
|
||||
"iid": 55
|
||||
},
|
||||
{
|
||||
"type": "85",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "22",
|
||||
"format": "bool",
|
||||
"iid": 3084
|
||||
},
|
||||
{
|
||||
"value": "Porch",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 3087
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 3086
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"value": 0,
|
||||
"format": "uint8",
|
||||
"iid": 3085
|
||||
},
|
||||
{
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "BFE61C70-4A40-11E6-BDF4-0800200C9A66",
|
||||
"value": 5766,
|
||||
"format": "int",
|
||||
"iid": 3083
|
||||
}
|
||||
],
|
||||
"iid": 56
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 4,
|
||||
"services": [
|
||||
{
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "Basement",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 4097
|
||||
},
|
||||
{
|
||||
"value": "ecobee Inc.",
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"format": "string",
|
||||
"iid": 4098
|
||||
},
|
||||
{
|
||||
"value": "AB3C",
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"format": "string",
|
||||
"iid": 4099
|
||||
},
|
||||
{
|
||||
"value": "REMOTE SENSOR",
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"format": "string",
|
||||
"iid": 4100
|
||||
},
|
||||
{
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"format": "string",
|
||||
"iid": 8
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "14",
|
||||
"format": "bool",
|
||||
"iid": 4101
|
||||
}
|
||||
],
|
||||
"iid": 1
|
||||
},
|
||||
{
|
||||
"type": "8A",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": 20.7,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "11",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 4112
|
||||
},
|
||||
{
|
||||
"value": "Basement",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 4115
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 4114
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 4113
|
||||
}
|
||||
],
|
||||
"iid": 55
|
||||
},
|
||||
{
|
||||
"type": "85",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "22",
|
||||
"format": "bool",
|
||||
"iid": 4108
|
||||
},
|
||||
{
|
||||
"value": "Basement",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 4111
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 4110
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"value": 0,
|
||||
"format": "uint8",
|
||||
"iid": 4109
|
||||
},
|
||||
{
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "BFE61C70-4A40-11E6-BDF4-0800200C9A66",
|
||||
"value": 5472,
|
||||
"format": "int",
|
||||
"iid": 4107
|
||||
}
|
||||
],
|
||||
"iid": 56
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,386 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "HomeW",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 2
|
||||
},
|
||||
{
|
||||
"value": "ecobee Inc.",
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"format": "string",
|
||||
"iid": 3
|
||||
},
|
||||
{
|
||||
"value": "123456789012",
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"format": "string",
|
||||
"iid": 4
|
||||
},
|
||||
{
|
||||
"value": "ecobee3",
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"format": "string",
|
||||
"iid": 5
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "14",
|
||||
"format": "bool",
|
||||
"iid": 6
|
||||
},
|
||||
{
|
||||
"value": "4.2.394",
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"format": "string",
|
||||
"iid": 8
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "A6",
|
||||
"format": "uint32",
|
||||
"iid": 9
|
||||
}
|
||||
],
|
||||
"iid": 1
|
||||
},
|
||||
{
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"maxLen": 64,
|
||||
"type": "37",
|
||||
"format": "string",
|
||||
"iid": 31
|
||||
}
|
||||
],
|
||||
"iid": 30
|
||||
},
|
||||
{
|
||||
"primary": true,
|
||||
"type": "4A",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": 1,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "F",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 17
|
||||
},
|
||||
{
|
||||
"value": 1,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "33",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 18
|
||||
},
|
||||
{
|
||||
"value": 21.8,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "11",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 19
|
||||
},
|
||||
{
|
||||
"value": 22.2,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "35",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 20
|
||||
},
|
||||
{
|
||||
"value": 1,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "36",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 21
|
||||
},
|
||||
{
|
||||
"value": 24.4,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "D",
|
||||
"minValue": 18.3,
|
||||
"format": "float",
|
||||
"iid": 22
|
||||
},
|
||||
{
|
||||
"value": 22.2,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "12",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 23
|
||||
},
|
||||
{
|
||||
"value": 34,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "percentage",
|
||||
"type": "10",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 24
|
||||
},
|
||||
{
|
||||
"value": 36,
|
||||
"maxValue": 50,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "percentage",
|
||||
"type": "34",
|
||||
"minValue": 20,
|
||||
"format": "float",
|
||||
"iid": 25
|
||||
},
|
||||
{
|
||||
"value": "HomeW",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 27
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "B7DDB9A3-54BB-4572-91D2-F1F5B0510F8C",
|
||||
"format": "uint8",
|
||||
"iid": 33
|
||||
},
|
||||
{
|
||||
"value": 22.2,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "E4489BBC-5227-4569-93E5-B345E3E5508F",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 34
|
||||
},
|
||||
{
|
||||
"value": 24.4,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "7D381BAA-20F9-40E5-9BE9-AEB92D4BECEF",
|
||||
"minValue": 18.3,
|
||||
"format": "float",
|
||||
"iid": 35
|
||||
},
|
||||
{
|
||||
"value": 17.8,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "73AAB542-892A-4439-879A-D2A883724B69",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 36
|
||||
},
|
||||
{
|
||||
"value": 27.8,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "5DA985F0-898A-4850-B987-B76C6C78D670",
|
||||
"minValue": 18.3,
|
||||
"format": "float",
|
||||
"iid": 37
|
||||
},
|
||||
{
|
||||
"value": 18.9,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "05B97374-6DC0-439B-A0FA-CA33F612D425",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 38
|
||||
},
|
||||
{
|
||||
"value": 26.7,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "A251F6E7-AC46-4190-9C5D-3D06277BDF9F",
|
||||
"minValue": 18.3,
|
||||
"format": "float",
|
||||
"iid": 39
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"perms": ["pw"],
|
||||
"type": "1B300BC2-CFFC-47FF-89F9-BD6CCF5F2853",
|
||||
"format": "uint8",
|
||||
"iid": 40
|
||||
},
|
||||
{
|
||||
"value": "2014-01-03T00:00:00-05:00",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "1621F556-1367-443C-AF19-82AF018E99DE",
|
||||
"format": "string",
|
||||
"iid": 41
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "FA128DE6-9D7D-49A4-B6D8-4E4E234DEE38",
|
||||
"format": "bool",
|
||||
"iid": 48
|
||||
},
|
||||
{
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "4A6AE4F6-036C-495D-87CC-B3702B437741",
|
||||
"format": "uint8",
|
||||
"iid": 49
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DB7BF261-7042-4194-8BD1-3AA22830AEDD",
|
||||
"format": "uint8",
|
||||
"iid": 50
|
||||
},
|
||||
{
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "41935E3E-B54D-42E9-B8B9-D33C6319F0AF",
|
||||
"format": "bool",
|
||||
"iid": 51
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "C35DA3C0-E004-40E3-B153-46655CDD9214",
|
||||
"value": 0,
|
||||
"format": "uint8",
|
||||
"iid": 52
|
||||
},
|
||||
{
|
||||
"value": 100,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "48F62AEC-4171-4B4A-8F0E-1EEB6708B3FB",
|
||||
"format": "uint8",
|
||||
"iid": 53
|
||||
},
|
||||
{
|
||||
"value": "The Hive is humming along. You have no pending alerts or reminders.",
|
||||
"perms": ["pr", "ev"],
|
||||
"iid": 54,
|
||||
"type": "1B1515F2-CC45-409F-991F-C480987F92C3",
|
||||
"format": "string",
|
||||
"maxLen": 256
|
||||
}
|
||||
],
|
||||
"iid": 16
|
||||
},
|
||||
{
|
||||
"type": "85",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "HomeW",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 28
|
||||
},
|
||||
{
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "22",
|
||||
"format": "bool",
|
||||
"iid": 66
|
||||
},
|
||||
{
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "BFE61C70-4A40-11E6-BDF4-0800200C9A66",
|
||||
"value": 2980,
|
||||
"format": "int",
|
||||
"iid": 67
|
||||
}
|
||||
],
|
||||
"iid": 56
|
||||
},
|
||||
{
|
||||
"type": "86",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "HomeW",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 29
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "71",
|
||||
"value": 1,
|
||||
"format": "uint8",
|
||||
"iid": 65
|
||||
},
|
||||
{
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "A8f798E0-4A40-11E6-BDF4-0800200C9A66",
|
||||
"value": 2980,
|
||||
"format": "int",
|
||||
"iid": 68
|
||||
}
|
||||
],
|
||||
"iid": 57
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,561 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "HomeW",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 2
|
||||
},
|
||||
{
|
||||
"value": "ecobee Inc.",
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"format": "string",
|
||||
"iid": 3
|
||||
},
|
||||
{
|
||||
"value": "123456789012",
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"format": "string",
|
||||
"iid": 4
|
||||
},
|
||||
{
|
||||
"value": "ecobee3",
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"format": "string",
|
||||
"iid": 5
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "14",
|
||||
"format": "bool",
|
||||
"iid": 6
|
||||
},
|
||||
{
|
||||
"value": "4.2.394",
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"format": "string",
|
||||
"iid": 8
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "A6",
|
||||
"format": "uint32",
|
||||
"iid": 9
|
||||
}
|
||||
],
|
||||
"iid": 1
|
||||
},
|
||||
{
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"maxLen": 64,
|
||||
"type": "37",
|
||||
"format": "string",
|
||||
"iid": 31
|
||||
}
|
||||
],
|
||||
"iid": 30
|
||||
},
|
||||
{
|
||||
"primary": true,
|
||||
"type": "4A",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": 1,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "F",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 17
|
||||
},
|
||||
{
|
||||
"value": 1,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "33",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 18
|
||||
},
|
||||
{
|
||||
"value": 21.8,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "11",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 19
|
||||
},
|
||||
{
|
||||
"value": 22.2,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "35",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 20
|
||||
},
|
||||
{
|
||||
"value": 1,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "36",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 21
|
||||
},
|
||||
{
|
||||
"value": 24.4,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "D",
|
||||
"minValue": 18.3,
|
||||
"format": "float",
|
||||
"iid": 22
|
||||
},
|
||||
{
|
||||
"value": 22.2,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "12",
|
||||
"minValue": 7.2,
|
||||
"format": "float",
|
||||
"iid": 23
|
||||
},
|
||||
{
|
||||
"value": 34,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "percentage",
|
||||
"type": "10",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 24
|
||||
},
|
||||
{
|
||||
"value": 36,
|
||||
"maxValue": 50,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"unit": "percentage",
|
||||
"type": "34",
|
||||
"minValue": 20,
|
||||
"format": "float",
|
||||
"iid": 25
|
||||
},
|
||||
{
|
||||
"value": "HomeW",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 27
|
||||
}
|
||||
],
|
||||
"iid": 16
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 2,
|
||||
"services": [
|
||||
{
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "Kitchen",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 2049
|
||||
},
|
||||
{
|
||||
"value": "ecobee Inc.",
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"format": "string",
|
||||
"iid": 2050
|
||||
},
|
||||
{
|
||||
"value": "AB1C",
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"format": "string",
|
||||
"iid": 2051
|
||||
},
|
||||
{
|
||||
"value": "REMOTE SENSOR",
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"format": "string",
|
||||
"iid": 2052
|
||||
},
|
||||
{
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"format": "string",
|
||||
"iid": 8
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "14",
|
||||
"format": "bool",
|
||||
"iid": 2053
|
||||
}
|
||||
],
|
||||
"iid": 1
|
||||
},
|
||||
{
|
||||
"type": "8A",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": 21.5,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "11",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 2064
|
||||
},
|
||||
{
|
||||
"value": "Kitchen",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 2067
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 2066
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 2065
|
||||
}
|
||||
],
|
||||
"iid": 55
|
||||
},
|
||||
{
|
||||
"type": "85",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "22",
|
||||
"format": "bool",
|
||||
"iid": 2060
|
||||
},
|
||||
{
|
||||
"value": "Kitchen",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 2063
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 2062
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"value": 0,
|
||||
"format": "uint8",
|
||||
"iid": 2061
|
||||
},
|
||||
{
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "BFE61C70-4A40-11E6-BDF4-0800200C9A66",
|
||||
"value": 3620,
|
||||
"format": "int",
|
||||
"iid": 2059
|
||||
}
|
||||
],
|
||||
"iid": 56
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 3,
|
||||
"services": [
|
||||
{
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "Porch",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 3073
|
||||
},
|
||||
{
|
||||
"value": "ecobee Inc.",
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"format": "string",
|
||||
"iid": 3074
|
||||
},
|
||||
{
|
||||
"value": "AB2C",
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"format": "string",
|
||||
"iid": 3075
|
||||
},
|
||||
{
|
||||
"value": "REMOTE SENSOR",
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"format": "string",
|
||||
"iid": 3076
|
||||
},
|
||||
{
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"format": "string",
|
||||
"iid": 8
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "14",
|
||||
"format": "bool",
|
||||
"iid": 3077
|
||||
}
|
||||
],
|
||||
"iid": 1
|
||||
},
|
||||
{
|
||||
"type": "8A",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": 21,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"perms": ["pr", "ev"],
|
||||
"unit": "celsius",
|
||||
"type": "11",
|
||||
"minValue": 0,
|
||||
"format": "float",
|
||||
"iid": 3088
|
||||
},
|
||||
{
|
||||
"value": "Porch",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 3091
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 3090
|
||||
},
|
||||
{
|
||||
"value": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"minValue": 0,
|
||||
"format": "uint8",
|
||||
"iid": 3089
|
||||
}
|
||||
],
|
||||
"iid": 55
|
||||
},
|
||||
{
|
||||
"type": "85",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "22",
|
||||
"format": "bool",
|
||||
"iid": 3084
|
||||
},
|
||||
{
|
||||
"value": "Porch",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 3087
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 3086
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"value": 0,
|
||||
"format": "uint8",
|
||||
"iid": 3085
|
||||
},
|
||||
{
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "BFE61C70-4A40-11E6-BDF4-0800200C9A66",
|
||||
"value": 5766,
|
||||
"format": "int",
|
||||
"iid": 3083
|
||||
}
|
||||
],
|
||||
"iid": 56
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 4,
|
||||
"services": [
|
||||
{
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": "Basement",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 4097
|
||||
},
|
||||
{
|
||||
"value": "ecobee Inc.",
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"format": "string",
|
||||
"iid": 4098
|
||||
},
|
||||
{
|
||||
"value": "AB3C",
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"format": "string",
|
||||
"iid": 4099
|
||||
},
|
||||
{
|
||||
"value": "REMOTE SENSOR",
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"format": "string",
|
||||
"iid": 4100
|
||||
},
|
||||
{
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"format": "string",
|
||||
"iid": 8
|
||||
},
|
||||
{
|
||||
"perms": ["pw"],
|
||||
"type": "14",
|
||||
"format": "bool",
|
||||
"iid": 4101
|
||||
}
|
||||
],
|
||||
"iid": 1
|
||||
},
|
||||
{
|
||||
"type": "85",
|
||||
"characteristics": [
|
||||
{
|
||||
"value": false,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "22",
|
||||
"format": "bool",
|
||||
"iid": 4108
|
||||
},
|
||||
{
|
||||
"value": "Basement",
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"format": "string",
|
||||
"iid": 4111
|
||||
},
|
||||
{
|
||||
"value": true,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "75",
|
||||
"format": "bool",
|
||||
"iid": 4110
|
||||
},
|
||||
{
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "79",
|
||||
"value": 0,
|
||||
"format": "uint8",
|
||||
"iid": 4109
|
||||
},
|
||||
{
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "BFE61C70-4A40-11E6-BDF4-0800200C9A66",
|
||||
"value": 5472,
|
||||
"format": "int",
|
||||
"iid": 4107
|
||||
}
|
||||
],
|
||||
"iid": 56
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,475 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "ecobee Inc.",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "ECB501",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "My ecobee",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "123456789016",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "4.7.340214",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "string",
|
||||
"value": "4.1;3fac0fb4",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000220-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "data",
|
||||
"value": "u4qz9c7m80Y="
|
||||
},
|
||||
{
|
||||
"type": "000000A6-0000-1000-8000-0026BB765291",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"description": "Accessory Flags"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 30,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 31,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "0000004A-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "0000000F-0000-1000-8000-0026BB765291",
|
||||
"iid": 17,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Current Heating Cooling State",
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"valid-values": [0, 1, 2]
|
||||
},
|
||||
{
|
||||
"type": "00000033-0000-1000-8000-0026BB765291",
|
||||
"iid": 18,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 3,
|
||||
"description": "Target Heating Cooling State",
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"valid-values": [0, 1, 2, 3]
|
||||
},
|
||||
{
|
||||
"type": "00000011-0000-1000-8000-0026BB765291",
|
||||
"iid": 19,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 21.3,
|
||||
"description": "Current Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 0,
|
||||
"maxValue": 40.0,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "00000035-0000-1000-8000-0026BB765291",
|
||||
"iid": 20,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 25.6,
|
||||
"description": "Target Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 7.2,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "00000036-0000-1000-8000-0026BB765291",
|
||||
"iid": 21,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"description": "Temperature Display Units",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"valid-values": [0, 1]
|
||||
},
|
||||
{
|
||||
"type": "0000000D-0000-1000-8000-0026BB765291",
|
||||
"iid": 22,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 25.6,
|
||||
"description": "Cooling Threshold Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 18.3,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "00000012-0000-1000-8000-0026BB765291",
|
||||
"iid": 23,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 7.2,
|
||||
"description": "Heating Threshold Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 7.2,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "00000010-0000-1000-8000-0026BB765291",
|
||||
"iid": 24,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 55.0,
|
||||
"description": "Current Relative Humidity",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 1.0
|
||||
},
|
||||
{
|
||||
"type": "00000034-0000-1000-8000-0026BB765291",
|
||||
"iid": 25,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 36.0,
|
||||
"description": "Target Relative Humidity",
|
||||
"unit": "percentage",
|
||||
"minValue": 20.0,
|
||||
"maxValue": 50.0,
|
||||
"minStep": 1.0
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 27,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "My ecobee",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "000000BF-0000-1000-8000-0026BB765291",
|
||||
"iid": 75,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"description": "Target Fan State",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "000000AF-0000-1000-8000-0026BB765291",
|
||||
"iid": 76,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Current Fan State",
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "B7DDB9A3-54BB-4572-91D2-F1F5B0510F8C",
|
||||
"iid": 33,
|
||||
"perms": ["pr"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "E4489BBC-5227-4569-93E5-B345E3E5508F",
|
||||
"iid": 34,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "float",
|
||||
"value": 20.6,
|
||||
"unit": "celsius",
|
||||
"minValue": 7.2,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "7D381BAA-20F9-40E5-9BE9-AEB92D4BECEF",
|
||||
"iid": 35,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "float",
|
||||
"value": 25.6,
|
||||
"unit": "celsius",
|
||||
"minValue": 18.3,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "73AAB542-892A-4439-879A-D2A883724B69",
|
||||
"iid": 36,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "float",
|
||||
"value": 17.8,
|
||||
"unit": "celsius",
|
||||
"minValue": 7.2,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "5DA985F0-898A-4850-B987-B76C6C78D670",
|
||||
"iid": 37,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "float",
|
||||
"value": 27.8,
|
||||
"unit": "celsius",
|
||||
"minValue": 18.3,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "05B97374-6DC0-439B-A0FA-CA33F612D425",
|
||||
"iid": 38,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "float",
|
||||
"value": 18.3,
|
||||
"unit": "celsius",
|
||||
"minValue": 7.2,
|
||||
"maxValue": 26.1,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "A251F6E7-AC46-4190-9C5D-3D06277BDF9F",
|
||||
"iid": 39,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "float",
|
||||
"value": 27.8,
|
||||
"unit": "celsius",
|
||||
"minValue": 18.3,
|
||||
"maxValue": 33.3,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "1B300BC2-CFFC-47FF-89F9-BD6CCF5F2853",
|
||||
"iid": 40,
|
||||
"perms": ["pw"],
|
||||
"format": "uint8",
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "1621F556-1367-443C-AF19-82AF018E99DE",
|
||||
"iid": 41,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "string",
|
||||
"value": "2014-01-03T00:00:00-04:00Q",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "FA128DE6-9D7D-49A4-B6D8-4E4E234DEE38",
|
||||
"iid": 48,
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"type": "4A6AE4F6-036C-495D-87CC-B3702B437741",
|
||||
"iid": 49,
|
||||
"perms": ["pr"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 4,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "DB7BF261-7042-4194-8BD1-3AA22830AEDD",
|
||||
"iid": 50,
|
||||
"perms": ["pr"],
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "41935E3E-B54D-42E9-B8B9-D33C6319F0AF",
|
||||
"iid": 51,
|
||||
"perms": ["pr"],
|
||||
"format": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"type": "C35DA3C0-E004-40E3-B153-46655CDD9214",
|
||||
"iid": 52,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "48F62AEC-4171-4B4A-8F0E-1EEB6708B3FB",
|
||||
"iid": 53,
|
||||
"perms": ["pr"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "1B1515F2-CC45-409F-991F-C480987F92C3",
|
||||
"iid": 54,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "The Hive is humming along. You have no pending alerts or reminders.",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 56,
|
||||
"type": "00000085-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 28,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "My ecobee Motion",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000022-0000-1000-8000-0026BB765291",
|
||||
"iid": 66,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "Motion Detected"
|
||||
},
|
||||
{
|
||||
"type": "BFE61C70-4A40-11E6-BDF4-0800200C9A66",
|
||||
"iid": 67,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "int",
|
||||
"value": 14,
|
||||
"unit": "seconds",
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 57,
|
||||
"type": "00000086-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 29,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "My ecobee Occupancy",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000071-0000-1000-8000-0026BB765291",
|
||||
"iid": 65,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"description": "Occupancy Detected",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "A8F798E0-4A40-11E6-BDF4-0800200C9A66",
|
||||
"iid": 68,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "int",
|
||||
"value": 44,
|
||||
"unit": "seconds",
|
||||
"minValue": -1,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,193 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Master Fan"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "ecobee Inc."
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "111111111111"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "ecobee Switch+"
|
||||
},
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 6,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "4.5.130201"
|
||||
},
|
||||
{
|
||||
"format": "uint32",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "000000A6-0000-1000-8000-0026BB765291",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 31,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"value": "1.1.0"
|
||||
}
|
||||
],
|
||||
"iid": 30,
|
||||
"stype": "service",
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 17,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 18,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Master Fan"
|
||||
}
|
||||
],
|
||||
"iid": 16,
|
||||
"primary": true,
|
||||
"stype": "switch",
|
||||
"type": "00000049-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 20,
|
||||
"maxValue": 100000,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "0000006B-0000-1000-8000-0026BB765291",
|
||||
"unit": "lux",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 21,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Master Fan"
|
||||
}
|
||||
],
|
||||
"iid": 27,
|
||||
"stype": "light",
|
||||
"type": "00000084-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 66,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000022-0000-1000-8000-0026BB765291",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 28,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Master Fan"
|
||||
}
|
||||
],
|
||||
"iid": 56,
|
||||
"stype": "motion",
|
||||
"type": "00000085-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 65,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000071-0000-1000-8000-0026BB765291",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 29,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Master Fan"
|
||||
}
|
||||
],
|
||||
"iid": 57,
|
||||
"stype": "occupancy",
|
||||
"type": "00000086-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 19,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000011-0000-1000-8000-0026BB765291",
|
||||
"unit": "celsius",
|
||||
"value": 25.6
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 22,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Master Fan"
|
||||
}
|
||||
],
|
||||
"iid": 55,
|
||||
"stype": "temperature",
|
||||
"type": "0000008A-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,305 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Eve Degree AA11"
|
||||
},
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 3,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Elgato"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Eve Degree 00AAA0000"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "AA00A0A00000"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "1.2.8"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"value": "1.0.0"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 18,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Battery"
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 19,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000068-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 65
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 20,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "0000008F-0000-1000-8000-0026BB765291",
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 21,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"iid": 17,
|
||||
"type": "00000096-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 23,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Eve Degree"
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 24,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"minValue": -30,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000011-0000-1000-8000-0026BB765291",
|
||||
"unit": "celsius",
|
||||
"value": 22.77191162109375
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 25,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000036-0000-1000-8000-0026BB765291",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"iid": 22,
|
||||
"type": "0000008A-0000-1000-8000-0026BB765291",
|
||||
"primary": true
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 28,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Eve Degree"
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 29,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000010-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 59.4818115234375
|
||||
}
|
||||
],
|
||||
"iid": 27,
|
||||
"type": "00000082-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 31,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Eve Degree"
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 32,
|
||||
"maxValue": 1100,
|
||||
"minStep": 1,
|
||||
"minValue": 870,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F10F-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 1005.7000122070312
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 33,
|
||||
"maxValue": 9000,
|
||||
"minStep": 1,
|
||||
"minValue": -450,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E863F130-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 34,
|
||||
"maxValue": 4,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "E863F135-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"iid": 30,
|
||||
"type": "E863F00A-079E-48FF-8F27-9C2605A29F52"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 36,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Logging"
|
||||
},
|
||||
{
|
||||
"format": "data",
|
||||
"iid": 37,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "E863F11E-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": "HwABDh4AeAQKAIDVzj5aDMB/"
|
||||
},
|
||||
{
|
||||
"format": "uint32",
|
||||
"iid": 38,
|
||||
"maxValue": 4294967295,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "E863F112-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"format": "data",
|
||||
"iid": 39,
|
||||
"perms": ["pw"],
|
||||
"type": "E863F11C-079E-48FF-8F27-9C2605A29F52"
|
||||
},
|
||||
{
|
||||
"format": "data",
|
||||
"iid": 40,
|
||||
"perms": ["pw"],
|
||||
"type": "E863F121-079E-48FF-8F27-9C2605A29F52"
|
||||
},
|
||||
{
|
||||
"format": "data",
|
||||
"iid": 41,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F116-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": "/wkAAJEGAABnvbUmBQECAgIDAh4BJwEGAAAQuvIBAAEAAAABAA=="
|
||||
},
|
||||
{
|
||||
"format": "data",
|
||||
"iid": 42,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F117-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"format": "tlv8",
|
||||
"iid": 43,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F131-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": "AAIeAAMCeAQEDFNVMTNHMUEwMDI4MAYCBgAHBLryAQALAgAABQEAAgTwKQAAXwQAAAAAGQIABRQBAw8EAAAAABoEAAAAACUE9griHtJHEAABQEJcLdwpUbihgRCESYX8bA7yLTF6IKhlxv5ohrqDkOEyRTNCM0VDNC1CNENCLTg0MjYtM0Q1QS0zMDJFNEIzRTZERDA="
|
||||
},
|
||||
{
|
||||
"format": "tlv8",
|
||||
"iid": 44,
|
||||
"perms": ["pw"],
|
||||
"type": "E863F11D-079E-48FF-8F27-9C2605A29F52"
|
||||
}
|
||||
],
|
||||
"iid": 35,
|
||||
"type": "E863F007-079E-48FF-8F27-9C2605A29F52",
|
||||
"hidden": true
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 100001,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F155-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": "11:11:11:11:11:11"
|
||||
},
|
||||
{
|
||||
"format": "uint16",
|
||||
"iid": 100002,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F156-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 10
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 100003,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "E863F157-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"hidden": true,
|
||||
"iid": 100000,
|
||||
"type": "E863F00B-079E-48FF-8F27-9C2605A29F52"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,236 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Eve Energy 50FF"
|
||||
},
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 3,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Elgato"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Eve Energy 20EAO8601"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "AA00A0A00000"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "1.2.9"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"value": "1.0.0"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 18,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Logging"
|
||||
},
|
||||
{
|
||||
"format": "data",
|
||||
"iid": 19,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "E863F11E-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": "HwABDigAuAQKAGLrnNSTogf+"
|
||||
},
|
||||
{
|
||||
"format": "uint32",
|
||||
"iid": 20,
|
||||
"maxValue": 4294967295,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "E863F112-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"format": "data",
|
||||
"iid": 21,
|
||||
"perms": ["pw"],
|
||||
"type": "E863F11C-079E-48FF-8F27-9C2605A29F52"
|
||||
},
|
||||
{
|
||||
"format": "data",
|
||||
"iid": 22,
|
||||
"perms": ["pw"],
|
||||
"type": "E863F121-079E-48FF-8F27-9C2605A29F52"
|
||||
},
|
||||
{
|
||||
"format": "data",
|
||||
"iid": 23,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F116-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": "QFUeAAAAAAAAAAAABQsCDAINAgcCDgEkDQAQaCMBAAEAAAABAA=="
|
||||
},
|
||||
{
|
||||
"format": "data",
|
||||
"iid": 24,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F117-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": "EmojAQABAAAADwAAAAAAAAAA"
|
||||
},
|
||||
{
|
||||
"format": "tlv8",
|
||||
"iid": 25,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F131-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": "AAIoAAMCuAQEDEZWMzVHMUEwMjkyOAYCJA0HBGgjAQALAgAABQEAAgRoOQAAXwQAAAAAGQKWABQBAw8EAAAAAEUFBQAAAABGCQUAAAAOAABCBkQRBRQABQMAAAAAAAAAAAAAAABHEQVzG0Uc3xy4HXgAAAA8AAAASAYFAAAAAABKBgUAAAAAABoEAAAAAGABZNAEE7sdAJsEQFUeANIA"
|
||||
},
|
||||
{
|
||||
"format": "tlv8",
|
||||
"iid": 26,
|
||||
"perms": ["pw"],
|
||||
"type": "E863F11D-079E-48FF-8F27-9C2605A29F52"
|
||||
}
|
||||
],
|
||||
"iid": 17,
|
||||
"type": "E863F007-079E-48FF-8F27-9C2605A29F52",
|
||||
"hidden": true
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 29,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Eve Energy"
|
||||
},
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 30,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 31,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000026-0000-1000-8000-0026BB765291",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 32,
|
||||
"maxValue": 380,
|
||||
"minStep": 0.1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F10A-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 0.4000000059604645
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 33,
|
||||
"maxValue": 16,
|
||||
"minStep": 0.1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F126-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 34,
|
||||
"maxValue": 5000,
|
||||
"minStep": 0.1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "E863F10D-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 35,
|
||||
"minStep": 0.1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F10C-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 0.28999999165534973
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 36,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000A7-0000-1000-8000-0026BB765291",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"iid": 28,
|
||||
"type": "00000047-0000-1000-8000-0026BB765291",
|
||||
"primary": true
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 100001,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F155-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": "03:29:72:EF:97:2F"
|
||||
},
|
||||
{
|
||||
"format": "uint16",
|
||||
"iid": 100002,
|
||||
"perms": ["pr"],
|
||||
"type": "E863F156-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 7
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 100003,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "E863F157-079E-48FF-8F27-9C2605A29F52",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"hidden": true,
|
||||
"iid": 100000,
|
||||
"type": "E863F00B-079E-48FF-8F27-9C2605A29F52"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,134 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 2,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HAA-C718B3"
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Jos\u00e9 A. Jim\u00e9nez Campos"
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 4,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "C718B3-1"
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 5,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "RavenSystem HAA"
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 6,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "5.0.18"
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 7,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000040-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 9,
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": true,
|
||||
"format": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 10,
|
||||
"type": "00000029-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": true,
|
||||
"format": "float",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"value": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 1000,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": true,
|
||||
"characteristics": [
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 1001,
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.1.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 1010,
|
||||
"type": "F0000100-0218-2017-81BF-AF2B7C833922",
|
||||
"primary": false,
|
||||
"hidden": true,
|
||||
"characteristics": [
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 1011,
|
||||
"type": "F0000101-0218-2017-81BF-AF2B7C833922",
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"description": "Update",
|
||||
"format": "string",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 1012,
|
||||
"type": "F0000102-0218-2017-81BF-AF2B7C833922",
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"description": "Setup",
|
||||
"format": "string",
|
||||
"value": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,79 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 2,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HAA-C718B3"
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Jos\u00e9 A. Jim\u00e9nez Campos"
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 4,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "C718B3-2"
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 5,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "RavenSystem HAA"
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 6,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "5.0.18"
|
||||
},
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 7,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000049-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"aid": 1,
|
||||
"iid": 9,
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": true,
|
||||
"format": "bool",
|
||||
"value": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,323 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HASS Bridge S6"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "37",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "string",
|
||||
"value": "01.01.00"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 878448248,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "RYSE Inc."
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "RYSE Shade"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Kitchen Window"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "cover.kitchen_window"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "3.6.2"
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "53",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "96",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "68",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "8F",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"iid": 12,
|
||||
"type": "79",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 13,
|
||||
"type": "8C",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 14,
|
||||
"type": "6D",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 15,
|
||||
"type": "7C",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "72",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 123016423,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 155,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 156,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "RYSE Inc."
|
||||
},
|
||||
{
|
||||
"iid": 157,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "RYSE Shade"
|
||||
},
|
||||
{
|
||||
"iid": 158,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Family Room North"
|
||||
},
|
||||
{
|
||||
"iid": 159,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "cover.family_door_north"
|
||||
},
|
||||
{
|
||||
"iid": 160,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "3.6.2"
|
||||
},
|
||||
{
|
||||
"iid": 161,
|
||||
"type": "53",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 162,
|
||||
"type": "96",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 163,
|
||||
"type": "68",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 164,
|
||||
"type": "8F",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"iid": 165,
|
||||
"type": "79",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 166,
|
||||
"type": "8C",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 167,
|
||||
"type": "6D",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 98
|
||||
},
|
||||
{
|
||||
"iid": 168,
|
||||
"type": "7C",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 98
|
||||
},
|
||||
{
|
||||
"iid": 169,
|
||||
"type": "72",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,244 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Identify",
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"description": "Manufacturer",
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"description": "Model",
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"description": "Name",
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant Bridge"
|
||||
},
|
||||
{
|
||||
"description": "SerialNumber",
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"description": "FirmwareRevision",
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "0.104.0.dev0"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 1256851357,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Identify",
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"description": "Manufacturer",
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"description": "Model",
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Fan"
|
||||
},
|
||||
{
|
||||
"description": "Name",
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Living Room Fan"
|
||||
},
|
||||
{
|
||||
"description": "SerialNumber",
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "fan.living_room_fan"
|
||||
},
|
||||
{
|
||||
"description": "FirmwareRevision",
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "0.104.0.dev0"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Active",
|
||||
"format": "uint8",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "RotationDirection",
|
||||
"format": "int",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000028-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "RotationSpeed",
|
||||
"format": "float",
|
||||
"iid": 12,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000029-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
}
|
||||
],
|
||||
"iid": 8,
|
||||
"stype": "fanv2",
|
||||
"type": "000000B7-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 766313939,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Identify",
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"description": "Manufacturer",
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"description": "Model",
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Fan"
|
||||
},
|
||||
{
|
||||
"description": "Name",
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Ceiling Fan"
|
||||
},
|
||||
{
|
||||
"description": "SerialNumber",
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "fan.ceiling_fan"
|
||||
},
|
||||
{
|
||||
"description": "FirmwareRevision",
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "0.104.0.dev0"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Active",
|
||||
"format": "uint8",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "RotationSpeed",
|
||||
"format": "float",
|
||||
"iid": 10,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000029-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
}
|
||||
],
|
||||
"iid": 8,
|
||||
"stype": "fanv2",
|
||||
"type": "000000B7-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,229 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HASS Bridge S6"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "37",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "string",
|
||||
"value": "01.01.00"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 1233851541,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 163,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 164,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Lookin"
|
||||
},
|
||||
{
|
||||
"iid": 165,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Climate Control"
|
||||
},
|
||||
{
|
||||
"iid": 166,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "89 Living Room"
|
||||
},
|
||||
{
|
||||
"iid": 167,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "climate.89_living_room"
|
||||
},
|
||||
{
|
||||
"iid": 168,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
],
|
||||
"primary": false
|
||||
},
|
||||
{
|
||||
"iid": 169,
|
||||
"type": "BC",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 170,
|
||||
"type": "B2",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 171,
|
||||
"type": "B1",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2, 3],
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"iid": 172,
|
||||
"type": "11",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"unit": "celsius",
|
||||
"minStep": 0.1,
|
||||
"maxValue": 1000,
|
||||
"minValue": -273.1,
|
||||
"value": 22.8
|
||||
},
|
||||
{
|
||||
"iid": 173,
|
||||
"type": "35",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"unit": "celsius",
|
||||
"minStep": 0.1,
|
||||
"maxValue": 30.0,
|
||||
"minValue": 16.0,
|
||||
"value": 20.0
|
||||
},
|
||||
{
|
||||
"iid": 174,
|
||||
"type": "36",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"iid": 180,
|
||||
"type": "10",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"unit": "percentage",
|
||||
"minStep": 1,
|
||||
"maxValue": 100,
|
||||
"minValue": 0,
|
||||
"value": 60
|
||||
}
|
||||
],
|
||||
"primary": true,
|
||||
"linked": [175]
|
||||
},
|
||||
{
|
||||
"iid": 175,
|
||||
"type": "B7",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 176,
|
||||
"type": "B0",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"iid": 177,
|
||||
"type": "29",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"description": "Fan Mode",
|
||||
"unit": "percentage",
|
||||
"minStep": 33.333333333333336,
|
||||
"maxValue": 100,
|
||||
"minValue": 0,
|
||||
"value": 33.33333333333334
|
||||
},
|
||||
{
|
||||
"iid": 178,
|
||||
"type": "BF",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"description": "Fan Auto",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 179,
|
||||
"type": "B6",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"description": "Swing Mode",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,183 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HASS Bridge S6"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "37",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "string",
|
||||
"value": "01.01.00"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 3982136094,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 597,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 598,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "FirstAlert"
|
||||
},
|
||||
{
|
||||
"iid": 599,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1039102"
|
||||
},
|
||||
{
|
||||
"iid": 600,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Laundry Smoke ED78"
|
||||
},
|
||||
{
|
||||
"iid": 601,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "light.laundry_smoke_ed78"
|
||||
},
|
||||
{
|
||||
"iid": 602,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.4.84"
|
||||
},
|
||||
{
|
||||
"iid": 603,
|
||||
"type": "53",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "9.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 604,
|
||||
"type": "96",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 605,
|
||||
"type": "68",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 606,
|
||||
"type": "8F",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"iid": 607,
|
||||
"type": "79",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 608,
|
||||
"type": "43",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 609,
|
||||
"type": "25",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"iid": 610,
|
||||
"type": "8",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,330 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HASS Bridge S6"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "37",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "string",
|
||||
"value": "01.01.00"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 878448248,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "RYSE Inc."
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "RYSE Shade"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Kitchen Window"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "cover.kitchen_window"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "3.6.2"
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "53",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "96",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "68",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "8F",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"iid": 12,
|
||||
"type": "79",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 13,
|
||||
"type": "8C",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 14,
|
||||
"type": "6D",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 15,
|
||||
"type": "7C",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "72",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 123016423,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 155,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 156,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "RYSE Inc."
|
||||
},
|
||||
{
|
||||
"iid": 157,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "RYSE Shade"
|
||||
},
|
||||
{
|
||||
"iid": 158,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Family Room North"
|
||||
},
|
||||
{
|
||||
"iid": 159,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "cover.family_door_north"
|
||||
},
|
||||
{
|
||||
"iid": 160,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "3.6.2"
|
||||
},
|
||||
{
|
||||
"iid": 161,
|
||||
"type": "53",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 162,
|
||||
"type": "96",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 163,
|
||||
"type": "68",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 164,
|
||||
"type": "8F",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"iid": 165,
|
||||
"type": "79",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 166,
|
||||
"type": "8C",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 167,
|
||||
"type": "6D",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 98
|
||||
},
|
||||
{
|
||||
"iid": 168,
|
||||
"type": "7C",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"maxValue": 100,
|
||||
"value": 98
|
||||
},
|
||||
{
|
||||
"iid": 169,
|
||||
"type": "72",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"iid": 170,
|
||||
"type": "6F",
|
||||
"perms": ["pw", "pr", "ev"],
|
||||
"format": "bool",
|
||||
"value": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,253 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Identify",
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"description": "Manufacturer",
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"description": "Model",
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"description": "Name",
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant Bridge"
|
||||
},
|
||||
{
|
||||
"description": "SerialNumber",
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"description": "FirmwareRevision",
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "0.104.0.dev0"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 1256851357,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Identify",
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"description": "Manufacturer",
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"description": "Model",
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Fan"
|
||||
},
|
||||
{
|
||||
"description": "Name",
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Living Room Fan"
|
||||
},
|
||||
{
|
||||
"description": "SerialNumber",
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "fan.living_room_fan"
|
||||
},
|
||||
{
|
||||
"description": "FirmwareRevision",
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "0.104.0.dev0"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Active",
|
||||
"format": "uint8",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "RotationDirection",
|
||||
"format": "int",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000028-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "SwingMode",
|
||||
"format": "uint8",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B6-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "RotationSpeed",
|
||||
"format": "float",
|
||||
"iid": 12,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000029-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
}
|
||||
],
|
||||
"iid": 8,
|
||||
"stype": "fanv2",
|
||||
"type": "000000B7-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 766313939,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Identify",
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"description": "Manufacturer",
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"description": "Model",
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Fan"
|
||||
},
|
||||
{
|
||||
"description": "Name",
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Ceiling Fan"
|
||||
},
|
||||
{
|
||||
"description": "SerialNumber",
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "fan.ceiling_fan"
|
||||
},
|
||||
{
|
||||
"description": "FirmwareRevision",
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "0.104.0.dev0"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Active",
|
||||
"format": "uint8",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "RotationSpeed",
|
||||
"format": "float",
|
||||
"iid": 10,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000029-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
}
|
||||
],
|
||||
"iid": 8,
|
||||
"stype": "fanv2",
|
||||
"type": "000000B7-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,166 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Identify",
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"description": "Manufacturer",
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"description": "Model",
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"description": "Name",
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant Bridge"
|
||||
},
|
||||
{
|
||||
"description": "SerialNumber",
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"description": "FirmwareRevision",
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "0.104.0.dev0"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 1256851357,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Identify",
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"description": "Manufacturer",
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"description": "Model",
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Fan"
|
||||
},
|
||||
{
|
||||
"description": "Name",
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Living Room Fan"
|
||||
},
|
||||
{
|
||||
"description": "SerialNumber",
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "fan.living_room_fan"
|
||||
},
|
||||
{
|
||||
"description": "FirmwareRevision",
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "0.104.0.dev0"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Active",
|
||||
"format": "uint8",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "RotationDirection",
|
||||
"format": "int",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000028-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "SwingMode",
|
||||
"format": "uint8",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B6-0000-1000-8000-0026BB765291",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "RotationSpeed",
|
||||
"format": "float",
|
||||
"iid": 12,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000029-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
}
|
||||
],
|
||||
"iid": 8,
|
||||
"stype": "fanv2",
|
||||
"type": "000000B7-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,237 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HASS Bridge S6"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "37",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "string",
|
||||
"value": "01.01.00"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 1233851541,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 163,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 164,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Lookin"
|
||||
},
|
||||
{
|
||||
"iid": 165,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Climate Control"
|
||||
},
|
||||
{
|
||||
"iid": 166,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "89 Living Room"
|
||||
},
|
||||
{
|
||||
"iid": 167,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "climate.89_living_room"
|
||||
},
|
||||
{
|
||||
"iid": 168,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
],
|
||||
"primary": false
|
||||
},
|
||||
{
|
||||
"iid": 169,
|
||||
"type": "BC",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 170,
|
||||
"type": "B2",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 171,
|
||||
"type": "B1",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2, 3],
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"iid": 172,
|
||||
"type": "11",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"unit": "celsius",
|
||||
"minStep": 0.1,
|
||||
"maxValue": 1000,
|
||||
"minValue": -273.1,
|
||||
"value": 22.8
|
||||
},
|
||||
{
|
||||
"iid": 173,
|
||||
"type": "35",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"unit": "celsius",
|
||||
"minStep": 0.1,
|
||||
"maxValue": 30.0,
|
||||
"minValue": 16.0,
|
||||
"value": 20.0
|
||||
},
|
||||
{
|
||||
"iid": 174,
|
||||
"type": "36",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"iid": 180,
|
||||
"type": "10",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"unit": "percentage",
|
||||
"minStep": 1,
|
||||
"maxValue": 100,
|
||||
"minValue": 0,
|
||||
"value": 60
|
||||
},
|
||||
{
|
||||
"iid": 290,
|
||||
"type": "B6",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"primary": true,
|
||||
"linked": [175]
|
||||
},
|
||||
{
|
||||
"iid": 175,
|
||||
"type": "B7",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 176,
|
||||
"type": "B0",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"iid": 177,
|
||||
"type": "29",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"description": "Fan Mode",
|
||||
"unit": "percentage",
|
||||
"minStep": 33.333333333333336,
|
||||
"maxValue": 100,
|
||||
"minValue": 0,
|
||||
"value": 33.33333333333334
|
||||
},
|
||||
{
|
||||
"iid": 178,
|
||||
"type": "BF",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"description": "Fan Auto",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 179,
|
||||
"type": "B6",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"description": "Swing Mode",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,173 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HASS Bridge S6"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "37",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "string",
|
||||
"value": "01.01.00"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 293334836,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "switchbot"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "WoHumi"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Humidifier 182A"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "humidifier.humidifier_182a"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "BD",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "10",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"unit": "percentage",
|
||||
"minStep": 1,
|
||||
"maxValue": 100,
|
||||
"minValue": 0,
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "B3",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "B4",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"maxValue": 1,
|
||||
"minValue": 1,
|
||||
"valid-values": [1],
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"iid": 12,
|
||||
"type": "B0",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 13,
|
||||
"type": "CA",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"unit": "percentage",
|
||||
"minStep": 1,
|
||||
"maxValue": 100,
|
||||
"minValue": 0,
|
||||
"value": 45
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,173 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HASS Bridge S6"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "37",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "string",
|
||||
"value": "01.01.00"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 293334836,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "switchbot"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "WoHumi"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Humidifier 182A"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "humidifier.humidifier_182a"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "BD",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "10",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"unit": "percentage",
|
||||
"minStep": 1,
|
||||
"maxValue": 100,
|
||||
"minValue": 0,
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "B3",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "B4",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"maxValue": 1,
|
||||
"minValue": 1,
|
||||
"valid-values": [1],
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"iid": 12,
|
||||
"type": "B0",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 13,
|
||||
"type": "CA",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"unit": "percentage",
|
||||
"minStep": 1,
|
||||
"maxValue": 80,
|
||||
"minValue": 20,
|
||||
"value": 45
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,205 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Home Assistant"
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Bridge"
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HASS Bridge S6"
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "homekit.bridge"
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2024.2.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "A2",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "37",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "string",
|
||||
"value": "01.01.00"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 3982136094,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "3E",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 597,
|
||||
"type": "14",
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"iid": 598,
|
||||
"type": "20",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "FirstAlert"
|
||||
},
|
||||
{
|
||||
"iid": 599,
|
||||
"type": "21",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1039102"
|
||||
},
|
||||
{
|
||||
"iid": 600,
|
||||
"type": "23",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Laundry Smoke ED78"
|
||||
},
|
||||
{
|
||||
"iid": 601,
|
||||
"type": "30",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "light.laundry_smoke_ed78"
|
||||
},
|
||||
{
|
||||
"iid": 602,
|
||||
"type": "52",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.4.84"
|
||||
},
|
||||
{
|
||||
"iid": 603,
|
||||
"type": "53",
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "9.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 604,
|
||||
"type": "96",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 605,
|
||||
"type": "68",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 606,
|
||||
"type": "8F",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1, 2],
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"iid": 607,
|
||||
"type": "79",
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"valid-values": [0, 1],
|
||||
"value": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 608,
|
||||
"type": "43",
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 609,
|
||||
"type": "25",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"iid": 610,
|
||||
"type": "8",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"iid": 611,
|
||||
"type": "13",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"maxValue": 360,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "arcdegrees",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"iid": 612,
|
||||
"type": "2F",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"value": 75
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,161 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"description": "Hardware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Garzola Marco",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Daikin-fwec3a-esp32-homekit-bridge",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Air Conditioner",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "00000001",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "000000BC-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"description": "Active"
|
||||
},
|
||||
{
|
||||
"type": "00000011-0000-1000-8000-0026BB765291",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 27.9,
|
||||
"description": "Current Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 0,
|
||||
"maxValue": 99,
|
||||
"minStep": 0.5
|
||||
},
|
||||
{
|
||||
"type": "000000B1-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 3,
|
||||
"description": "Current Heater Cooler State"
|
||||
},
|
||||
{
|
||||
"type": "000000B2-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"description": "Target Heater Cooler State"
|
||||
},
|
||||
{
|
||||
"type": "0000000D-0000-1000-8000-0026BB765291",
|
||||
"iid": 14,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 24.5,
|
||||
"description": "Cooling Threshold Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 18,
|
||||
"maxValue": 32,
|
||||
"minStep": 0.5
|
||||
},
|
||||
{
|
||||
"type": "00000012-0000-1000-8000-0026BB765291",
|
||||
"iid": 15,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 24.5,
|
||||
"description": "Heating Threshold Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 13,
|
||||
"maxValue": 27,
|
||||
"minStep": 0.5
|
||||
},
|
||||
{
|
||||
"type": "00000029-0000-1000-8000-0026BB765291",
|
||||
"iid": 16,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 100,
|
||||
"description": "Rotation Speed",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 17,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "SlaveID 1",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,192 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 2,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"value": "Koogeek-LS1-20833F"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"value": "Koogeek"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"value": "LS1"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"value": "AAAA011111111111"
|
||||
},
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 6,
|
||||
"perms": ["pw"],
|
||||
"type": "14"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 23,
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"value": "2.2.15"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"type": "3E"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 8,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "25",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"iid": 9,
|
||||
"maxValue": 359,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "13",
|
||||
"unit": "arcdegrees",
|
||||
"value": 44
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"iid": 10,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "2F",
|
||||
"unit": "percentage",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 11,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "8",
|
||||
"unit": "percentage",
|
||||
"value": 100
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 12,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"value": "Light Strip"
|
||||
}
|
||||
],
|
||||
"iid": 7,
|
||||
"primary": true,
|
||||
"type": "43"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "TIMER_SETTINGS",
|
||||
"format": "tlv8",
|
||||
"iid": 14,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "4aaaf942-0dec-11e5-b939-0800200c9a66",
|
||||
"value": "AHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
|
||||
}
|
||||
],
|
||||
"iid": 13,
|
||||
"type": "4aaaf940-0dec-11e5-b939-0800200c9a66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "FW Upgrade supported types",
|
||||
"format": "string",
|
||||
"iid": 16,
|
||||
"perms": ["pr", "hd"],
|
||||
"type": "151909D2-3802-11E4-916C-0800200C9A66",
|
||||
"value": "url,data"
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade URL",
|
||||
"format": "string",
|
||||
"iid": 17,
|
||||
"maxLen": 256,
|
||||
"perms": ["pw", "hd"],
|
||||
"type": "151909D1-3802-11E4-916C-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade Status",
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 18,
|
||||
"perms": ["pr", "ev", "hd"],
|
||||
"type": "151909D6-3802-11E4-916C-0800200C9A66",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade Data",
|
||||
"format": "data",
|
||||
"iid": 19,
|
||||
"perms": ["pw", "hd"],
|
||||
"type": "151909D7-3802-11E4-916C-0800200C9A66"
|
||||
}
|
||||
],
|
||||
"hidden": true,
|
||||
"iid": 15,
|
||||
"type": "151909D0-3802-11E4-916C-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Timezone",
|
||||
"format": "int",
|
||||
"iid": 21,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "151909D5-3802-11E4-916C-0800200C9A66",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "Time value since Epoch",
|
||||
"format": "int",
|
||||
"iid": 22,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "151909D4-3802-11E4-916C-0800200C9A66",
|
||||
"value": 1550348623
|
||||
}
|
||||
],
|
||||
"iid": 20,
|
||||
"type": "151909D3-3802-11E4-916C-0800200C9A66"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,314 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 2,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Koogeek-P1-A00AA0"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Koogeek"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "P1EU"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "EUCP03190xxxxx48"
|
||||
},
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 6,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 37,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "2.3.7"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 8,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000026-0000-1000-8000-0026BB765291",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 10,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "outlet"
|
||||
}
|
||||
],
|
||||
"iid": 7,
|
||||
"primary": true,
|
||||
"stype": "outlet",
|
||||
"type": "00000047-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "TIMER_SETTINGS",
|
||||
"format": "tlv8",
|
||||
"iid": 12,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "4AAAF942-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
|
||||
}
|
||||
],
|
||||
"iid": 11,
|
||||
"stype": "Unknown Service: 4AAAF940-0DEC-11E5-B939-0800200C9A66",
|
||||
"type": "4AAAF940-0DEC-11E5-B939-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "FW Upgrade supported types",
|
||||
"format": "string",
|
||||
"iid": 14,
|
||||
"perms": ["pr", "hd"],
|
||||
"type": "151909D2-3802-11E4-916C-0800200C9A66",
|
||||
"value": "url,data"
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade URL",
|
||||
"format": "string",
|
||||
"iid": 15,
|
||||
"maxLen": 256,
|
||||
"perms": ["pw", "hd"],
|
||||
"type": "151909D1-3802-11E4-916C-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade Status",
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 16,
|
||||
"perms": ["pr", "ev", "hd"],
|
||||
"type": "151909D6-3802-11E4-916C-0800200C9A66",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade Data",
|
||||
"format": "data",
|
||||
"iid": 17,
|
||||
"perms": ["pw", "hd"],
|
||||
"type": "151909D7-3802-11E4-916C-0800200C9A66"
|
||||
}
|
||||
],
|
||||
"hidden": true,
|
||||
"iid": 13,
|
||||
"stype": "Unknown Service: 151909D0-3802-11E4-916C-0800200C9A66",
|
||||
"type": "151909D0-3802-11E4-916C-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "Timezone",
|
||||
"format": "int",
|
||||
"iid": 19,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "151909D5-3802-11E4-916C-0800200C9A66",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "Time value since Epoch",
|
||||
"format": "int",
|
||||
"iid": 20,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "151909D4-3802-11E4-916C-0800200C9A66",
|
||||
"value": 1570358601
|
||||
}
|
||||
],
|
||||
"iid": 18,
|
||||
"stype": "Unknown Service: 151909D3-3802-11E4-916C-0800200C9A66",
|
||||
"type": "151909D3-3802-11E4-916C-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "1 REALTIME_ENERGY",
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"iid": 22,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "4AAAF931-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": 5
|
||||
},
|
||||
{
|
||||
"description": "2 CURRENT_HOUR_DATA",
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"iid": 23,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "4AAAF932-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "3 HOUR_DATA_TODAY",
|
||||
"format": "tlv8",
|
||||
"iid": 24,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF933-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "4 HOUR_DATA_YESTERDAY",
|
||||
"format": "tlv8",
|
||||
"iid": 25,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF934-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "5 HOUR_DATA_2_DAYS_BEFORE",
|
||||
"format": "tlv8",
|
||||
"iid": 26,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF935-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "6 HOUR_DATA_3_DAYS_BEFORE",
|
||||
"format": "tlv8",
|
||||
"iid": 27,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF936-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "7 HOUR_DATA_4_DAYS_BEFORE",
|
||||
"format": "tlv8",
|
||||
"iid": 28,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF937-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "8 HOUR_DATA_5_DAYS_BEFORE",
|
||||
"format": "tlv8",
|
||||
"iid": 29,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF938-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "9 HOUR_DATA_6_DAYS_BEFORE",
|
||||
"format": "tlv8",
|
||||
"iid": 30,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF939-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "10 HOUR_DATA_7_DAYS_BEFORE",
|
||||
"format": "tlv8",
|
||||
"iid": 31,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF93A-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "11 DAY_DATA_THIS_MONTH",
|
||||
"format": "tlv8",
|
||||
"iid": 32,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF93B-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AHwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
|
||||
},
|
||||
{
|
||||
"description": "12 DAY_DATA_LAST_MONTH",
|
||||
"format": "tlv8",
|
||||
"iid": 33,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF93C-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "AHwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
|
||||
},
|
||||
{
|
||||
"description": "13 MONTH_DATA_THIS_YEAR",
|
||||
"format": "tlv8",
|
||||
"iid": 34,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF93D-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "ADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "14 MONTH_DATA_LAST_YEAR",
|
||||
"format": "tlv8",
|
||||
"iid": 35,
|
||||
"perms": ["pr"],
|
||||
"type": "4AAAF93E-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": "ADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "15 RUNNING_TIME",
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 36,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "4AAAF93F-0DEC-11E5-B939-0800200C9A66",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"iid": 21,
|
||||
"stype": "Unknown Service: 4AAAF930-0DEC-11E5-B939-0800200C9A66",
|
||||
"type": "4AAAF930-0DEC-11E5-B939-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 39,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"value": "1.1.0"
|
||||
}
|
||||
],
|
||||
"iid": 38,
|
||||
"stype": "service",
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,212 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 2,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Koogeek-SW2-187A91"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Koogeek"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "KH02CN"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "CNNT061751001372"
|
||||
},
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 6,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "1.0.3"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": true,
|
||||
"format": "bool",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 10,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Switch 1"
|
||||
}
|
||||
],
|
||||
"iid": 8,
|
||||
"primary": true,
|
||||
"stype": "switch",
|
||||
"type": "00000049-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": true,
|
||||
"format": "bool",
|
||||
"iid": 12,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 13,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Switch 2"
|
||||
}
|
||||
],
|
||||
"iid": 11,
|
||||
"primary": true,
|
||||
"stype": "switch",
|
||||
"type": "00000049-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 15,
|
||||
"maxLen": 64,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "custom service"
|
||||
},
|
||||
{
|
||||
"description": "Current Time",
|
||||
"format": "int",
|
||||
"iid": 16,
|
||||
"perms": ["pr"],
|
||||
"type": "7BBBA961-EB2D-11E5-A837-0800200C9A66",
|
||||
"value": 1599731035
|
||||
},
|
||||
{
|
||||
"description": "Time Zone",
|
||||
"format": "int",
|
||||
"iid": 17,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "7BBBA980-EB2D-11E5-A837-0800200C9A66",
|
||||
"value": 16
|
||||
},
|
||||
{
|
||||
"description": "Current Power",
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 18,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "7BBBA96E-EB2D-11E5-A837-0800200C9A66",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "Power Consumption Today",
|
||||
"format": "data",
|
||||
"iid": 19,
|
||||
"perms": ["pr"],
|
||||
"type": "7BBBA96F-EB2D-11E5-A837-0800200C9A66",
|
||||
"value": "9pcBAL4GAAC1BgAAtgYAAELhAABXIwAAtgYAAKcGAABHOQAA1aMAAP//////////////////////////////////////////////////////////////////////////"
|
||||
},
|
||||
{
|
||||
"description": "Power Consumption last 2 Month",
|
||||
"format": "data",
|
||||
"iid": 20,
|
||||
"perms": ["pr"],
|
||||
"type": "7BBBA972-EB2D-11E5-A837-0800200C9A66",
|
||||
"value": "/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACCFAEA5HkIADGbAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
},
|
||||
{
|
||||
"description": "Power Consumption last 12 Month",
|
||||
"format": "data",
|
||||
"iid": 21,
|
||||
"perms": ["pr"],
|
||||
"type": "7BBBA970-EB2D-11E5-A837-0800200C9A66",
|
||||
"value": "//////////////////////////////////////////+XKQ0A////////////////"
|
||||
}
|
||||
],
|
||||
"hidden": true,
|
||||
"iid": 14,
|
||||
"stype": "Unknown Service: 7BBBA977-EB2D-11E5-A837-0800200C9A66",
|
||||
"type": "7BBBA977-EB2D-11E5-A837-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "FW Upgrade supported types",
|
||||
"format": "string",
|
||||
"iid": 23,
|
||||
"perms": ["pr", "hd"],
|
||||
"type": "151909D2-3802-11E4-916C-0800200C9A66",
|
||||
"value": "url,data"
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade URL",
|
||||
"format": "string",
|
||||
"iid": 24,
|
||||
"maxLen": 256,
|
||||
"perms": ["pw", "hd"],
|
||||
"type": "151909D1-3802-11E4-916C-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade Status",
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 25,
|
||||
"perms": ["pr", "ev", "hd"],
|
||||
"type": "151909D6-3802-11E4-916C-0800200C9A66",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade Data",
|
||||
"format": "data",
|
||||
"iid": 26,
|
||||
"perms": ["pw", "hd"],
|
||||
"type": "151909D7-3802-11E4-916C-0800200C9A66"
|
||||
}
|
||||
],
|
||||
"hidden": true,
|
||||
"iid": 22,
|
||||
"stype": "Unknown Service: 151909D0-3802-11E4-916C-0800200C9A66",
|
||||
"type": "151909D0-3802-11E4-916C-0800200C9A66"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,153 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "14"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "20",
|
||||
"value": "Lennox"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "21",
|
||||
"value": "E30 2B"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "23",
|
||||
"value": "Lennox"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "30",
|
||||
"value": "XXXXXXXX"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "52",
|
||||
"value": "3.40.XX"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"type": "53",
|
||||
"value": "3.0.XX"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"type": "3E"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 101,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "F",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 102,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "33",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 103,
|
||||
"maxValue": 100,
|
||||
"minStep": 0.1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "11",
|
||||
"unit": "celsius",
|
||||
"value": 20.5
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 104,
|
||||
"maxValue": 32,
|
||||
"minStep": 0.5,
|
||||
"minValue": 4.5,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "35",
|
||||
"unit": "celsius",
|
||||
"value": 21
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 105,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "36",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 106,
|
||||
"maxValue": 37,
|
||||
"minStep": 0.5,
|
||||
"minValue": 16,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "D",
|
||||
"unit": "celsius",
|
||||
"value": 29.5
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 107,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "10",
|
||||
"unit": "percentage",
|
||||
"value": 34
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 108,
|
||||
"maxValue": 32,
|
||||
"minStep": 0.5,
|
||||
"minValue": 4.5,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "12",
|
||||
"unit": "celsius",
|
||||
"value": 21
|
||||
}
|
||||
],
|
||||
"iid": 100,
|
||||
"primary": true,
|
||||
"type": "4A"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,841 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "LG Electronics"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "OLED55B9PUA"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "LG webOS TV AF80"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "999AAAAAA999"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "04.71.04"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "hd"],
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"value": "2.1;16B62a"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 1,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 18,
|
||||
"perms": ["pr"],
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"value": "1.1.0"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 16,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "service",
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 50,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "LG webOS TV"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 51,
|
||||
"maxLen": 25,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E3",
|
||||
"value": "LG webOS TV OLED55B9PUA"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 52,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"iid": 53,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E7",
|
||||
"value": 6
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 54,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "E8",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 57,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pw"],
|
||||
"type": "DF"
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 59,
|
||||
"maxValue": 16,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pw"],
|
||||
"type": "E1"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 48,
|
||||
"linked": [64, 80, 384, 256, 272, 288, 304, 320, 336, 352],
|
||||
"primary": true,
|
||||
"stype": "Unknown Service: D8",
|
||||
"type": "D8"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint16",
|
||||
"iid": 66,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E5",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "tlv8",
|
||||
"iid": 67,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E4",
|
||||
"value": "AQACAQA="
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 64,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "Unknown Service: DA",
|
||||
"type": "DA"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 84,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000119-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 82,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "0000011A-0000-1000-8000-0026BB765291",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 83,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Speaker"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 85,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 86,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "E9",
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 87,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pw"],
|
||||
"type": "EA"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 80,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "speaker",
|
||||
"type": "00000113-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "tlv8",
|
||||
"iid": 385,
|
||||
"perms": ["pr"],
|
||||
"type": "222",
|
||||
"value": "AQgBBnRAvoQmJQIaAQYgF0KJBUICBiAXQokFQgAAAgZ0QL6EJiQ="
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 384,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "Unknown Service: 221",
|
||||
"type": "221"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 258,
|
||||
"maxValue": 10,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DB",
|
||||
"value": 8
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 259,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "D6",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"iid": 260,
|
||||
"perms": ["pr"],
|
||||
"type": "E6",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 261,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "AirPlay"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 262,
|
||||
"maxLen": 25,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "E3",
|
||||
"value": "AirPlay"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 264,
|
||||
"maxValue": 6,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DC",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 263,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "135",
|
||||
"value": 3
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 256,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "Unknown Service: D9",
|
||||
"type": "D9"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 274,
|
||||
"maxValue": 10,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DB",
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 275,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "D6",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"iid": 276,
|
||||
"perms": ["pr"],
|
||||
"type": "E6",
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 277,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Live TV"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 278,
|
||||
"maxLen": 25,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "E3",
|
||||
"value": "Live TV"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 280,
|
||||
"maxValue": 6,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DC",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 279,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "135",
|
||||
"value": 3
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 272,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "Unknown Service: D9",
|
||||
"type": "D9"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 290,
|
||||
"maxValue": 10,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DB",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 291,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "D6",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"iid": 292,
|
||||
"perms": ["pr"],
|
||||
"type": "E6",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 293,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "HDMI 1"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 294,
|
||||
"maxLen": 25,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E3",
|
||||
"value": "HDMI 1"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 296,
|
||||
"maxValue": 6,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DC",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 295,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "135",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 288,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "Unknown Service: D9",
|
||||
"type": "D9"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 306,
|
||||
"maxValue": 10,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DB",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 307,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "D6",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"iid": 308,
|
||||
"perms": ["pr"],
|
||||
"type": "E6",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 309,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "HDMI 2"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 310,
|
||||
"maxLen": 25,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E3",
|
||||
"value": "Sony"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 312,
|
||||
"maxValue": 6,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DC",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 311,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "135",
|
||||
"value": 2
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 304,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "Unknown Service: D9",
|
||||
"type": "D9"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 322,
|
||||
"maxValue": 10,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DB",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 323,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "D6",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"iid": 324,
|
||||
"perms": ["pr"],
|
||||
"type": "E6",
|
||||
"value": 5
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 325,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "HDMI 3"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 326,
|
||||
"maxLen": 25,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E3",
|
||||
"value": "Apple"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 328,
|
||||
"maxValue": 6,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DC",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 327,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "135",
|
||||
"value": 2
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 320,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "Unknown Service: D9",
|
||||
"type": "D9"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 338,
|
||||
"maxValue": 10,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DB",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 339,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "D6",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"iid": 340,
|
||||
"perms": ["pr"],
|
||||
"type": "E6",
|
||||
"value": 7
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 341,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "AV"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 342,
|
||||
"maxLen": 25,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E3",
|
||||
"value": "AV"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 344,
|
||||
"maxValue": 6,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DC",
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 343,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "135",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 336,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "Unknown Service: D9",
|
||||
"type": "D9"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 354,
|
||||
"maxValue": 10,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DB",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 355,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "D6",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint32",
|
||||
"iid": 356,
|
||||
"perms": ["pr"],
|
||||
"type": "E6",
|
||||
"value": 6
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 357,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "HDMI 4"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 358,
|
||||
"maxLen": 25,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E3",
|
||||
"value": "HDMI 4"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 360,
|
||||
"maxValue": 6,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "DC",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "uint8",
|
||||
"iid": 359,
|
||||
"maxValue": 3,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "135",
|
||||
"value": 2
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"iid": 352,
|
||||
"linked": [],
|
||||
"primary": false,
|
||||
"stype": "Unknown Service: D9",
|
||||
"type": "D9"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,178 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 85899345921,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 137438953473,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Lutron Electronics Co., Inc",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 141733920769,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "L-BDG2-WH",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 150323855361,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Smart Bridge 2",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 206158430209,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "12344331",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 352187318273,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "08.08",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 236223201282,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 21474836482,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 85899345921,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 137438953473,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Lutron Electronics Co., Inc",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 141733920769,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "PD-FSQN-XX",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 150323855361,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Cas\u00e9ta\u00ae Wireless Fan Speed Control",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 206158430209,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "39024290",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 352187318273,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "001.005",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000040-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000029-0000-1000-8000-0026BB765291",
|
||||
"iid": 176093659138,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 0,
|
||||
"description": "Rotation Speed",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 25
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 150323855362,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Cas\u00e9ta\u00ae Wireless Fan Speed Control",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"iid": 158913789954,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": false,
|
||||
"description": "On"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,212 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Meross",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "MSS425F",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "MSS425F-15cc",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "HH41234",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "4.2.3",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "4.0.0",
|
||||
"description": "Hardware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"iid": 9,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2.0.1;16A75",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 11,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 12,
|
||||
"type": "00000047-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Outlet-1",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"iid": 14,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "On"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 15,
|
||||
"type": "00000047-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 16,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Outlet-2",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"iid": 17,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "On"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 18,
|
||||
"type": "00000047-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 19,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Outlet-3",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"iid": 20,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "On"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 21,
|
||||
"type": "00000047-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 22,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Outlet-4",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"iid": 23,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "On"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 24,
|
||||
"type": "00000047-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 25,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "USB",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"iid": 26,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "On"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,132 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Meross",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "MSS565",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "MSS565-28da",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "BB1121",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "4.1.9",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "4.0.0",
|
||||
"description": "Hardware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"iid": 9,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2.0.1;16A75",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 11,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 12,
|
||||
"type": "00000043-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "On"
|
||||
},
|
||||
{
|
||||
"type": "00000008-0000-1000-8000-0026BB765291",
|
||||
"iid": 14,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 67,
|
||||
"description": "Brightness",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 15,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Dimmer Switch",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,198 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"primary": true,
|
||||
"services": [
|
||||
{
|
||||
"type": "0000004A-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"iid": 20,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Thermostat",
|
||||
"perms": ["pr"],
|
||||
"iid": 24
|
||||
},
|
||||
{
|
||||
"type": "00000010-0000-1000-8000-0026BB765291",
|
||||
"format": "float",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"stepValue": 1,
|
||||
"value": 40,
|
||||
"iid": 27,
|
||||
"unit": "percentage",
|
||||
"perms": ["pr", "ev"]
|
||||
},
|
||||
{
|
||||
"type": "0000000F-0000-1000-8000-0026BB765291",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"stepValue": 1,
|
||||
"format": "uint8",
|
||||
"perms": ["pr", "ev"],
|
||||
"iid": 21
|
||||
},
|
||||
{
|
||||
"type": "00000033-0000-1000-8000-0026BB765291",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"stepValue": 1,
|
||||
"format": "uint8",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"iid": 22
|
||||
},
|
||||
{
|
||||
"type": "00000011-0000-1000-8000-0026BB765291",
|
||||
"value": 24.1,
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"stepValue": 0.1,
|
||||
"unit": "celsius",
|
||||
"format": "float",
|
||||
"perms": ["pr", "ev"],
|
||||
"iid": 25
|
||||
},
|
||||
{
|
||||
"type": "00000035-0000-1000-8000-0026BB765291",
|
||||
"value": 22,
|
||||
"minValue": 5,
|
||||
"maxValue": 30,
|
||||
"stepValue": 0.1,
|
||||
"unit": "celsius",
|
||||
"format": "float",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"iid": 23
|
||||
},
|
||||
{
|
||||
"type": "00000036-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"stepValue": 1,
|
||||
"value": 0,
|
||||
"iid": 26,
|
||||
"perms": ["pr", "pw", "ev"]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"iid": 1,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pw"],
|
||||
"iid": 2,
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Empowered Homes Inc.",
|
||||
"perms": ["pr"],
|
||||
"iid": 3
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "v1",
|
||||
"perms": ["pr"],
|
||||
"iid": 4
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Mysa-85dda9",
|
||||
"perms": ["pr"],
|
||||
"iid": 5
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "AAAAAAA000",
|
||||
"perms": ["pr"],
|
||||
"iid": 6
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "2.8.1",
|
||||
"perms": ["pr"],
|
||||
"iid": 7
|
||||
},
|
||||
{
|
||||
"hidden": true,
|
||||
"type": "22280E2C-9B79-43BD-8370-5A8F67777B29",
|
||||
"format": "string",
|
||||
"value": "b4e62d85dda9",
|
||||
"perms": ["pr"],
|
||||
"iid": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"iid": 11
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "00000043-0000-1000-8000-0026BB765291",
|
||||
"iid": 40,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"iid": 42
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Display",
|
||||
"perms": ["pr"],
|
||||
"iid": 41
|
||||
},
|
||||
{
|
||||
"type": "00000008-0000-1000-8000-0026BB765291",
|
||||
"format": "int",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"stepValue": 1,
|
||||
"value": 0,
|
||||
"iid": 43,
|
||||
"unit": "percentage",
|
||||
"perms": ["pr", "pw", "ev"]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "3354EC82-AF38-4755-B4A4-4DB8E418F555",
|
||||
"iid": 50,
|
||||
"characteristics": [
|
||||
{
|
||||
"hidden": true,
|
||||
"type": "E71D8348-BB33-4C34-8C50-A64B1136EDD2",
|
||||
"format": "bool",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw"],
|
||||
"iid": 51
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,354 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Nanoleaf",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "NL55",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Nanoleaf Strip 3B32",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "AAAA011111111111",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.4.40",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.2.4",
|
||||
"description": "Hardware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "string",
|
||||
"value": "5.0;dfeceb3a",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000220-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "data",
|
||||
"value": "cf0c2e5a4476e152"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "00000055-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "0000004C-0000-1000-8000-0026BB765291",
|
||||
"iid": 34,
|
||||
"perms": [],
|
||||
"format": "data",
|
||||
"description": "Pair Setup"
|
||||
},
|
||||
{
|
||||
"type": "0000004E-0000-1000-8000-0026BB765291",
|
||||
"iid": 35,
|
||||
"perms": [],
|
||||
"format": "data",
|
||||
"description": "Pair Verify"
|
||||
},
|
||||
{
|
||||
"type": "0000004F-0000-1000-8000-0026BB765291",
|
||||
"iid": 36,
|
||||
"perms": [],
|
||||
"format": "uint8",
|
||||
"description": "Pairing Features"
|
||||
},
|
||||
{
|
||||
"type": "00000050-0000-1000-8000-0026BB765291",
|
||||
"iid": 37,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "data",
|
||||
"value": null,
|
||||
"description": "Pairing Pairings"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 17,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 18,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2.2.0",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 19,
|
||||
"type": "00000043-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 49,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"iid": 51,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "On"
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 50,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Nanoleaf Light Strip",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000008-0000-1000-8000-0026BB765291",
|
||||
"iid": 52,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 100,
|
||||
"description": "Brightness",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "000000CE-0000-1000-8000-0026BB765291",
|
||||
"iid": 55,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint32",
|
||||
"value": 470,
|
||||
"description": "Color Temperature",
|
||||
"minValue": 153,
|
||||
"maxValue": 470,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000013-0000-1000-8000-0026BB765291",
|
||||
"iid": 53,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 30.0,
|
||||
"description": "Hue",
|
||||
"unit": "arcdegrees",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 360.0,
|
||||
"minStep": 1.0
|
||||
},
|
||||
{
|
||||
"type": "0000002F-0000-1000-8000-0026BB765291",
|
||||
"iid": 54,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 89.0,
|
||||
"description": "Saturation",
|
||||
"unit": "percentage",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 1.0
|
||||
},
|
||||
{
|
||||
"type": "A28E1902-CFA1-4D37-A10F-0071CEEEEEBD",
|
||||
"iid": 60,
|
||||
"perms": ["pr", "pw", "hd"],
|
||||
"format": "data",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "00000143-0000-1000-8000-0026BB765291",
|
||||
"iid": 56,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "data",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "00000144-0000-1000-8000-0026BB765291",
|
||||
"iid": 57,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "010901013402040100000000000109010137020402000000"
|
||||
},
|
||||
{
|
||||
"type": "0000024B-0000-1000-8000-0026BB765291",
|
||||
"iid": 58,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 31,
|
||||
"type": "00000701-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 113,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"type": "00000706-0000-1000-8000-0026BB765291",
|
||||
"iid": 116,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000702-0000-1000-8000-0026BB765291",
|
||||
"iid": 115,
|
||||
"perms": ["pr"],
|
||||
"format": "uint16",
|
||||
"value": 31,
|
||||
"description": "Thread Node Capabilities",
|
||||
"minValue": 0,
|
||||
"maxValue": 31
|
||||
},
|
||||
{
|
||||
"type": "00000703-0000-1000-8000-0026BB765291",
|
||||
"iid": 117,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint16",
|
||||
"value": 127,
|
||||
"description": "Thread Status",
|
||||
"minValue": 0,
|
||||
"maxValue": 127
|
||||
},
|
||||
{
|
||||
"type": "0000022B-0000-1000-8000-0026BB765291",
|
||||
"iid": 118,
|
||||
"perms": ["pr"],
|
||||
"format": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"type": "00000704-0000-1000-8000-0026BB765291",
|
||||
"iid": 119,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "data",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 38,
|
||||
"type": "00000239-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 2564,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "0000023A-0000-1000-8000-0026BB765291",
|
||||
"iid": 2561,
|
||||
"perms": ["pr"],
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 67108863
|
||||
},
|
||||
{
|
||||
"type": "0000023C-0000-1000-8000-0026BB765291",
|
||||
"iid": 2562,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "0000024A-0000-1000-8000-0026BB765291",
|
||||
"iid": 2565,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint32",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 43,
|
||||
"type": "0E9CC677-A71F-8B83-B84D-568278790CB3",
|
||||
"characteristics": []
|
||||
},
|
||||
{
|
||||
"iid": 44,
|
||||
"type": "6D2AE1C4-9AEA-11EA-BB37-0242AC130002",
|
||||
"characteristics": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,273 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"hidden": true,
|
||||
"iid": 53,
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 54,
|
||||
"perms": ["pw"],
|
||||
"type": "4D05AE82-5A22-5BD6-A730-B7F8B4F3218D"
|
||||
},
|
||||
{
|
||||
"value": "g738658",
|
||||
"format": "string",
|
||||
"type": "00F44C18-042E-5C4E-9A4C-561D44DCD804",
|
||||
"perms": ["pr"],
|
||||
"iid": 55
|
||||
}
|
||||
],
|
||||
"primary": false,
|
||||
"type": "EA22EA53-6227-55EA-AC24-73ACF3EEA0E8"
|
||||
},
|
||||
{
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"iid": 1,
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"value": "Netatmo-Doorbell-g738658",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"value": "Netatmo",
|
||||
"format": "string"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"value": "Netatmo Doorbell",
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"value": "g738658",
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 5
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "80.0.0"
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pw"],
|
||||
"iid": 7,
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"value": "+nvrOo7/HvM=",
|
||||
"format": "data",
|
||||
"iid": 56,
|
||||
"type": "220",
|
||||
"perms": ["pr"]
|
||||
}
|
||||
],
|
||||
"hidden": false
|
||||
},
|
||||
{
|
||||
"hidden": false,
|
||||
"iid": 29,
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 30
|
||||
}
|
||||
],
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"primary": false
|
||||
},
|
||||
{
|
||||
"type": "00000121-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"characteristics": [
|
||||
{
|
||||
"value": null,
|
||||
"format": "uint8",
|
||||
"type": "00000073-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "ev"],
|
||||
"iid": 50
|
||||
},
|
||||
{
|
||||
"value": "Doorbell",
|
||||
"format": "string",
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"iid": 57
|
||||
}
|
||||
],
|
||||
"iid": 49,
|
||||
"hidden": false
|
||||
},
|
||||
{
|
||||
"hidden": false,
|
||||
"iid": 51,
|
||||
"characteristics": [
|
||||
{
|
||||
"value": false,
|
||||
"format": "bool",
|
||||
"type": "0000011A-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"iid": 52
|
||||
}
|
||||
],
|
||||
"type": "00000113-0000-1000-8000-0026BB765291",
|
||||
"primary": false
|
||||
},
|
||||
{
|
||||
"hidden": false,
|
||||
"characteristics": [
|
||||
{
|
||||
"value": false,
|
||||
"format": "bool",
|
||||
"iid": 9,
|
||||
"type": "0000011A-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "pw", "ev"]
|
||||
}
|
||||
],
|
||||
"iid": 8,
|
||||
"type": "00000112-0000-1000-8000-0026BB765291",
|
||||
"primary": false
|
||||
},
|
||||
{
|
||||
"hidden": false,
|
||||
"iid": 10,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "00000022-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "ev"],
|
||||
"value": false,
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"format": "string",
|
||||
"value": "Motion Sensor"
|
||||
}
|
||||
],
|
||||
"type": "00000085-0000-1000-8000-0026BB765291",
|
||||
"primary": false
|
||||
},
|
||||
{
|
||||
"primary": false,
|
||||
"type": "00000110-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "tlv8",
|
||||
"value": "AQEA",
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000120-0000-1000-8000-0026BB765291",
|
||||
"iid": 14
|
||||
},
|
||||
{
|
||||
"iid": 15,
|
||||
"type": "00000114-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"value": "AVUBAQACFgEBAQAAAQECAgEAAAACAQIDAQAEAQADCwECgAcCAjgEAwEeAAADCwECAAUCAtACAwEeAAADCwECgAICAmgBAwEeAAADCwECQAECAvAAAwEe",
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "00000115-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"value": "ARMBAQMCDgEBAQIBAQAAAgEAAwEBAgEA",
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"value": "AgECAAACAQAAAAIBAQ==",
|
||||
"format": "tlv8",
|
||||
"type": "00000116-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr"],
|
||||
"iid": 17
|
||||
},
|
||||
{
|
||||
"iid": 19,
|
||||
"type": "00000117-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "pw"],
|
||||
"value": "AQA=",
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"iid": 18,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "00000118-0000-1000-8000-0026BB765291",
|
||||
"format": "tlv8",
|
||||
"value": "ARDpyds+onxNHb4xI0H6deS3AgEAAxgBAQACCzEwLjEwLjYwLjExAwJRwwQCUsMENQEBAQIgyWEU3zQuPNAsFAm1DM3ZSdp0Vh7kGuVQ+vqtS5Qa09YDDr5ebeow7eweCsu3FYh/BTUBAQECIFPPdRRI86ozZNB/WU/e8Em4N1lSsJhttOWoJly3XNEMAw7Zm8TgFdAof+wvoCQTYgYE/r0D9wcEC1Pwjg=="
|
||||
}
|
||||
],
|
||||
"iid": 13,
|
||||
"hidden": false
|
||||
},
|
||||
{
|
||||
"iid": 20,
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 21,
|
||||
"type": "00000120-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "ev"],
|
||||
"value": "AQEA",
|
||||
"format": "tlv8"
|
||||
},
|
||||
{
|
||||
"format": "tlv8",
|
||||
"value": "AVUBAQACFgEBAQAAAQECAgEAAAACAQIDAQAEAQADCwECgAcCAjgEAwEeAAADCwECAAUCAtACAwEeAAADCwECgAICAmgBAwEeAAADCwECQAECAvAAAwEe",
|
||||
"perms": ["pr"],
|
||||
"type": "00000114-0000-1000-8000-0026BB765291",
|
||||
"iid": 22
|
||||
},
|
||||
{
|
||||
"format": "tlv8",
|
||||
"value": "ARMBAQMCDgEBAQIBAQAAAgEAAwEBAgEA",
|
||||
"iid": 23,
|
||||
"perms": ["pr"],
|
||||
"type": "00000115-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"format": "tlv8",
|
||||
"value": "AgECAAACAQAAAAIBAQ==",
|
||||
"perms": ["pr"],
|
||||
"type": "00000116-0000-1000-8000-0026BB765291",
|
||||
"iid": 24
|
||||
},
|
||||
{
|
||||
"format": "tlv8",
|
||||
"value": "AQA=",
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "00000117-0000-1000-8000-0026BB765291",
|
||||
"iid": 26
|
||||
},
|
||||
{
|
||||
"iid": 25,
|
||||
"type": "00000118-0000-1000-8000-0026BB765291",
|
||||
"perms": ["pr", "pw"],
|
||||
"value": "ARDu4+F49fZMSatQjcfR8FGVAgEAAxgBAQACCzEwLjEwLjYwLjExAwJbwwQCXMMENQEBAQIg9nqVm+80ccYh/S3vKKfbcUGH7VgggHRwp1e1x63+kpkDDnAxnJxfEz8KDp6xKoPhBTUBAQECILLYad+aKdzVbhGz55ywh0RYX9DTyY7HdSRf8y8tUi1kAw4DRngrGhYBdnrjELUzGgYEf+ysuwcESU05wg==",
|
||||
"format": "tlv8"
|
||||
}
|
||||
],
|
||||
"primary": false,
|
||||
"type": "00000110-0000-1000-8000-0026BB765291",
|
||||
"hidden": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,362 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 19,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "2.2.0",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 18,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "EA22EA53-6227-55EA-AC24-73ACF3EEA0E8",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 340,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "00F44C18-042E-5C4E-9A4C-561D44DCD804",
|
||||
"iid": 339,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "string",
|
||||
"value": "g8d8a6c",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Smart CO Alarm",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "0",
|
||||
"description": "Hardware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Netatmo",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1234",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Smart CO Alarm",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.0.3",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"iid": 47,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "string",
|
||||
"value": "4.1;Sep 27 2021 12:54:49",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000220-0000-1000-8000-0026BB765291",
|
||||
"iid": 325,
|
||||
"perms": ["pr", "hd"],
|
||||
"format": "data",
|
||||
"value": "fa7beb3a4566c1fb"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 17,
|
||||
"type": "00000055-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "0000004C-0000-1000-8000-0026BB765291",
|
||||
"iid": 203,
|
||||
"perms": [],
|
||||
"format": "data",
|
||||
"description": "Pair Setup"
|
||||
},
|
||||
{
|
||||
"type": "0000004F-0000-1000-8000-0026BB765291",
|
||||
"iid": 205,
|
||||
"perms": [],
|
||||
"format": "uint8",
|
||||
"description": "Pairing Features"
|
||||
},
|
||||
{
|
||||
"type": "0000004E-0000-1000-8000-0026BB765291",
|
||||
"iid": 204,
|
||||
"perms": [],
|
||||
"format": "data",
|
||||
"description": "Pair Verify"
|
||||
},
|
||||
{
|
||||
"type": "00000050-0000-1000-8000-0026BB765291",
|
||||
"iid": 206,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "data",
|
||||
"value": null,
|
||||
"description": "Pairing Pairings"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 22,
|
||||
"type": "0000007F-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000075-0000-1000-8000-0026BB765291",
|
||||
"iid": 230,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "Status Active"
|
||||
},
|
||||
{
|
||||
"type": "00000077-0000-1000-8000-0026BB765291",
|
||||
"iid": 231,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Status Fault",
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 42,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Carbon Monoxide Sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000091-0000-1000-8000-0026BB765291",
|
||||
"iid": 41,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 0.0,
|
||||
"description": "Carbon Monoxide Peak Level",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 1000.0
|
||||
},
|
||||
{
|
||||
"type": "00000019-4DDB-598F-A73F-006513F2DB6B",
|
||||
"iid": 333,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 3
|
||||
},
|
||||
{
|
||||
"type": "00000090-0000-1000-8000-0026BB765291",
|
||||
"iid": 40,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 0.0,
|
||||
"description": "Carbon Monoxide Level",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 1000.0
|
||||
},
|
||||
{
|
||||
"type": "0000000C-4DDB-598F-A73F-006513F2DB6B",
|
||||
"iid": 326,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"type": "0000007A-0000-1000-8000-0026BB765291",
|
||||
"iid": 45,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Status Tampered",
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "00000001-4DDB-598F-A73F-006513F2DB6B",
|
||||
"iid": 327,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"type": "00000012-4DDB-598F-A73F-006513F2DB6B",
|
||||
"iid": 328,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 3
|
||||
},
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 43,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "00000069-0000-1000-8000-0026BB765291",
|
||||
"iid": 229,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Carbon Monoxide Detected",
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 35,
|
||||
"type": "00001801-0000-1000-8000-00805F9B34FB",
|
||||
"characteristics": []
|
||||
},
|
||||
{
|
||||
"iid": 36,
|
||||
"type": "00000096-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 336,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Battery Service",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"iid": 337,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Status Low Battery",
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "00000002-4DDB-598F-A73F-006513F2DB6B",
|
||||
"iid": 335,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 40,
|
||||
"type": "00000004-4DDB-598F-A73F-006513F2DB6B",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000007-4DDB-598F-A73F-006513F2DB6B",
|
||||
"iid": 187,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 14
|
||||
},
|
||||
{
|
||||
"type": "000000A5-0000-1000-8000-0026BB765291",
|
||||
"iid": 183,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "00000009-4DDB-598F-A73F-006513F2DB6B",
|
||||
"iid": 184,
|
||||
"perms": ["pw", "hd"],
|
||||
"format": "uint8",
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "00000006-4DDB-598F-A73F-006513F2DB6B",
|
||||
"iid": 188,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "0000000000000000"
|
||||
},
|
||||
{
|
||||
"type": "0000000A-4DDB-598F-A73F-006513F2DB6B",
|
||||
"iid": 324,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint32",
|
||||
"value": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,249 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Healthy Home Coach",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Netatmo",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Healthy Home Coach",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "AAAAAAAAAAAAA",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "59",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 25,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 26,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 27,
|
||||
"type": "EA22EA53-6227-55EA-AC24-73ACF3EEA0E8",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "4D05AE82-5A22-5BD6-A730-B7F8B4F3218D",
|
||||
"iid": 28,
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"type": "00F44C18-042E-5C4E-9A4C-561D44DCD804",
|
||||
"iid": 29,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "g262d1a",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 24,
|
||||
"type": "0000008D-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000095-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"description": "Air Quality",
|
||||
"minValue": 0,
|
||||
"maxValue": 5
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 9,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Air quality sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "00000097-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000092-0000-1000-8000-0026BB765291",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Carbon Dioxide Detected",
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "00000093-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 804,
|
||||
"description": "Carbon Dioxide Level",
|
||||
"minValue": 0,
|
||||
"maxValue": 10000
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Carbon Dioxide sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 14,
|
||||
"type": "00000082-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000010-0000-1000-8000-0026BB765291",
|
||||
"iid": 15,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 59,
|
||||
"description": "Current Relative Humidity",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 16,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Humidity sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 17,
|
||||
"type": "0000008A-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000011-0000-1000-8000-0026BB765291",
|
||||
"iid": 18,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 22.9,
|
||||
"description": "Current Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 0,
|
||||
"maxValue": 50,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 19,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Temperature sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 20,
|
||||
"type": "6237CEFC-9F4D-54B2-8033-2EDA0053B811",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "B3BBFABC-D78C-5B8D-948C-5DAC1EE2CDE5",
|
||||
"iid": 21,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 200,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "627EA399-29D9-5DC8-9A02-08AE928F73D8",
|
||||
"iid": 22,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 5,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 23,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Noise sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,897 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Green Electronics LLC",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "SPK5 Pro",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RainMachine-00ce4a",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "00aa0000aa0a",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.4",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"format": "string",
|
||||
"value": "2.0;16A62",
|
||||
"perms": ["pr", "hd"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 18,
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 64,
|
||||
"type": "000000CF-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"linked": [512, 768, 1024, 1280, 1536, 1792, 2048, 2304],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 67,
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 65,
|
||||
"type": "000000D1-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 68,
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 66,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RainMachine",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 512,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 544,
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 560,
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 576,
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 592,
|
||||
"type": "000000D6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 608,
|
||||
"type": "000000D4-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 624,
|
||||
"type": "000000D3-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 300,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 640,
|
||||
"type": "000000CB-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"minValue": 1,
|
||||
"maxValue": 255,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 528,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 768,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 800,
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 816,
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 832,
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 848,
|
||||
"type": "000000D6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 864,
|
||||
"type": "000000D4-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 880,
|
||||
"type": "000000D3-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 300,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 896,
|
||||
"type": "000000CB-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"minValue": 1,
|
||||
"maxValue": 255,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 784,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 1024,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 1056,
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1072,
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1088,
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1104,
|
||||
"type": "000000D6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1120,
|
||||
"type": "000000D4-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1136,
|
||||
"type": "000000D3-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 300,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1152,
|
||||
"type": "000000CB-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 3,
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"minValue": 1,
|
||||
"maxValue": 255,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1040,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 1280,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 1312,
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1328,
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1344,
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1360,
|
||||
"type": "000000D6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1376,
|
||||
"type": "000000D4-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1392,
|
||||
"type": "000000D3-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 300,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1408,
|
||||
"type": "000000CB-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 4,
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"minValue": 1,
|
||||
"maxValue": 255,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1296,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 1536,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 1568,
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1584,
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1600,
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1616,
|
||||
"type": "000000D6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1632,
|
||||
"type": "000000D4-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1648,
|
||||
"type": "000000D3-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 300,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1664,
|
||||
"type": "000000CB-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 5,
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"minValue": 1,
|
||||
"maxValue": 255,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1552,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 1792,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 1824,
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1840,
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1856,
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1872,
|
||||
"type": "000000D6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1888,
|
||||
"type": "000000D4-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1904,
|
||||
"type": "000000D3-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 300,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1920,
|
||||
"type": "000000CB-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 6,
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"minValue": 1,
|
||||
"maxValue": 255,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 1808,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 2048,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2080,
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2096,
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2112,
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2128,
|
||||
"type": "000000D6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2144,
|
||||
"type": "000000D4-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2160,
|
||||
"type": "000000D3-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 300,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2176,
|
||||
"type": "000000CB-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 7,
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"minValue": 1,
|
||||
"maxValue": 255,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2064,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 2304,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2336,
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2352,
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2368,
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2384,
|
||||
"type": "000000D6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2400,
|
||||
"type": "000000D4-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2416,
|
||||
"type": "000000D3-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 300,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 86400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2432,
|
||||
"type": "000000CB-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 8,
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"minValue": 1,
|
||||
"maxValue": 255,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 2320,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,484 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Inc.",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE SmartBridge",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE SmartBridge",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "0101.3521.0436",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.3.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "0101.3521.0436",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"format": "string",
|
||||
"value": "4.1;3fac0fb4",
|
||||
"perms": ["pr", "hd"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "220",
|
||||
"format": "data",
|
||||
"value": "Yhl9CmseEb8=",
|
||||
"perms": ["pr", "hd"],
|
||||
"ev": false,
|
||||
"maxDataLen": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 18,
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 2,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Inc.",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Master Bath South",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "3.0.8",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "000000A6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 48,
|
||||
"type": "0000008C-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"linked": [64],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 52,
|
||||
"type": "0000007C-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": true,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 53,
|
||||
"type": "0000006D-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 54,
|
||||
"type": "00000072-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 50,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 55,
|
||||
"type": "00000024-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 64,
|
||||
"type": "00000096-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 67,
|
||||
"type": "00000068-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 68,
|
||||
"type": "0000008F-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 70,
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 66,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 3,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Inc.",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE SmartShade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "000000A6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 48,
|
||||
"type": "0000008C-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"linked": [64],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 52,
|
||||
"type": "0000007C-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 53,
|
||||
"type": "0000006D-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 54,
|
||||
"type": "00000072-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 50,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 55,
|
||||
"type": "00000024-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 64,
|
||||
"type": "00000096-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 67,
|
||||
"type": "00000068-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 68,
|
||||
"type": "0000008F-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 70,
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 66,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,864 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Inc.",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE SmartBridge",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE SmartBridge",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "0401.3521.0679",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.3.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "0401.3521.0679",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"format": "string",
|
||||
"value": "4.1;3fac0fb4",
|
||||
"perms": ["pr", "hd"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "220",
|
||||
"format": "data",
|
||||
"value": "Yhl9CmseEb8=",
|
||||
"perms": ["pr", "hd"],
|
||||
"ev": false,
|
||||
"maxDataLen": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 18,
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 2,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Inc.",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "LR Left",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "3.0.8",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "000000A6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 48,
|
||||
"type": "0000008C-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"linked": [64],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 52,
|
||||
"type": "0000007C-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": true,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 53,
|
||||
"type": "0000006D-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 54,
|
||||
"type": "00000072-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 50,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 55,
|
||||
"type": "00000024-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 64,
|
||||
"type": "00000096-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 67,
|
||||
"type": "00000068-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 89,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 68,
|
||||
"type": "0000008F-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 70,
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": true,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 66,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 3,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Inc.",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "LR Right",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "3.0.8",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "000000A6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 48,
|
||||
"type": "0000008C-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"linked": [64],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 52,
|
||||
"type": "0000007C-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 53,
|
||||
"type": "0000006D-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 54,
|
||||
"type": "00000072-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 50,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 55,
|
||||
"type": "00000024-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 64,
|
||||
"type": "00000096-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 67,
|
||||
"type": "00000068-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 68,
|
||||
"type": "0000008F-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 70,
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 66,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 4,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Inc.",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "BR Left",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "3.0.8",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "000000A6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 48,
|
||||
"type": "0000008C-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"linked": [64],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 52,
|
||||
"type": "0000007C-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 53,
|
||||
"type": "0000006D-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 54,
|
||||
"type": "00000072-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 50,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 55,
|
||||
"type": "00000024-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 64,
|
||||
"type": "00000096-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 67,
|
||||
"type": "00000068-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 68,
|
||||
"type": "0000008F-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 70,
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 66,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 5,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Inc.",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RZSS",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "3.0.8",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "000000A6-0000-1000-8000-0026BB765291",
|
||||
"format": "uint32",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 48,
|
||||
"type": "0000008C-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"linked": [64],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 52,
|
||||
"type": "0000007C-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 53,
|
||||
"type": "0000006D-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 100,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 54,
|
||||
"type": "00000072-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 50,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 55,
|
||||
"type": "00000024-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 64,
|
||||
"type": "00000096-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 67,
|
||||
"type": "00000068-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 68,
|
||||
"type": "0000008F-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 70,
|
||||
"type": "00000079-0000-1000-8000-0026BB765291",
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 66,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "RYSE Shade",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,356 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Schlage ",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "BE479CAM619",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "SENSE ",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "AAAAAAA000",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "004.027.000",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"iid": 51,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.3.0",
|
||||
"description": "Hardware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000054-0000-1000-8000-0026BB765291",
|
||||
"iid": 50,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "002.001.000",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "7F0DEE73-4A3F-4103-98E6-A46CD301BDFB",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "44FF6853-58DB-4956-B298-5F6650DD61F6",
|
||||
"iid": 25,
|
||||
"perms": ["pw"],
|
||||
"format": "data"
|
||||
},
|
||||
{
|
||||
"type": "CF68C40F-DC6F-4F7E-918C-4C536B643A2B",
|
||||
"iid": 26,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "4058C2B8-4545-4E77-B6B7-157C38F9718B",
|
||||
"iid": 27,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"minValue": 1,
|
||||
"maxValue": 5,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "B498F4B5-6364-4F79-B5CC-1563ADE070DF",
|
||||
"iid": 28,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"minValue": 0,
|
||||
"maxValue": 1
|
||||
},
|
||||
{
|
||||
"type": "AFAE7AD2-8DD3-4B20-BAE0-C0B18B79EDB5",
|
||||
"iid": 29,
|
||||
"perms": ["pw"],
|
||||
"format": "data"
|
||||
},
|
||||
{
|
||||
"type": "87D91EC6-C508-4CAD-89F1-A21B0BF179A0",
|
||||
"iid": 30,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "000a00000000000000000000"
|
||||
},
|
||||
{
|
||||
"type": "4C3E2641-F57F-11E3-A3AC-0800200C9A66",
|
||||
"iid": 31,
|
||||
"perms": ["pr"],
|
||||
"format": "uint64",
|
||||
"value": 3468600224
|
||||
},
|
||||
{
|
||||
"type": "EEC26990-F628-11E3-A3AC-0800200C9A66",
|
||||
"iid": 32,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "uint8",
|
||||
"value": 4,
|
||||
"minValue": 4,
|
||||
"maxValue": 8,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "BCDE3B9E-3963-4123-B24D-42ECCBB3A9C4",
|
||||
"iid": 33,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "4e6f6e65"
|
||||
},
|
||||
{
|
||||
"type": "A9464D14-6806-4375-BA53-E14F7E0A6BEE",
|
||||
"iid": 34,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": null,
|
||||
"value": "ff"
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 35,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Additional Settings",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "63D23C2F-2FBB-45E8-8540-47CC26C517D0",
|
||||
"iid": 36,
|
||||
"perms": ["pr"],
|
||||
"format": "uint8",
|
||||
"value": 100
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 23,
|
||||
"type": "00000044-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000019-0000-1000-8000-0026BB765291",
|
||||
"iid": 16,
|
||||
"perms": ["pw"],
|
||||
"format": "data",
|
||||
"description": "Lock Control Point"
|
||||
},
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 17,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "02.00.00",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "0000001F-0000-1000-8000-0026BB765291",
|
||||
"iid": 18,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "012431443133423434392d423941312d334135392d463042412d3245393030304233453430450208000000000000000003010404030001ff",
|
||||
"description": "Logs"
|
||||
},
|
||||
{
|
||||
"type": "00000005-0000-1000-8000-0026BB765291",
|
||||
"iid": 19,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "bool",
|
||||
"value": true,
|
||||
"description": "Audio Feedback"
|
||||
},
|
||||
{
|
||||
"type": "0000001A-0000-1000-8000-0026BB765291",
|
||||
"iid": 20,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "uint32",
|
||||
"value": 0,
|
||||
"description": "Lock Management Auto Security Timeout",
|
||||
"unit": "seconds"
|
||||
},
|
||||
{
|
||||
"type": "00000001-0000-1000-8000-0026BB765291",
|
||||
"iid": 21,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "bool",
|
||||
"value": false,
|
||||
"description": "Administrator Only Access"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 30,
|
||||
"type": "00000045-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "0000001D-0000-1000-8000-0026BB765291",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 3,
|
||||
"description": "Lock Current State",
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "0000001E-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 1,
|
||||
"description": "Lock Target State",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Lock Mechanism",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 34,
|
||||
"type": "1F6B43AA-94DE-4BA9-981C-DA38823117BD",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "048D8799-695B-4A7F-A7F7-A4A1301587FE",
|
||||
"iid": 39,
|
||||
"perms": ["pw"],
|
||||
"format": "data"
|
||||
},
|
||||
{
|
||||
"type": "66B7C7FD-95A7-4F89-B0AD-38073A67C46C",
|
||||
"iid": 40,
|
||||
"perms": ["pw"],
|
||||
"format": "data"
|
||||
},
|
||||
{
|
||||
"type": "507EFC3F-9231-438C-976A-FA04427F1F8F",
|
||||
"iid": 41,
|
||||
"perms": ["pw"],
|
||||
"format": "data"
|
||||
},
|
||||
{
|
||||
"type": "1DC15719-0882-4BAD-AB0F-9AEAB0600C90",
|
||||
"iid": 42,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "03"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 39,
|
||||
"type": "00000055-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "0000004C-0000-1000-8000-0026BB765291",
|
||||
"iid": 45,
|
||||
"perms": [],
|
||||
"format": "data",
|
||||
"description": "Pair Setup"
|
||||
},
|
||||
{
|
||||
"type": "0000004E-0000-1000-8000-0026BB765291",
|
||||
"iid": 46,
|
||||
"perms": [],
|
||||
"format": "data",
|
||||
"description": "Pair Verify"
|
||||
},
|
||||
{
|
||||
"type": "0000004F-0000-1000-8000-0026BB765291",
|
||||
"iid": 47,
|
||||
"perms": [],
|
||||
"format": "uint8",
|
||||
"description": "Pairing Features"
|
||||
},
|
||||
{
|
||||
"type": "00000050-0000-1000-8000-0026BB765291",
|
||||
"iid": 48,
|
||||
"perms": ["pr", "pw"],
|
||||
"format": "data",
|
||||
"value": null,
|
||||
"description": "Pairing Pairings"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 44,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 62,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "02.00.00",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,562 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "SIMPLEconnect Fan-06F674"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "Hunter Fan"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "SIMPLEconnect"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "1234567890abcd"
|
||||
},
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 6,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "54",
|
||||
"value": "0.22"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 10,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Hunter Fan"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "float",
|
||||
"iid": 11,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 25.0,
|
||||
"minValue": 0.0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000029-0000-1000-8000-0026BB765291",
|
||||
"value": 0.0
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 12,
|
||||
"maxValue": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000028-0000-1000-8000-0026BB765291",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "Set Fan Fast On",
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 13,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "2BD83CC0-6C60-11E5-A837-0800200C9A66",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"description": "Set Fan Fast Off",
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 14,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "2BD83CC1-6C60-11E5-A837-0800200C9A66",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"description": "Is BLDC in Scope",
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 15,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "2BD83CC5-6C60-11E5-A837-0800200C9A66",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 16,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000005-0000-1000-8000-0026BB765291",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 17,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "2BD83CC4-6C60-11E5-A837-0800200C9A66",
|
||||
"value": 341
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 18,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "2BD83CC3-6C60-11E5-A837-0800200C9A66",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"iid": 8,
|
||||
"stype": "fan",
|
||||
"type": "00000040-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "FW Upgrade supported types",
|
||||
"format": "string",
|
||||
"iid": 20,
|
||||
"perms": ["pr"],
|
||||
"type": "151909D2-3802-11E4-916C-0800200C9A66",
|
||||
"value": "url,data"
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade URL",
|
||||
"format": "string",
|
||||
"iid": 21,
|
||||
"maxLen": 256,
|
||||
"perms": ["pw"],
|
||||
"type": "151909D1-3802-11E4-916C-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade Status",
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 22,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "151909D6-3802-11E4-916C-0800200C9A66",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade Data",
|
||||
"format": "data",
|
||||
"iid": 23,
|
||||
"perms": ["pw"],
|
||||
"type": "151909D7-3802-11E4-916C-0800200C9A66"
|
||||
}
|
||||
],
|
||||
"iid": 19,
|
||||
"stype": "Unknown Service: 151909D0-3802-11E4-916C-0800200C9A66",
|
||||
"type": "151909D0-3802-11E4-916C-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "FW Upgrade supported types",
|
||||
"format": "string",
|
||||
"iid": 25,
|
||||
"perms": ["pr"],
|
||||
"type": "151909D2-3802-11E4-916C-0800200C9A66",
|
||||
"value": "url,data"
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade URL",
|
||||
"format": "string",
|
||||
"iid": 26,
|
||||
"maxLen": 256,
|
||||
"perms": ["pw"],
|
||||
"type": "151909D1-3802-11E4-916C-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade Status",
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 27,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "151909D6-3802-11E4-916C-0800200C9A66",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "FW Upgrade Data",
|
||||
"format": "data",
|
||||
"iid": 28,
|
||||
"perms": ["pw"],
|
||||
"type": "151909D7-3802-11E4-916C-0800200C9A66"
|
||||
}
|
||||
],
|
||||
"iid": 24,
|
||||
"stype": "Unknown Service: 151909D8-3802-11E4-916C-0800200C9A66",
|
||||
"type": "151909D8-3802-11E4-916C-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 30,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 31,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Hunter Light"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 32,
|
||||
"maxValue": 100,
|
||||
"minStep": 10,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000008-0000-1000-8000-0026BB765291",
|
||||
"value": 30
|
||||
},
|
||||
{
|
||||
"description": "Set Light Dimming",
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 33,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "151909DC-3802-11E4-916C-0800200C9A66",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"description": "Set Light Security",
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 34,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "2BD815B0-6C60-11E5-A837-0800200C9A66",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"description": "Get Light Power",
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 35,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "2BD815B5-6C60-11E5-A837-0800200C9A66",
|
||||
"value": true
|
||||
}
|
||||
],
|
||||
"iid": 29,
|
||||
"stype": "lightbulb",
|
||||
"type": "00000043-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 37,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "2BD83CC6-6C60-11E5-A837-0800200C9A66",
|
||||
"value": -65
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 38,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "2BD83CC7-6C60-11E5-A837-0800200C9A66",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 39,
|
||||
"maxLen": 256,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "0049CFF1-4B37-11E5-B970-0800200C9A66",
|
||||
"value": "url, data"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 40,
|
||||
"maxLen": 256,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "2BD83CC2-6C60-11E5-A837-0800200C9A66",
|
||||
"value": "url, data"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 41,
|
||||
"maxValue": 110,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "0049CFF2-4B37-11E5-B970-0800200C9A66",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 42,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "0049CFF3-4B37-11E5-B970-0800200C9A66",
|
||||
"value": false
|
||||
}
|
||||
],
|
||||
"iid": 36,
|
||||
"stype": "Unknown Service: 0049CFF0-4B37-11E5-B970-0800200C9A66",
|
||||
"type": "0049CFF0-4B37-11E5-B970-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "string",
|
||||
"iid": 44,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "2BD815B2-6C60-11E5-A837-0800200C9A66",
|
||||
"value": "NULL"
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 45,
|
||||
"maxValue": 63,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "2BD815B4-6C60-11E5-A837-0800200C9A66",
|
||||
"value": 7
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "bool",
|
||||
"iid": 46,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "2BD815B3-6C60-11E5-A837-0800200C9A66",
|
||||
"value": true
|
||||
}
|
||||
],
|
||||
"iid": 43,
|
||||
"stype": "Unknown Service: 2BD815B1-6C60-11E5-A837-0800200C9A66",
|
||||
"type": "2BD815B1-6C60-11E5-A837-0800200C9A66"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 48,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC61-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 49,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC62-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 50,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC63-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 51,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC64-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 52,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC65-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 53,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC66-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 54,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC67-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 55,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC68-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 56,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC69-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 57,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC6A-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 58,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC6B-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 59,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC6C-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 60,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC6D-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 61,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC6E-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 62,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC6F-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 63,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC70-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 64,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC71-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 65,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC72-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 66,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC73-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 67,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "E836DC74-6C6E-11E5-A837-0800200C9A66",
|
||||
"value": 4294967295
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 68,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "CC9EA121-FC1C-11E5-A837-0800200C9A66",
|
||||
"value": 4294901760
|
||||
},
|
||||
{
|
||||
"ev": false,
|
||||
"format": "int",
|
||||
"iid": 69,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "CC9EA120-FC1C-11E5-A837-0800200C9A66",
|
||||
"value": 4294901760
|
||||
}
|
||||
],
|
||||
"iid": 47,
|
||||
"stype": "Unknown Service: E836DC60-6C6E-11E5-A837-0800200C9A66",
|
||||
"type": "E836DC60-6C6E-11E5-A837-0800200C9A66"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,146 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Internal Cover",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Netatmo",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Internal Cover",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "**REDACTED**",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "0.0.0",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000220-0000-1000-8000-0026BB765291",
|
||||
"iid": 15,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "+nvrOv1cCQU="
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "0000008C-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 9,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Venetian Blinds",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "0000007C-0000-1000-8000-0026BB765291",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Target Position",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "0000006D-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Current Position",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000072-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"description": "Position State",
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "0000006C-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "int",
|
||||
"value": 90,
|
||||
"description": "Current Horizontal Tilt Angle",
|
||||
"unit": "arcdegrees",
|
||||
"minValue": -90,
|
||||
"maxValue": 90,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "0000007B-0000-1000-8000-0026BB765291",
|
||||
"iid": 14,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "int",
|
||||
"value": 90,
|
||||
"description": "Target Horizontal Tilt Angle",
|
||||
"unit": "arcdegrees",
|
||||
"minValue": -90,
|
||||
"maxValue": 90,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,378 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "U by Moen-015F44",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Moen Incorporated",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "TS3304",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "**REDACTED**",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "3.3.0",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "000000D7-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"iid": 9,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Active",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "u by moen",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
],
|
||||
"linked": [11, 17, 22, 27, 32]
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "000000BC-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Active",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000011-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 21.66666,
|
||||
"description": "Current Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 0.1
|
||||
},
|
||||
{
|
||||
"type": "000000B1-0000-1000-8000-0026BB765291",
|
||||
"iid": 14,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Current Heater Cooler State",
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "000000B2-0000-1000-8000-0026BB765291",
|
||||
"iid": 15,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Target Heater Cooler State",
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000012-0000-1000-8000-0026BB765291",
|
||||
"iid": 16,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "float",
|
||||
"value": 37.77777,
|
||||
"description": "Heating Threshold Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 15.55556,
|
||||
"maxValue": 48.88888,
|
||||
"minStep": 0.1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 17,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"iid": 18,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Active",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"iid": 19,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "In Use"
|
||||
},
|
||||
{
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"iid": 20,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"description": "Valve Type"
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 21,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Outlet 1",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 22,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"iid": 23,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Active",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"iid": 24,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "In Use"
|
||||
},
|
||||
{
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"iid": 25,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"description": "Valve Type"
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 26,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Outlet 2",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 27,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"iid": 28,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Active",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"iid": 29,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "In Use"
|
||||
},
|
||||
{
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"iid": 30,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"description": "Valve Type"
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 31,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Outlet 3",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 32,
|
||||
"type": "000000D0-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"iid": 33,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Active",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "000000D2-0000-1000-8000-0026BB765291",
|
||||
"iid": 34,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "In Use"
|
||||
},
|
||||
{
|
||||
"type": "000000D5-0000-1000-8000-0026BB765291",
|
||||
"iid": 35,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"description": "Valve Type"
|
||||
},
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 36,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Outlet 4",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 37,
|
||||
"type": "00000010-0000-1000-8000-001D4B474349",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000011-0000-1000-8000-001D4B474349",
|
||||
"iid": 38,
|
||||
"perms": ["pr", "ev", "hd"],
|
||||
"format": "uint8",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"type": "00000012-0000-1000-8000-001D4B474349",
|
||||
"iid": 39,
|
||||
"perms": ["pw", "hd"],
|
||||
"format": "uint8"
|
||||
},
|
||||
{
|
||||
"type": "00000013-0000-1000-8000-001D4B474349",
|
||||
"iid": 40,
|
||||
"perms": ["pw", "hd"],
|
||||
"format": "string",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-001D4B474349",
|
||||
"iid": 41,
|
||||
"perms": ["pw", "hd"],
|
||||
"format": "string",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000015-0000-1000-8000-001D4B474349",
|
||||
"iid": 42,
|
||||
"perms": ["pw", "hd"],
|
||||
"format": "string",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 43,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 44,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"description": "Version",
|
||||
"maxLen": 64
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,162 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Netatmo",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Sensor",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "**REDACTED**",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "16.0.0",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000220-0000-1000-8000-0026BB765291",
|
||||
"iid": 18,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "+nvrOv1cCQU="
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "0000008A-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 9,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Temperature sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000011-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 23.9,
|
||||
"description": "Current Temperature",
|
||||
"unit": "celsius",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 50.0,
|
||||
"minStep": 0.1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 11,
|
||||
"type": "00000082-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Humidity sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000010-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 69.0,
|
||||
"description": "Current Relative Humidity",
|
||||
"unit": "percentage",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 1.0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 14,
|
||||
"type": "00000097-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 15,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Carbon Dioxide sensor",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000092-0000-1000-8000-0026BB765291",
|
||||
"iid": 16,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Carbon Dioxide Detected",
|
||||
"minValue": 0,
|
||||
"maxValue": 1,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000093-0000-1000-8000-0026BB765291",
|
||||
"iid": 17,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 1124.0,
|
||||
"description": "Carbon Dioxide Level",
|
||||
"minValue": 0.0,
|
||||
"maxValue": 5000.0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,312 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"iid": 1,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Gateway"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX"
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Gateway"
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "a1a11a1"
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "70"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"primary": false
|
||||
},
|
||||
{
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"iid": 9,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1.1.0"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"primary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 2,
|
||||
"services": [
|
||||
{
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"iid": 1,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Sensor"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX"
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Sensor"
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "a11b111"
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "16"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"primary": false
|
||||
},
|
||||
{
|
||||
"type": "0000008A-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 9,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Temperature sensor"
|
||||
},
|
||||
{
|
||||
"type": "00000011-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 18.9,
|
||||
"minValue": 0,
|
||||
"maxValue": 50,
|
||||
"minStep": 0.1,
|
||||
"unit": "celsius"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"primary": true
|
||||
},
|
||||
{
|
||||
"type": "00000082-0000-1000-8000-0026BB765291",
|
||||
"iid": 11,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Humidity sensor"
|
||||
},
|
||||
{
|
||||
"type": "00000010-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 58,
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"unit": "percentage"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"primary": false
|
||||
},
|
||||
{
|
||||
"type": "00000097-0000-1000-8000-0026BB765291",
|
||||
"iid": 14,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 15,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Carbon Dioxide sensor"
|
||||
},
|
||||
{
|
||||
"type": "00000092-0000-1000-8000-0026BB765291",
|
||||
"iid": 16,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"maxValue": 1,
|
||||
"minValue": 0,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000093-0000-1000-8000-0026BB765291",
|
||||
"iid": 17,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "float",
|
||||
"value": 400,
|
||||
"minValue": 0,
|
||||
"maxValue": 5000
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"primary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"aid": 3,
|
||||
"services": [
|
||||
{
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"iid": 1,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Window"
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX"
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Window"
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "1111111a114a111a"
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pw"],
|
||||
"format": "bool"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "48"
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"primary": false
|
||||
},
|
||||
{
|
||||
"type": "0000008B-0000-1000-8000-0026BB765291",
|
||||
"iid": 8,
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 9,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Roof Window"
|
||||
},
|
||||
{
|
||||
"type": "0000007C-0000-1000-8000-0026BB765291",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"maxValue": 100,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "0000006D-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"maxValue": 100,
|
||||
"minValue": 0,
|
||||
"unit": "percentage",
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000072-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"maxValue": 2,
|
||||
"minValue": 0,
|
||||
"minStep": 1
|
||||
}
|
||||
],
|
||||
"hidden": false,
|
||||
"primary": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,122 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Window",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Netatmo",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX Window",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "**REDACTED**",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "0.0.0",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000220-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "+nvrOv1cCQU="
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "0000008B-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 9,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Roof Window",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "0000007C-0000-1000-8000-0026BB765291",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Target Position",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "0000006D-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Current Position",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000072-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"description": "Position State",
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,122 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 2,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX External Cover",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Netatmo",
|
||||
"description": "Manufacturer",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "VELUX External Cover",
|
||||
"description": "Model",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "**REDACTED**",
|
||||
"description": "Serial Number",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"iid": 7,
|
||||
"perms": ["pw"],
|
||||
"format": "bool",
|
||||
"description": "Identify"
|
||||
},
|
||||
{
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "15.0.0",
|
||||
"description": "Firmware Revision",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "00000220-0000-1000-8000-0026BB765291",
|
||||
"iid": 13,
|
||||
"perms": ["pr"],
|
||||
"format": "data",
|
||||
"value": "+nvrOv1cCQU="
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "0000008C-0000-1000-8000-0026BB765291",
|
||||
"characteristics": [
|
||||
{
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"iid": 9,
|
||||
"perms": ["pr"],
|
||||
"format": "string",
|
||||
"value": "Awning Blinds",
|
||||
"description": "Name",
|
||||
"maxLen": 64
|
||||
},
|
||||
{
|
||||
"type": "0000007C-0000-1000-8000-0026BB765291",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Target Position",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "0000006D-0000-1000-8000-0026BB765291",
|
||||
"iid": 10,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"description": "Current Position",
|
||||
"unit": "percentage",
|
||||
"minValue": 0,
|
||||
"maxValue": 100,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"type": "00000072-0000-1000-8000-0026BB765291",
|
||||
"iid": 12,
|
||||
"perms": ["pr", "ev"],
|
||||
"format": "uint8",
|
||||
"value": 2,
|
||||
"description": "Position State",
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,358 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 2,
|
||||
"perms": ["pw"],
|
||||
"type": "00000014-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 3,
|
||||
"perms": ["pr"],
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"value": "VOCOlinc"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 4,
|
||||
"perms": ["pr"],
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"value": "Flowerbud"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 5,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "VOCOlinc-Flowerbud-0d324b"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 6,
|
||||
"perms": ["pr"],
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"value": "AM01121849000327"
|
||||
},
|
||||
{
|
||||
"description": "",
|
||||
"format": "string",
|
||||
"iid": 7,
|
||||
"perms": ["pr"],
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"value": "3.121.2"
|
||||
},
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 8,
|
||||
"perms": ["pr"],
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"value": "0.1"
|
||||
}
|
||||
],
|
||||
"iid": 1,
|
||||
"stype": "accessory-information",
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "rssi_report_switch",
|
||||
"format": "bool",
|
||||
"iid": 81,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "D9959C8A-809A-4F75-92D7-71F630AC2925",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "rssi_report_value",
|
||||
"format": "uint8",
|
||||
"iid": 82,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "8137182C-6904-4FB9-ADCC-61CECA85CE48",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"iid": 80,
|
||||
"stype": "Unknown Service: C635EF5C-5BBC-4F96-B7DA-6669069A4B32",
|
||||
"type": "C635EF5C-5BBC-4F96-B7DA-6669069A4B32"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 31,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "FLOWERBUD"
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 32,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B0-0000-1000-8000-0026BB765291",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 33,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 1.0,
|
||||
"minValue": 0.0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "00000010-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 45.0
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 34,
|
||||
"maxValue": 2,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "000000B3-0000-1000-8000-0026BB765291",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 35,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000B4-0000-1000-8000-0026BB765291",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"format": "uint8",
|
||||
"iid": 36,
|
||||
"maxValue": 1,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "36158AC8-5191-4AE2-9EF5-1D6722E88E3D",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"description": "spray quantity",
|
||||
"format": "uint8",
|
||||
"iid": 38,
|
||||
"maxValue": 5,
|
||||
"minStep": 1,
|
||||
"minValue": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "69D52519-0A4E-4898-8335-4739F9116D0A",
|
||||
"value": 5
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 39,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 1.0,
|
||||
"minValue": 0.0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "000000CA-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 100.0
|
||||
},
|
||||
{
|
||||
"description": "humidifier_timer_setting",
|
||||
"format": "data",
|
||||
"iid": 40,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "F84B3138-E44F-49B9-AA91-9E1736C247C0",
|
||||
"value": "AA=="
|
||||
},
|
||||
{
|
||||
"description": "humidifier_countdown",
|
||||
"format": "data",
|
||||
"iid": 41,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "43CE176B-2933-4034-98A7-AD215BEEBF2F",
|
||||
"value": "AA=="
|
||||
}
|
||||
],
|
||||
"iid": 30,
|
||||
"stype": "humidifier-dehumidifier",
|
||||
"type": "000000BD-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 10,
|
||||
"perms": ["pr"],
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"value": "Mood Light"
|
||||
},
|
||||
{
|
||||
"format": "bool",
|
||||
"iid": 11,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"format": "int",
|
||||
"iid": 12,
|
||||
"maxValue": 100,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000008-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 50
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 13,
|
||||
"maxValue": 360.0,
|
||||
"minStep": 1.0,
|
||||
"minValue": 0.0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "00000013-0000-1000-8000-0026BB765291",
|
||||
"unit": "arcdegrees",
|
||||
"value": 120.0
|
||||
},
|
||||
{
|
||||
"format": "float",
|
||||
"iid": 14,
|
||||
"maxValue": 100.0,
|
||||
"minStep": 1.0,
|
||||
"minValue": 0.0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "0000002F-0000-1000-8000-0026BB765291",
|
||||
"unit": "percentage",
|
||||
"value": 100.0
|
||||
},
|
||||
{
|
||||
"description": "lb_timer_setting",
|
||||
"format": "data",
|
||||
"iid": 63,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "A30DFE91-271A-42A5-88BA-00E3FF5488AD",
|
||||
"value": "AA=="
|
||||
},
|
||||
{
|
||||
"description": "light effect mode",
|
||||
"format": "uint8",
|
||||
"iid": 64,
|
||||
"maxValue": 31,
|
||||
"minStep": 1,
|
||||
"minValue": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "146889FC-7C42-429B-93AB-E80F79759E90",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "light effect flag",
|
||||
"format": "uint32",
|
||||
"iid": 73,
|
||||
"perms": ["pr"],
|
||||
"type": "9D4B479D-9EFB-4739-98F3-B33E6543BF7B",
|
||||
"value": 7
|
||||
},
|
||||
{
|
||||
"description": "flashing mode",
|
||||
"format": "data",
|
||||
"iid": 65,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "2C42B339-6EC9-4ED5-8DBF-FFCCC721B144",
|
||||
"value": "AA=="
|
||||
},
|
||||
{
|
||||
"description": "smoothing mode",
|
||||
"format": "data",
|
||||
"iid": 66,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "A3663C89-DC18-42EF-8297-910A4C0C9B61",
|
||||
"value": "AA=="
|
||||
},
|
||||
{
|
||||
"description": "breathing mode",
|
||||
"format": "data",
|
||||
"iid": 67,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"type": "6533B15C-AECB-455F-8896-20B125390F61",
|
||||
"value": "AA=="
|
||||
}
|
||||
],
|
||||
"iid": 9,
|
||||
"stype": "lightbulb",
|
||||
"type": "00000043-0000-1000-8000-0026BB765291"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "time_zone",
|
||||
"format": "int",
|
||||
"iid": 50,
|
||||
"maxValue": 1400,
|
||||
"minStep": 1,
|
||||
"minValue": -1200,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "38396B8E-161B-4A77-AF3F-C4DAC0BE9B74",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "hour_date_time",
|
||||
"format": "int",
|
||||
"iid": 51,
|
||||
"perms": ["pr", "pw"],
|
||||
"type": "71216CD3-209E-40CC-BEA0-71A2A9458E13",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"iid": 48,
|
||||
"stype": "Unknown Service: 961EBB65-A1E3-4F34-BD31-86552706FE40",
|
||||
"type": "961EBB65-A1E3-4F34-BD31-86552706FE40"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"description": "fm_upgrade_status",
|
||||
"format": "int",
|
||||
"iid": 21,
|
||||
"perms": ["pr", "ev"],
|
||||
"type": "49DDDE07-C3FA-499E-8055-58E154E04F34",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"description": "fm_upgrade_url",
|
||||
"format": "string",
|
||||
"iid": 22,
|
||||
"maxLen": 256,
|
||||
"perms": ["pw"],
|
||||
"type": "4C203E30-EB25-466D-9980-C6C2E14BF6AA"
|
||||
}
|
||||
],
|
||||
"hidden": true,
|
||||
"iid": 20,
|
||||
"stype": "Unknown Service: 3138B537-E830-4F52-90A7-D6FDB000BF97",
|
||||
"type": "3138B537-E830-4F52-90A7-D6FDB000BF97"
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"format": "string",
|
||||
"iid": 24,
|
||||
"perms": ["pr"],
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"value": "1.1.0"
|
||||
}
|
||||
],
|
||||
"iid": 23,
|
||||
"stype": "service",
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,335 @@
|
||||
[
|
||||
{
|
||||
"aid": 1,
|
||||
"services": [
|
||||
{
|
||||
"iid": 1,
|
||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 2,
|
||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"perms": ["pw"]
|
||||
},
|
||||
{
|
||||
"iid": 3,
|
||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "VOCOlinc",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 4,
|
||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "VP3",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 5,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "VOCOlinc-VP3-123456",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 6,
|
||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "EU0121203xxxxx07",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 7,
|
||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.101.2",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 8,
|
||||
"type": "00000053-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.0.3",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 9,
|
||||
"type": "34AB8811-AC7F-4340-BAC3-FD6A85F9943B",
|
||||
"format": "string",
|
||||
"value": "3.0;17A126",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 10,
|
||||
"type": "220",
|
||||
"format": "data",
|
||||
"value": "wLrKXjM2g90=",
|
||||
"perms": ["pr", "hd"],
|
||||
"ev": false,
|
||||
"maxDataLen": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 16,
|
||||
"type": "000000A2-0000-1000-8000-0026BB765291",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 18,
|
||||
"type": "00000037-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "1.1.0",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 48,
|
||||
"type": "00000047-0000-1000-8000-0026BB765291",
|
||||
"primary": true,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 50,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Outlet",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 51,
|
||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
||||
"format": "bool",
|
||||
"value": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 83,
|
||||
"type": "A30DFE96-271A-42A5-88BA-00E3FF5488AD",
|
||||
"format": "data",
|
||||
"value": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"maxDataLen": 256
|
||||
},
|
||||
{
|
||||
"iid": 53,
|
||||
"type": "E2E80928-E08A-472F-8AE9-70BA72E132F2",
|
||||
"format": "int",
|
||||
"value": 1,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 1,
|
||||
"maxValue": 3600,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 54,
|
||||
"type": "D4669376-C36E-4C43-ACA4-ED07686EAB19",
|
||||
"format": "uint8",
|
||||
"value": 0,
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2,
|
||||
"minStep": 0
|
||||
},
|
||||
{
|
||||
"iid": 97,
|
||||
"type": "FC093458-18F0-4B1D-8360-BB68A3FCC9C5",
|
||||
"format": "int",
|
||||
"value": 0,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2147483647,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 98,
|
||||
"type": "865AD00B-A016-416E-8918-CF8E7EC788C4",
|
||||
"format": "int",
|
||||
"value": 2552,
|
||||
"perms": ["pr"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 2147483647,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 99,
|
||||
"type": "2D5D1654-63EE-4314-9CF1-651F266D3BBE",
|
||||
"format": "data",
|
||||
"value": "AQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"maxDataLen": 128
|
||||
},
|
||||
{
|
||||
"iid": 100,
|
||||
"type": "6E46AD30-6FC2-426F-9A86-C2A834DD8F29",
|
||||
"format": "data",
|
||||
"value": "AQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"maxDataLen": 128
|
||||
},
|
||||
{
|
||||
"iid": 101,
|
||||
"type": "56F805A5-4B30-47D0-9908-E609B4CF18E3",
|
||||
"format": "data",
|
||||
"value": "AQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"maxDataLen": 128
|
||||
},
|
||||
{
|
||||
"iid": 102,
|
||||
"type": "A121FC5E-67DB-41EC-BF4F-5A431F0DA9CB",
|
||||
"format": "data",
|
||||
"value": "AQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"maxDataLen": 64
|
||||
},
|
||||
{
|
||||
"iid": 103,
|
||||
"type": "BC75E7A0-7DD8-4CBB-9DE8-93E70A04916D",
|
||||
"format": "data",
|
||||
"value": "AQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"maxDataLen": 64
|
||||
},
|
||||
{
|
||||
"iid": 89,
|
||||
"type": "43CE176B-2933-4034-98A7-AD215BEEBF2F",
|
||||
"format": "data",
|
||||
"value": "AAAAAAAAAAAAAA==",
|
||||
"perms": ["pr", "pw", "ev"],
|
||||
"ev": false,
|
||||
"description": "\"CountDown\"",
|
||||
"maxDataLen": 256
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 64,
|
||||
"type": "3138B537-E830-4F52-90A7-D6FDB000BF97",
|
||||
"primary": false,
|
||||
"hidden": true,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 65,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "FW Update",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 66,
|
||||
"type": "4C203E30-EB25-466D-9980-C6C2E14BF6AA",
|
||||
"format": "string",
|
||||
"perms": ["pw", "hd"],
|
||||
"description": "\"FW update\"",
|
||||
"maxLen": 128
|
||||
},
|
||||
{
|
||||
"iid": 67,
|
||||
"type": "49DDDE07-C3FA-499E-8055-58E154E04F34",
|
||||
"format": "int",
|
||||
"value": null,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false,
|
||||
"minValue": 0,
|
||||
"maxValue": 3,
|
||||
"minStep": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 80,
|
||||
"type": "C635EF5C-5BBC-4F96-B7DA-6669069A4B32",
|
||||
"primary": false,
|
||||
"hidden": true,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 82,
|
||||
"type": "8137182C-6904-4FB9-ADCC-61CECA85CE48",
|
||||
"format": "uint8",
|
||||
"value": 27,
|
||||
"perms": ["pr", "ev"],
|
||||
"ev": false
|
||||
},
|
||||
{
|
||||
"iid": 81,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "Rssi Report",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"iid": 84,
|
||||
"type": "961BBB65-A1E3-4F34-BD31-86552706FE40",
|
||||
"primary": false,
|
||||
"hidden": false,
|
||||
"linked": [],
|
||||
"characteristics": [
|
||||
{
|
||||
"iid": 85,
|
||||
"type": "38396B8E-161B-4A77-AF3F-C4DAC0BE9B74",
|
||||
"format": "int",
|
||||
"value": 999,
|
||||
"perms": ["pr", "pw"],
|
||||
"ev": false,
|
||||
"minValue": -1200,
|
||||
"maxValue": 1400,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 86,
|
||||
"type": "71216CD3-209E-40CC-BEA0-71A2A9458E13",
|
||||
"format": "int",
|
||||
"perms": ["pw"],
|
||||
"minValue": 0,
|
||||
"maxValue": 2147483647,
|
||||
"minStep": 1
|
||||
},
|
||||
{
|
||||
"iid": 87,
|
||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
||||
"format": "string",
|
||||
"value": "sync time",
|
||||
"perms": ["pr"],
|
||||
"ev": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,651 @@
|
||||
# serializer version: 1
|
||||
# name: test_config_entry
|
||||
dict({
|
||||
'config-entry': dict({
|
||||
'data': dict({
|
||||
'AccessoryPairingID': '00:00:00:00:00:00',
|
||||
}),
|
||||
'title': 'test',
|
||||
'version': 1,
|
||||
}),
|
||||
'config-num': 0,
|
||||
'devices': list([
|
||||
dict({
|
||||
'entities': list([
|
||||
dict({
|
||||
'device_class': None,
|
||||
'disabled': False,
|
||||
'disabled_by': None,
|
||||
'entity_category': 'diagnostic',
|
||||
'icon': None,
|
||||
'original_device_class': 'identify',
|
||||
'original_icon': None,
|
||||
'original_name': 'Koogeek-LS1-20833F Identify',
|
||||
'state': dict({
|
||||
'attributes': dict({
|
||||
'device_class': 'identify',
|
||||
'friendly_name': 'Koogeek-LS1-20833F Identify',
|
||||
}),
|
||||
'entity_id': 'button.koogeek_ls1_20833f_identify',
|
||||
'state': 'unknown',
|
||||
}),
|
||||
'unit_of_measurement': None,
|
||||
}),
|
||||
dict({
|
||||
'device_class': None,
|
||||
'disabled': False,
|
||||
'disabled_by': None,
|
||||
'entity_category': None,
|
||||
'icon': None,
|
||||
'original_device_class': None,
|
||||
'original_icon': None,
|
||||
'original_name': 'Koogeek-LS1-20833F Light Strip',
|
||||
'state': dict({
|
||||
'attributes': dict({
|
||||
'brightness': None,
|
||||
'color_mode': None,
|
||||
'color_temp': None,
|
||||
'color_temp_kelvin': None,
|
||||
'friendly_name': 'Koogeek-LS1-20833F Light Strip',
|
||||
'hs_color': None,
|
||||
'max_color_temp_kelvin': 6535,
|
||||
'max_mireds': 500,
|
||||
'min_color_temp_kelvin': 2000,
|
||||
'min_mireds': 153,
|
||||
'rgb_color': None,
|
||||
'supported_color_modes': list([
|
||||
'color_temp',
|
||||
'hs',
|
||||
]),
|
||||
'supported_features': 0,
|
||||
'xy_color': None,
|
||||
}),
|
||||
'entity_id': 'light.koogeek_ls1_20833f_light_strip',
|
||||
'state': 'off',
|
||||
}),
|
||||
'unit_of_measurement': None,
|
||||
}),
|
||||
]),
|
||||
'hw_version': '',
|
||||
'manfacturer': 'Koogeek',
|
||||
'model': 'LS1',
|
||||
'name': 'Koogeek-LS1-20833F',
|
||||
'sw_version': '2.2.15',
|
||||
}),
|
||||
]),
|
||||
'entity-map': list([
|
||||
dict({
|
||||
'aid': 1,
|
||||
'services': list([
|
||||
dict({
|
||||
'characteristics': list([
|
||||
dict({
|
||||
'description': 'Name',
|
||||
'format': 'string',
|
||||
'iid': 2,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000023-0000-1000-8000-0026BB765291',
|
||||
'value': 'Koogeek-LS1-20833F',
|
||||
}),
|
||||
dict({
|
||||
'description': 'Manufacturer',
|
||||
'format': 'string',
|
||||
'iid': 3,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000020-0000-1000-8000-0026BB765291',
|
||||
'value': 'Koogeek',
|
||||
}),
|
||||
dict({
|
||||
'description': 'Model',
|
||||
'format': 'string',
|
||||
'iid': 4,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000021-0000-1000-8000-0026BB765291',
|
||||
'value': 'LS1',
|
||||
}),
|
||||
dict({
|
||||
'description': 'Serial Number',
|
||||
'format': 'string',
|
||||
'iid': 5,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000030-0000-1000-8000-0026BB765291',
|
||||
'value': '**REDACTED**',
|
||||
}),
|
||||
dict({
|
||||
'description': 'Identify',
|
||||
'format': 'bool',
|
||||
'iid': 6,
|
||||
'perms': list([
|
||||
'pw',
|
||||
]),
|
||||
'type': '00000014-0000-1000-8000-0026BB765291',
|
||||
}),
|
||||
dict({
|
||||
'description': 'Firmware Revision',
|
||||
'format': 'string',
|
||||
'iid': 23,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000052-0000-1000-8000-0026BB765291',
|
||||
'value': '2.2.15',
|
||||
}),
|
||||
]),
|
||||
'iid': 1,
|
||||
'type': '0000003E-0000-1000-8000-0026BB765291',
|
||||
}),
|
||||
dict({
|
||||
'characteristics': list([
|
||||
dict({
|
||||
'description': 'On',
|
||||
'format': 'bool',
|
||||
'iid': 8,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
'ev',
|
||||
]),
|
||||
'type': '00000025-0000-1000-8000-0026BB765291',
|
||||
'value': False,
|
||||
}),
|
||||
dict({
|
||||
'description': 'Hue',
|
||||
'format': 'float',
|
||||
'iid': 9,
|
||||
'maxValue': 359,
|
||||
'minStep': 1,
|
||||
'minValue': 0,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
'ev',
|
||||
]),
|
||||
'type': '00000013-0000-1000-8000-0026BB765291',
|
||||
'unit': 'arcdegrees',
|
||||
'value': 44,
|
||||
}),
|
||||
dict({
|
||||
'description': 'Saturation',
|
||||
'format': 'float',
|
||||
'iid': 10,
|
||||
'maxValue': 100,
|
||||
'minStep': 1,
|
||||
'minValue': 0,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
'ev',
|
||||
]),
|
||||
'type': '0000002F-0000-1000-8000-0026BB765291',
|
||||
'unit': 'percentage',
|
||||
'value': 0,
|
||||
}),
|
||||
dict({
|
||||
'description': 'Brightness',
|
||||
'format': 'int',
|
||||
'iid': 11,
|
||||
'maxValue': 100,
|
||||
'minStep': 1,
|
||||
'minValue': 0,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
'ev',
|
||||
]),
|
||||
'type': '00000008-0000-1000-8000-0026BB765291',
|
||||
'unit': 'percentage',
|
||||
'value': 100,
|
||||
}),
|
||||
dict({
|
||||
'description': 'Name',
|
||||
'format': 'string',
|
||||
'iid': 12,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000023-0000-1000-8000-0026BB765291',
|
||||
'value': 'Light Strip',
|
||||
}),
|
||||
]),
|
||||
'iid': 7,
|
||||
'type': '00000043-0000-1000-8000-0026BB765291',
|
||||
}),
|
||||
dict({
|
||||
'characteristics': list([
|
||||
dict({
|
||||
'description': 'TIMER_SETTINGS',
|
||||
'format': 'tlv8',
|
||||
'iid': 14,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
]),
|
||||
'type': '4AAAF942-0DEC-11E5-B939-0800200C9A66',
|
||||
'value': 'AHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
|
||||
}),
|
||||
]),
|
||||
'iid': 13,
|
||||
'type': '4AAAF940-0DEC-11E5-B939-0800200C9A66',
|
||||
}),
|
||||
dict({
|
||||
'characteristics': list([
|
||||
dict({
|
||||
'description': 'FW Upgrade supported types',
|
||||
'format': 'string',
|
||||
'iid': 16,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'hd',
|
||||
]),
|
||||
'type': '151909D2-3802-11E4-916C-0800200C9A66',
|
||||
'value': 'url,data',
|
||||
}),
|
||||
dict({
|
||||
'description': 'FW Upgrade URL',
|
||||
'format': 'string',
|
||||
'iid': 17,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pw',
|
||||
'hd',
|
||||
]),
|
||||
'type': '151909D1-3802-11E4-916C-0800200C9A66',
|
||||
}),
|
||||
dict({
|
||||
'description': 'FW Upgrade Status',
|
||||
'format': 'int',
|
||||
'iid': 18,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'ev',
|
||||
'hd',
|
||||
]),
|
||||
'type': '151909D6-3802-11E4-916C-0800200C9A66',
|
||||
'value': 0,
|
||||
}),
|
||||
dict({
|
||||
'description': 'FW Upgrade Data',
|
||||
'format': 'data',
|
||||
'iid': 19,
|
||||
'perms': list([
|
||||
'pw',
|
||||
'hd',
|
||||
]),
|
||||
'type': '151909D7-3802-11E4-916C-0800200C9A66',
|
||||
}),
|
||||
]),
|
||||
'iid': 15,
|
||||
'type': '151909D0-3802-11E4-916C-0800200C9A66',
|
||||
}),
|
||||
dict({
|
||||
'characteristics': list([
|
||||
dict({
|
||||
'description': 'Timezone',
|
||||
'format': 'int',
|
||||
'iid': 21,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
]),
|
||||
'type': '151909D5-3802-11E4-916C-0800200C9A66',
|
||||
'value': 0,
|
||||
}),
|
||||
dict({
|
||||
'description': 'Time value since Epoch',
|
||||
'format': 'int',
|
||||
'iid': 22,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
]),
|
||||
'type': '151909D4-3802-11E4-916C-0800200C9A66',
|
||||
'value': 1550348623,
|
||||
}),
|
||||
]),
|
||||
'iid': 20,
|
||||
'type': '151909D3-3802-11E4-916C-0800200C9A66',
|
||||
}),
|
||||
]),
|
||||
}),
|
||||
]),
|
||||
})
|
||||
# ---
|
||||
# name: test_device
|
||||
dict({
|
||||
'config-entry': dict({
|
||||
'data': dict({
|
||||
'AccessoryPairingID': '00:00:00:00:00:00',
|
||||
}),
|
||||
'title': 'test',
|
||||
'version': 1,
|
||||
}),
|
||||
'config-num': 0,
|
||||
'device': dict({
|
||||
'entities': list([
|
||||
dict({
|
||||
'device_class': None,
|
||||
'disabled': False,
|
||||
'disabled_by': None,
|
||||
'entity_category': 'diagnostic',
|
||||
'icon': None,
|
||||
'original_device_class': 'identify',
|
||||
'original_icon': None,
|
||||
'original_name': 'Koogeek-LS1-20833F Identify',
|
||||
'state': dict({
|
||||
'attributes': dict({
|
||||
'device_class': 'identify',
|
||||
'friendly_name': 'Koogeek-LS1-20833F Identify',
|
||||
}),
|
||||
'entity_id': 'button.koogeek_ls1_20833f_identify',
|
||||
'state': 'unknown',
|
||||
}),
|
||||
'unit_of_measurement': None,
|
||||
}),
|
||||
dict({
|
||||
'device_class': None,
|
||||
'disabled': False,
|
||||
'disabled_by': None,
|
||||
'entity_category': None,
|
||||
'icon': None,
|
||||
'original_device_class': None,
|
||||
'original_icon': None,
|
||||
'original_name': 'Koogeek-LS1-20833F Light Strip',
|
||||
'state': dict({
|
||||
'attributes': dict({
|
||||
'brightness': None,
|
||||
'color_mode': None,
|
||||
'color_temp': None,
|
||||
'color_temp_kelvin': None,
|
||||
'friendly_name': 'Koogeek-LS1-20833F Light Strip',
|
||||
'hs_color': None,
|
||||
'max_color_temp_kelvin': 6535,
|
||||
'max_mireds': 500,
|
||||
'min_color_temp_kelvin': 2000,
|
||||
'min_mireds': 153,
|
||||
'rgb_color': None,
|
||||
'supported_color_modes': list([
|
||||
'color_temp',
|
||||
'hs',
|
||||
]),
|
||||
'supported_features': 0,
|
||||
'xy_color': None,
|
||||
}),
|
||||
'entity_id': 'light.koogeek_ls1_20833f_light_strip',
|
||||
'state': 'off',
|
||||
}),
|
||||
'unit_of_measurement': None,
|
||||
}),
|
||||
]),
|
||||
'hw_version': '',
|
||||
'manfacturer': 'Koogeek',
|
||||
'model': 'LS1',
|
||||
'name': 'Koogeek-LS1-20833F',
|
||||
'sw_version': '2.2.15',
|
||||
}),
|
||||
'entity-map': list([
|
||||
dict({
|
||||
'aid': 1,
|
||||
'services': list([
|
||||
dict({
|
||||
'characteristics': list([
|
||||
dict({
|
||||
'description': 'Name',
|
||||
'format': 'string',
|
||||
'iid': 2,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000023-0000-1000-8000-0026BB765291',
|
||||
'value': 'Koogeek-LS1-20833F',
|
||||
}),
|
||||
dict({
|
||||
'description': 'Manufacturer',
|
||||
'format': 'string',
|
||||
'iid': 3,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000020-0000-1000-8000-0026BB765291',
|
||||
'value': 'Koogeek',
|
||||
}),
|
||||
dict({
|
||||
'description': 'Model',
|
||||
'format': 'string',
|
||||
'iid': 4,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000021-0000-1000-8000-0026BB765291',
|
||||
'value': 'LS1',
|
||||
}),
|
||||
dict({
|
||||
'description': 'Serial Number',
|
||||
'format': 'string',
|
||||
'iid': 5,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000030-0000-1000-8000-0026BB765291',
|
||||
'value': '**REDACTED**',
|
||||
}),
|
||||
dict({
|
||||
'description': 'Identify',
|
||||
'format': 'bool',
|
||||
'iid': 6,
|
||||
'perms': list([
|
||||
'pw',
|
||||
]),
|
||||
'type': '00000014-0000-1000-8000-0026BB765291',
|
||||
}),
|
||||
dict({
|
||||
'description': 'Firmware Revision',
|
||||
'format': 'string',
|
||||
'iid': 23,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000052-0000-1000-8000-0026BB765291',
|
||||
'value': '2.2.15',
|
||||
}),
|
||||
]),
|
||||
'iid': 1,
|
||||
'type': '0000003E-0000-1000-8000-0026BB765291',
|
||||
}),
|
||||
dict({
|
||||
'characteristics': list([
|
||||
dict({
|
||||
'description': 'On',
|
||||
'format': 'bool',
|
||||
'iid': 8,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
'ev',
|
||||
]),
|
||||
'type': '00000025-0000-1000-8000-0026BB765291',
|
||||
'value': False,
|
||||
}),
|
||||
dict({
|
||||
'description': 'Hue',
|
||||
'format': 'float',
|
||||
'iid': 9,
|
||||
'maxValue': 359,
|
||||
'minStep': 1,
|
||||
'minValue': 0,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
'ev',
|
||||
]),
|
||||
'type': '00000013-0000-1000-8000-0026BB765291',
|
||||
'unit': 'arcdegrees',
|
||||
'value': 44,
|
||||
}),
|
||||
dict({
|
||||
'description': 'Saturation',
|
||||
'format': 'float',
|
||||
'iid': 10,
|
||||
'maxValue': 100,
|
||||
'minStep': 1,
|
||||
'minValue': 0,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
'ev',
|
||||
]),
|
||||
'type': '0000002F-0000-1000-8000-0026BB765291',
|
||||
'unit': 'percentage',
|
||||
'value': 0,
|
||||
}),
|
||||
dict({
|
||||
'description': 'Brightness',
|
||||
'format': 'int',
|
||||
'iid': 11,
|
||||
'maxValue': 100,
|
||||
'minStep': 1,
|
||||
'minValue': 0,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
'ev',
|
||||
]),
|
||||
'type': '00000008-0000-1000-8000-0026BB765291',
|
||||
'unit': 'percentage',
|
||||
'value': 100,
|
||||
}),
|
||||
dict({
|
||||
'description': 'Name',
|
||||
'format': 'string',
|
||||
'iid': 12,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
]),
|
||||
'type': '00000023-0000-1000-8000-0026BB765291',
|
||||
'value': 'Light Strip',
|
||||
}),
|
||||
]),
|
||||
'iid': 7,
|
||||
'type': '00000043-0000-1000-8000-0026BB765291',
|
||||
}),
|
||||
dict({
|
||||
'characteristics': list([
|
||||
dict({
|
||||
'description': 'TIMER_SETTINGS',
|
||||
'format': 'tlv8',
|
||||
'iid': 14,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
]),
|
||||
'type': '4AAAF942-0DEC-11E5-B939-0800200C9A66',
|
||||
'value': 'AHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
|
||||
}),
|
||||
]),
|
||||
'iid': 13,
|
||||
'type': '4AAAF940-0DEC-11E5-B939-0800200C9A66',
|
||||
}),
|
||||
dict({
|
||||
'characteristics': list([
|
||||
dict({
|
||||
'description': 'FW Upgrade supported types',
|
||||
'format': 'string',
|
||||
'iid': 16,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'hd',
|
||||
]),
|
||||
'type': '151909D2-3802-11E4-916C-0800200C9A66',
|
||||
'value': 'url,data',
|
||||
}),
|
||||
dict({
|
||||
'description': 'FW Upgrade URL',
|
||||
'format': 'string',
|
||||
'iid': 17,
|
||||
'maxLen': 64,
|
||||
'perms': list([
|
||||
'pw',
|
||||
'hd',
|
||||
]),
|
||||
'type': '151909D1-3802-11E4-916C-0800200C9A66',
|
||||
}),
|
||||
dict({
|
||||
'description': 'FW Upgrade Status',
|
||||
'format': 'int',
|
||||
'iid': 18,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'ev',
|
||||
'hd',
|
||||
]),
|
||||
'type': '151909D6-3802-11E4-916C-0800200C9A66',
|
||||
'value': 0,
|
||||
}),
|
||||
dict({
|
||||
'description': 'FW Upgrade Data',
|
||||
'format': 'data',
|
||||
'iid': 19,
|
||||
'perms': list([
|
||||
'pw',
|
||||
'hd',
|
||||
]),
|
||||
'type': '151909D7-3802-11E4-916C-0800200C9A66',
|
||||
}),
|
||||
]),
|
||||
'iid': 15,
|
||||
'type': '151909D0-3802-11E4-916C-0800200C9A66',
|
||||
}),
|
||||
dict({
|
||||
'characteristics': list([
|
||||
dict({
|
||||
'description': 'Timezone',
|
||||
'format': 'int',
|
||||
'iid': 21,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
]),
|
||||
'type': '151909D5-3802-11E4-916C-0800200C9A66',
|
||||
'value': 0,
|
||||
}),
|
||||
dict({
|
||||
'description': 'Time value since Epoch',
|
||||
'format': 'int',
|
||||
'iid': 22,
|
||||
'perms': list([
|
||||
'pr',
|
||||
'pw',
|
||||
]),
|
||||
'type': '151909D4-3802-11E4-916C-0800200C9A66',
|
||||
'value': 1550348623,
|
||||
}),
|
||||
]),
|
||||
'iid': 20,
|
||||
'type': '151909D3-3802-11E4-916C-0800200C9A66',
|
||||
}),
|
||||
]),
|
||||
}),
|
||||
]),
|
||||
})
|
||||
# ---
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
"""Tests for specific devices."""
|
||||
@@ -0,0 +1,60 @@
|
||||
"""Test against characteristics captured from a eufycam."""
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from ..common import (
|
||||
HUB_TEST_ACCESSORY_ID,
|
||||
DeviceTestInfo,
|
||||
EntityTestInfo,
|
||||
assert_devices_and_entities_created,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_eufycam_setup(hass: HomeAssistant) -> None:
|
||||
"""Test that a eufycam can be correctly setup in HA."""
|
||||
accessories = await setup_accessories_from_file(hass, "anker_eufycam.json")
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
await assert_devices_and_entities_created(
|
||||
hass,
|
||||
DeviceTestInfo(
|
||||
unique_id=HUB_TEST_ACCESSORY_ID,
|
||||
name="eufy HomeBase2-0AAA",
|
||||
model="T8010",
|
||||
manufacturer="Anker",
|
||||
sw_version="2.1.6",
|
||||
hw_version="2.0.0",
|
||||
serial_number="A0000A000000000A",
|
||||
devices=[
|
||||
DeviceTestInfo(
|
||||
name="eufyCam2-0000",
|
||||
model="T8113",
|
||||
manufacturer="Anker",
|
||||
sw_version="1.6.7",
|
||||
hw_version="1.0.0",
|
||||
serial_number="A0000A000000000D",
|
||||
unique_id="00:00:00:00:00:00:aid:4",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="camera.eufycam2_0000",
|
||||
friendly_name="eufyCam2-0000",
|
||||
unique_id="00:00:00:00:00:00_4",
|
||||
state="idle",
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
entities=[],
|
||||
),
|
||||
)
|
||||
|
||||
# There are multiple rtsp services, we only want to create 1
|
||||
# camera entity per accessory, not 1 camera per service.
|
||||
cameras_count = 0
|
||||
for state in hass.states.async_all():
|
||||
if state.entity_id.startswith("camera."):
|
||||
cameras_count += 1
|
||||
assert cameras_count == 3
|
||||
@@ -0,0 +1,57 @@
|
||||
"""Regression tests for Aqara AR004.
|
||||
|
||||
This device has a non-standard programmable stateless switch service that has a
|
||||
service-label-index despite not being linked to a service-label.
|
||||
|
||||
https://github.com/home-assistant/core/pull/39090
|
||||
"""
|
||||
|
||||
from homeassistant.components.sensor import SensorStateClass
|
||||
from homeassistant.const import PERCENTAGE, EntityCategory
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from ..common import (
|
||||
HUB_TEST_ACCESSORY_ID,
|
||||
DeviceTestInfo,
|
||||
DeviceTriggerInfo,
|
||||
EntityTestInfo,
|
||||
assert_devices_and_entities_created,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_aqara_switch_setup(hass: HomeAssistant) -> None:
|
||||
"""Test that a Aqara Switch can be correctly setup in HA."""
|
||||
accessories = await setup_accessories_from_file(hass, "aqara_switch.json")
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
await assert_devices_and_entities_created(
|
||||
hass,
|
||||
DeviceTestInfo(
|
||||
unique_id=HUB_TEST_ACCESSORY_ID,
|
||||
name="Programmable Switch",
|
||||
model="AR004",
|
||||
manufacturer="Aqara",
|
||||
sw_version="9",
|
||||
hw_version="1.0",
|
||||
serial_number="111a1111a1a111",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.programmable_switch_battery_sensor",
|
||||
friendly_name="Programmable Switch Battery Sensor",
|
||||
unique_id="00:00:00:00:00:00_1_5",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
unit_of_measurement=PERCENTAGE,
|
||||
state="100",
|
||||
),
|
||||
],
|
||||
stateless_triggers=[
|
||||
DeviceTriggerInfo(type="button1", subtype="single_press"),
|
||||
DeviceTriggerInfo(type="button1", subtype="double_press"),
|
||||
DeviceTriggerInfo(type="button1", subtype="long_press"),
|
||||
],
|
||||
),
|
||||
)
|
||||
@@ -0,0 +1,175 @@
|
||||
"""Make sure that ConnectSense Smart Outlet2 / In-Wall Outlet is enumerated properly."""
|
||||
|
||||
from homeassistant.components.sensor import SensorStateClass
|
||||
from homeassistant.const import UnitOfElectricCurrent, UnitOfEnergy, UnitOfPower
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from ..common import (
|
||||
HUB_TEST_ACCESSORY_ID,
|
||||
DeviceTestInfo,
|
||||
EntityTestInfo,
|
||||
assert_devices_and_entities_created,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_connectsense_setup(hass: HomeAssistant) -> None:
|
||||
"""Test that the accessory can be correctly setup in HA."""
|
||||
accessories = await setup_accessories_from_file(hass, "connectsense.json")
|
||||
config_entry, pairing = await setup_test_accessories(hass, accessories)
|
||||
|
||||
await assert_devices_and_entities_created(
|
||||
hass,
|
||||
DeviceTestInfo(
|
||||
unique_id=HUB_TEST_ACCESSORY_ID,
|
||||
name="InWall Outlet-0394DE",
|
||||
model="CS-IWO",
|
||||
manufacturer="ConnectSense",
|
||||
sw_version="1.0.0",
|
||||
hw_version="",
|
||||
serial_number="1020301376",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_current",
|
||||
friendly_name="InWall Outlet-0394DE Current",
|
||||
unique_id="00:00:00:00:00:00_1_13_18",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
unit_of_measurement=UnitOfElectricCurrent.AMPERE,
|
||||
state="0.03",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_power",
|
||||
friendly_name="InWall Outlet-0394DE Power",
|
||||
unique_id="00:00:00:00:00:00_1_13_19",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
unit_of_measurement=UnitOfPower.WATT,
|
||||
state="0.8",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_energy_kwh",
|
||||
friendly_name="InWall Outlet-0394DE Energy kWh",
|
||||
unique_id="00:00:00:00:00:00_1_13_20",
|
||||
capabilities={"state_class": SensorStateClass.TOTAL_INCREASING},
|
||||
unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
state="379.69299",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="switch.inwall_outlet_0394de_outlet_a",
|
||||
friendly_name="InWall Outlet-0394DE Outlet A",
|
||||
unique_id="00:00:00:00:00:00_1_13",
|
||||
state="on",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_current_2",
|
||||
friendly_name="InWall Outlet-0394DE Current",
|
||||
unique_id="00:00:00:00:00:00_1_25_30",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
unit_of_measurement=UnitOfElectricCurrent.AMPERE,
|
||||
state="0.05",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_power_2",
|
||||
friendly_name="InWall Outlet-0394DE Power",
|
||||
unique_id="00:00:00:00:00:00_1_25_31",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
unit_of_measurement=UnitOfPower.WATT,
|
||||
state="0.8",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_energy_kwh_2",
|
||||
friendly_name="InWall Outlet-0394DE Energy kWh",
|
||||
unique_id="00:00:00:00:00:00_1_25_32",
|
||||
capabilities={"state_class": SensorStateClass.TOTAL_INCREASING},
|
||||
unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
state="175.85001",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="switch.inwall_outlet_0394de_outlet_b",
|
||||
friendly_name="InWall Outlet-0394DE Outlet B",
|
||||
unique_id="00:00:00:00:00:00_1_25",
|
||||
state="on",
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
await hass.config_entries.async_reload(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
await assert_devices_and_entities_created(
|
||||
hass,
|
||||
DeviceTestInfo(
|
||||
unique_id=HUB_TEST_ACCESSORY_ID,
|
||||
name="InWall Outlet-0394DE",
|
||||
model="CS-IWO",
|
||||
manufacturer="ConnectSense",
|
||||
sw_version="1.0.0",
|
||||
hw_version="",
|
||||
serial_number="1020301376",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_current",
|
||||
friendly_name="InWall Outlet-0394DE Current",
|
||||
unique_id="00:00:00:00:00:00_1_13_18",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
unit_of_measurement=UnitOfElectricCurrent.AMPERE,
|
||||
state="0.03",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_power",
|
||||
friendly_name="InWall Outlet-0394DE Power",
|
||||
unique_id="00:00:00:00:00:00_1_13_19",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
unit_of_measurement=UnitOfPower.WATT,
|
||||
state="0.8",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_energy_kwh",
|
||||
friendly_name="InWall Outlet-0394DE Energy kWh",
|
||||
unique_id="00:00:00:00:00:00_1_13_20",
|
||||
capabilities={"state_class": SensorStateClass.TOTAL_INCREASING},
|
||||
unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
state="379.69299",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="switch.inwall_outlet_0394de_outlet_a",
|
||||
friendly_name="InWall Outlet-0394DE Outlet A",
|
||||
unique_id="00:00:00:00:00:00_1_13",
|
||||
state="on",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_current_2",
|
||||
friendly_name="InWall Outlet-0394DE Current",
|
||||
unique_id="00:00:00:00:00:00_1_25_30",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
unit_of_measurement=UnitOfElectricCurrent.AMPERE,
|
||||
state="0.05",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_power_2",
|
||||
friendly_name="InWall Outlet-0394DE Power",
|
||||
unique_id="00:00:00:00:00:00_1_25_31",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
unit_of_measurement=UnitOfPower.WATT,
|
||||
state="0.8",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.inwall_outlet_0394de_energy_kwh_2",
|
||||
friendly_name="InWall Outlet-0394DE Energy kWh",
|
||||
unique_id="00:00:00:00:00:00_1_25_32",
|
||||
capabilities={"state_class": SensorStateClass.TOTAL_INCREASING},
|
||||
unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
state="175.85001",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="switch.inwall_outlet_0394de_outlet_b",
|
||||
friendly_name="InWall Outlet-0394DE Outlet B",
|
||||
unique_id="00:00:00:00:00:00_1_25",
|
||||
state="on",
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
@@ -0,0 +1,53 @@
|
||||
"""Test for a Home Assistant bridge that changes cover features at runtime."""
|
||||
|
||||
from homeassistant.components.cover import CoverEntityFeature
|
||||
from homeassistant.const import ATTR_SUPPORTED_FEATURES
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from ..common import (
|
||||
device_config_changed,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_cover_add_feature_at_runtime(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test that new features can be added at runtime."""
|
||||
|
||||
# Set up a basic cover that does not support position
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_cover.json"
|
||||
)
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
cover = entity_registry.async_get("cover.family_room_north")
|
||||
assert cover.unique_id == "00:00:00:00:00:00_123016423_166"
|
||||
|
||||
cover_state = hass.states.get("cover.family_room_north")
|
||||
assert (
|
||||
cover_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is CoverEntityFeature.OPEN
|
||||
| CoverEntityFeature.STOP
|
||||
| CoverEntityFeature.CLOSE
|
||||
| CoverEntityFeature.SET_POSITION
|
||||
)
|
||||
|
||||
cover = entity_registry.async_get("cover.family_room_north")
|
||||
assert cover.unique_id == "00:00:00:00:00:00_123016423_166"
|
||||
|
||||
# Now change the config to remove stop
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_basic_cover.json"
|
||||
)
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
cover_state = hass.states.get("cover.family_room_north")
|
||||
assert (
|
||||
cover_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is CoverEntityFeature.OPEN
|
||||
| CoverEntityFeature.CLOSE
|
||||
| CoverEntityFeature.SET_POSITION
|
||||
)
|
||||
@@ -0,0 +1,359 @@
|
||||
"""Regression tests for Ecobee 3.
|
||||
|
||||
https://github.com/home-assistant/core/issues/15336
|
||||
"""
|
||||
|
||||
from typing import Any
|
||||
from unittest import mock
|
||||
|
||||
from aiohomekit import AccessoryNotFoundError
|
||||
from aiohomekit.testing import FakePairing
|
||||
|
||||
from homeassistant.components.climate import ClimateEntityFeature
|
||||
from homeassistant.components.sensor import SensorStateClass
|
||||
from homeassistant.config_entries import ConfigEntryState
|
||||
from homeassistant.const import UnitOfTemperature
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from ..common import (
|
||||
HUB_TEST_ACCESSORY_ID,
|
||||
DeviceTestInfo,
|
||||
EntityTestInfo,
|
||||
assert_devices_and_entities_created,
|
||||
device_config_changed,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
time_changed,
|
||||
)
|
||||
|
||||
|
||||
async def test_ecobee3_setup(hass: HomeAssistant) -> None:
|
||||
"""Test that a Ecbobee 3 can be correctly setup in HA."""
|
||||
accessories = await setup_accessories_from_file(hass, "ecobee3.json")
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
await assert_devices_and_entities_created(
|
||||
hass,
|
||||
DeviceTestInfo(
|
||||
unique_id=HUB_TEST_ACCESSORY_ID,
|
||||
name="HomeW",
|
||||
model="ecobee3",
|
||||
manufacturer="ecobee Inc.",
|
||||
sw_version="4.2.394",
|
||||
hw_version="",
|
||||
serial_number="123456789012",
|
||||
devices=[
|
||||
DeviceTestInfo(
|
||||
name="Kitchen",
|
||||
model="REMOTE SENSOR",
|
||||
manufacturer="ecobee Inc.",
|
||||
sw_version="1.0.0",
|
||||
hw_version="",
|
||||
serial_number="AB1C",
|
||||
unique_id="00:00:00:00:00:00:aid:2",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="binary_sensor.kitchen",
|
||||
friendly_name="Kitchen",
|
||||
unique_id="00:00:00:00:00:00_2_56",
|
||||
state="off",
|
||||
),
|
||||
],
|
||||
),
|
||||
DeviceTestInfo(
|
||||
name="Porch",
|
||||
model="REMOTE SENSOR",
|
||||
manufacturer="ecobee Inc.",
|
||||
sw_version="1.0.0",
|
||||
hw_version="",
|
||||
serial_number="AB2C",
|
||||
unique_id="00:00:00:00:00:00:aid:3",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="binary_sensor.porch",
|
||||
friendly_name="Porch",
|
||||
unique_id="00:00:00:00:00:00_3_56",
|
||||
state="off",
|
||||
),
|
||||
],
|
||||
),
|
||||
DeviceTestInfo(
|
||||
name="Basement",
|
||||
model="REMOTE SENSOR",
|
||||
manufacturer="ecobee Inc.",
|
||||
sw_version="1.0.0",
|
||||
hw_version="",
|
||||
serial_number="AB3C",
|
||||
unique_id="00:00:00:00:00:00:aid:4",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="binary_sensor.basement",
|
||||
friendly_name="Basement",
|
||||
unique_id="00:00:00:00:00:00_4_56",
|
||||
state="off",
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="climate.homew",
|
||||
friendly_name="HomeW",
|
||||
unique_id="00:00:00:00:00:00_1_16",
|
||||
supported_features=(
|
||||
ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
| ClimateEntityFeature.TARGET_TEMPERATURE_RANGE
|
||||
| ClimateEntityFeature.TARGET_HUMIDITY
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
),
|
||||
capabilities={
|
||||
"hvac_modes": ["off", "heat", "cool", "heat_cool"],
|
||||
"min_temp": 7.2,
|
||||
"max_temp": 33.3,
|
||||
"min_humidity": 20,
|
||||
"max_humidity": 50,
|
||||
},
|
||||
state="heat",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.homew_current_temperature",
|
||||
friendly_name="HomeW Current Temperature",
|
||||
unique_id="00:00:00:00:00:00_1_16_19",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
state="21.8",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="select.homew_current_mode",
|
||||
friendly_name="HomeW Current Mode",
|
||||
unique_id="00:00:00:00:00:00_1_16_33",
|
||||
capabilities={"options": ["home", "sleep", "away"]},
|
||||
state="home",
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
async def test_ecobee3_setup_from_cache(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
hass_storage: dict[str, Any],
|
||||
) -> None:
|
||||
"""Test that Ecbobee can be correctly setup from its cached entity map."""
|
||||
accessories = await setup_accessories_from_file(hass, "ecobee3.json")
|
||||
|
||||
hass_storage["homekit_controller-entity-map"] = {
|
||||
"version": 1,
|
||||
"data": {
|
||||
"pairings": {
|
||||
HUB_TEST_ACCESSORY_ID: {
|
||||
"config_num": 1,
|
||||
"accessories": [
|
||||
a.to_accessory_and_service_list() for a in accessories
|
||||
],
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
climate = entity_registry.async_get("climate.homew")
|
||||
assert climate.unique_id == "00:00:00:00:00:00_1_16"
|
||||
|
||||
occ1 = entity_registry.async_get("binary_sensor.kitchen")
|
||||
assert occ1.unique_id == "00:00:00:00:00:00_2_56"
|
||||
|
||||
occ2 = entity_registry.async_get("binary_sensor.porch")
|
||||
assert occ2.unique_id == "00:00:00:00:00:00_3_56"
|
||||
|
||||
occ3 = entity_registry.async_get("binary_sensor.basement")
|
||||
assert occ3.unique_id == "00:00:00:00:00:00_4_56"
|
||||
|
||||
|
||||
async def test_ecobee3_setup_connection_failure(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test that Ecbobee can be correctly setup from its cached entity map."""
|
||||
accessories = await setup_accessories_from_file(hass, "ecobee3.json")
|
||||
|
||||
# Test that the connection fails during initial setup.
|
||||
# No entities should be created.
|
||||
with mock.patch.object(FakePairing, "async_populate_accessories_state") as laac:
|
||||
laac.side_effect = AccessoryNotFoundError("Connection failed")
|
||||
|
||||
# If there is no cached entity map and the accessory connection is
|
||||
# failing then we have to fail the config entry setup.
|
||||
config_entry, pairing = await setup_test_accessories(hass, accessories)
|
||||
assert config_entry.state is ConfigEntryState.SETUP_RETRY
|
||||
|
||||
climate = entity_registry.async_get("climate.homew")
|
||||
assert climate is None
|
||||
|
||||
# When accessory raises ConfigEntryNoteReady HA will retry - lets make
|
||||
# sure there is no cruft causing conflicts left behind by now doing
|
||||
# a successful setup.
|
||||
|
||||
# We just advance time by 5 minutes so that the retry happens, rather
|
||||
# than manually invoking async_setup_entry.
|
||||
await time_changed(hass, 5 * 60)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
|
||||
climate = entity_registry.async_get("climate.homew")
|
||||
assert climate.unique_id == "00:00:00:00:00:00_1_16"
|
||||
|
||||
occ1 = entity_registry.async_get("binary_sensor.kitchen")
|
||||
assert occ1.unique_id == "00:00:00:00:00:00_2_56"
|
||||
|
||||
occ2 = entity_registry.async_get("binary_sensor.porch")
|
||||
assert occ2.unique_id == "00:00:00:00:00:00_3_56"
|
||||
|
||||
occ3 = entity_registry.async_get("binary_sensor.basement")
|
||||
assert occ3.unique_id == "00:00:00:00:00:00_4_56"
|
||||
|
||||
|
||||
async def test_ecobee3_add_sensors_at_runtime(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test that new sensors are automatically added."""
|
||||
|
||||
# Set up a base Ecobee 3 with no additional sensors.
|
||||
# There shouldn't be any entities but climate visible.
|
||||
accessories = await setup_accessories_from_file(hass, "ecobee3_no_sensors.json")
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
climate = entity_registry.async_get("climate.homew")
|
||||
assert climate.unique_id == "00:00:00:00:00:00_1_16"
|
||||
|
||||
occ1 = entity_registry.async_get("binary_sensor.kitchen")
|
||||
assert occ1 is None
|
||||
|
||||
occ2 = entity_registry.async_get("binary_sensor.porch")
|
||||
assert occ2 is None
|
||||
|
||||
occ3 = entity_registry.async_get("binary_sensor.basement")
|
||||
assert occ3 is None
|
||||
|
||||
# Now added 3 new sensors at runtime - sensors should appear and climate
|
||||
# shouldn't be duplicated.
|
||||
accessories = await setup_accessories_from_file(hass, "ecobee3.json")
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
occ1 = entity_registry.async_get("binary_sensor.kitchen")
|
||||
assert occ1.unique_id == "00:00:00:00:00:00_2_56"
|
||||
|
||||
occ2 = entity_registry.async_get("binary_sensor.porch")
|
||||
assert occ2.unique_id == "00:00:00:00:00:00_3_56"
|
||||
|
||||
occ3 = entity_registry.async_get("binary_sensor.basement")
|
||||
assert occ3.unique_id == "00:00:00:00:00:00_4_56"
|
||||
|
||||
|
||||
async def test_ecobee3_remove_sensors_at_runtime(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test that sensors are automatically removed."""
|
||||
|
||||
# Set up a base Ecobee 3 with additional sensors.
|
||||
accessories = await setup_accessories_from_file(hass, "ecobee3.json")
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
climate = entity_registry.async_get("climate.homew")
|
||||
assert climate.unique_id == "00:00:00:00:00:00_1_16"
|
||||
|
||||
occ1 = entity_registry.async_get("binary_sensor.kitchen")
|
||||
assert occ1.unique_id == "00:00:00:00:00:00_2_56"
|
||||
|
||||
occ2 = entity_registry.async_get("binary_sensor.porch")
|
||||
assert occ2.unique_id == "00:00:00:00:00:00_3_56"
|
||||
|
||||
occ3 = entity_registry.async_get("binary_sensor.basement")
|
||||
assert occ3.unique_id == "00:00:00:00:00:00_4_56"
|
||||
|
||||
assert hass.states.get("binary_sensor.kitchen") is not None
|
||||
assert hass.states.get("binary_sensor.porch") is not None
|
||||
assert hass.states.get("binary_sensor.basement") is not None
|
||||
|
||||
# Now remove 3 new sensors at runtime - sensors should disappear and climate
|
||||
# shouldn't be duplicated.
|
||||
accessories = await setup_accessories_from_file(hass, "ecobee3_no_sensors.json")
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
assert hass.states.get("binary_sensor.kitchen") is None
|
||||
assert entity_registry.async_get("binary_sensor.kitchen") is None
|
||||
|
||||
assert hass.states.get("binary_sensor.porch") is None
|
||||
assert entity_registry.async_get("binary_sensor.porch") is None
|
||||
|
||||
assert hass.states.get("binary_sensor.basement") is None
|
||||
assert entity_registry.async_get("binary_sensor.basement") is None
|
||||
|
||||
# Now add the sensors back
|
||||
accessories = await setup_accessories_from_file(hass, "ecobee3.json")
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
occ1 = entity_registry.async_get("binary_sensor.kitchen")
|
||||
assert occ1.unique_id == "00:00:00:00:00:00_2_56"
|
||||
|
||||
occ2 = entity_registry.async_get("binary_sensor.porch")
|
||||
assert occ2.unique_id == "00:00:00:00:00:00_3_56"
|
||||
|
||||
occ3 = entity_registry.async_get("binary_sensor.basement")
|
||||
assert occ3.unique_id == "00:00:00:00:00:00_4_56"
|
||||
|
||||
# Ensure the sensors are back
|
||||
assert hass.states.get("binary_sensor.kitchen") is not None
|
||||
assert occ1.id == entity_registry.async_get("binary_sensor.kitchen").id
|
||||
|
||||
assert hass.states.get("binary_sensor.porch") is not None
|
||||
assert occ2.id == entity_registry.async_get("binary_sensor.porch").id
|
||||
|
||||
assert hass.states.get("binary_sensor.basement") is not None
|
||||
assert occ3.id == entity_registry.async_get("binary_sensor.basement").id
|
||||
|
||||
|
||||
async def test_ecobee3_services_and_chars_removed(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test handling removal of some services and chars."""
|
||||
|
||||
# Set up a base Ecobee 3 with additional sensors.
|
||||
accessories = await setup_accessories_from_file(hass, "ecobee3.json")
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
climate = entity_registry.async_get("climate.homew")
|
||||
assert climate.unique_id == "00:00:00:00:00:00_1_16"
|
||||
|
||||
assert hass.states.get("sensor.basement_temperature") is not None
|
||||
assert hass.states.get("sensor.kitchen_temperature") is not None
|
||||
assert hass.states.get("sensor.porch_temperature") is not None
|
||||
|
||||
assert hass.states.get("select.homew_current_mode") is not None
|
||||
assert hass.states.get("button.homew_clear_hold") is not None
|
||||
|
||||
# Reconfigure with some of the chars removed and the basement temperature sensor
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "ecobee3_service_removed.json"
|
||||
)
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
# Make sure the climate entity is still there
|
||||
assert hass.states.get("climate.homew") is not None
|
||||
assert entity_registry.async_get("climate.homew") is not None
|
||||
|
||||
# Make sure the basement temperature sensor is gone
|
||||
assert hass.states.get("sensor.basement_temperature") is None
|
||||
assert entity_registry.async_get("select.basement_temperature") is None
|
||||
|
||||
# Make sure the current mode select and clear hold button are gone
|
||||
assert hass.states.get("select.homew_current_mode") is None
|
||||
assert entity_registry.async_get("select.homew_current_mode") is None
|
||||
|
||||
assert hass.states.get("button.homew_clear_hold") is None
|
||||
assert entity_registry.async_get("button.homew_clear_hold") is None
|
||||
@@ -0,0 +1,186 @@
|
||||
"""Test for a Home Assistant bridge that changes fan features at runtime."""
|
||||
|
||||
from homeassistant.components.fan import FanEntityFeature
|
||||
from homeassistant.const import ATTR_SUPPORTED_FEATURES
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from ..common import (
|
||||
device_config_changed,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_fan_add_feature_at_runtime(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test that new features can be added at runtime."""
|
||||
|
||||
# Set up a basic fan that does not support oscillation
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_basic_fan.json"
|
||||
)
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
fan = entity_registry.async_get("fan.living_room_fan")
|
||||
assert fan.unique_id == "00:00:00:00:00:00_1256851357_8"
|
||||
|
||||
fan_state = hass.states.get("fan.living_room_fan")
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.DIRECTION
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
|
||||
fan = entity_registry.async_get("fan.ceiling_fan")
|
||||
assert fan.unique_id == "00:00:00:00:00:00_766313939_8"
|
||||
|
||||
fan_state = hass.states.get("fan.ceiling_fan")
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
|
||||
# Now change the config to add oscillation
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_fan.json"
|
||||
)
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
fan_state = hass.states.get("fan.living_room_fan")
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.DIRECTION
|
||||
| FanEntityFeature.OSCILLATE
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
fan_state = hass.states.get("fan.ceiling_fan")
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
|
||||
|
||||
async def test_fan_remove_feature_at_runtime(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test that features can be removed at runtime."""
|
||||
|
||||
# Set up a basic fan that does not support oscillation
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_fan.json"
|
||||
)
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
fan = entity_registry.async_get("fan.living_room_fan")
|
||||
assert fan.unique_id == "00:00:00:00:00:00_1256851357_8"
|
||||
|
||||
fan_state = hass.states.get("fan.living_room_fan")
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.DIRECTION
|
||||
| FanEntityFeature.OSCILLATE
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
|
||||
fan = entity_registry.async_get("fan.ceiling_fan")
|
||||
assert fan.unique_id == "00:00:00:00:00:00_766313939_8"
|
||||
|
||||
fan_state = hass.states.get("fan.ceiling_fan")
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
|
||||
# Now change the config to add oscillation
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_basic_fan.json"
|
||||
)
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
fan_state = hass.states.get("fan.living_room_fan")
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.DIRECTION
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
fan_state = hass.states.get("fan.ceiling_fan")
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
|
||||
|
||||
async def test_bridge_with_two_fans_one_removed(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
) -> None:
|
||||
"""Test a bridge with two fans and one gets removed."""
|
||||
|
||||
# Set up a basic fan that does not support oscillation
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_fan.json"
|
||||
)
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
fan = entity_registry.async_get("fan.living_room_fan")
|
||||
assert fan.unique_id == "00:00:00:00:00:00_1256851357_8"
|
||||
|
||||
fan_state = hass.states.get("fan.living_room_fan")
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.DIRECTION
|
||||
| FanEntityFeature.OSCILLATE
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
|
||||
fan = entity_registry.async_get("fan.ceiling_fan")
|
||||
assert fan.unique_id == "00:00:00:00:00:00_766313939_8"
|
||||
|
||||
fan_state = hass.states.get("fan.ceiling_fan")
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
|
||||
# Now change the config to remove one of the fans
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_fan_one_removed.json"
|
||||
)
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
# Verify the first fan is still there
|
||||
fan_state = hass.states.get("fan.living_room_fan")
|
||||
assert entity_registry.async_get("fan.living_room_fan") is not None
|
||||
assert (
|
||||
fan_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is FanEntityFeature.SET_SPEED
|
||||
| FanEntityFeature.DIRECTION
|
||||
| FanEntityFeature.OSCILLATE
|
||||
| FanEntityFeature.TURN_OFF
|
||||
| FanEntityFeature.TURN_ON
|
||||
)
|
||||
# The second fan should have been removed
|
||||
assert not hass.states.get("fan.ceiling_fan")
|
||||
assert not entity_registry.async_get("fan.ceiling_fan")
|
||||
@@ -0,0 +1,52 @@
|
||||
"""Test for a Home Assistant bridge that changes climate features at runtime."""
|
||||
|
||||
from homeassistant.components.climate import ATTR_SWING_MODES, ClimateEntityFeature
|
||||
from homeassistant.const import ATTR_SUPPORTED_FEATURES
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from ..common import (
|
||||
device_config_changed,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_cover_add_feature_at_runtime(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test that new features can be added at runtime."""
|
||||
|
||||
# Set up a basic heater cooler that does not support swing mode
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_basic_heater_cooler.json"
|
||||
)
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
climate = entity_registry.async_get("climate.89_living_room")
|
||||
assert climate.unique_id == "00:00:00:00:00:00_1233851541_169"
|
||||
|
||||
climate_state = hass.states.get("climate.89_living_room")
|
||||
assert (
|
||||
climate_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
assert ATTR_SWING_MODES not in climate_state.attributes
|
||||
|
||||
climate = entity_registry.async_get("climate.89_living_room")
|
||||
assert climate.unique_id == "00:00:00:00:00:00_1233851541_169"
|
||||
|
||||
# Now change the config to add swing mode
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_heater_cooler.json"
|
||||
)
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
climate_state = hass.states.get("climate.89_living_room")
|
||||
assert (
|
||||
climate_state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
is ClimateEntityFeature.SWING_MODE
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
assert climate_state.attributes[ATTR_SWING_MODES] == ["off", "vertical"]
|
||||
@@ -0,0 +1,64 @@
|
||||
"""Tests for handling accessories on a Hue bridge via HomeKit."""
|
||||
|
||||
from homeassistant.components.sensor import SensorStateClass
|
||||
from homeassistant.const import PERCENTAGE, EntityCategory
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from ..common import (
|
||||
HUB_TEST_ACCESSORY_ID,
|
||||
DeviceTestInfo,
|
||||
DeviceTriggerInfo,
|
||||
EntityTestInfo,
|
||||
assert_devices_and_entities_created,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_hue_bridge_setup(hass: HomeAssistant) -> None:
|
||||
"""Test that a Hue hub can be correctly setup in HA via HomeKit."""
|
||||
accessories = await setup_accessories_from_file(hass, "hue_bridge.json")
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
await assert_devices_and_entities_created(
|
||||
hass,
|
||||
DeviceTestInfo(
|
||||
unique_id=HUB_TEST_ACCESSORY_ID,
|
||||
name="Philips hue - 482544",
|
||||
model="BSB002",
|
||||
manufacturer="Philips Lighting",
|
||||
sw_version="1.32.1932126170",
|
||||
hw_version="",
|
||||
serial_number="123456",
|
||||
devices=[
|
||||
DeviceTestInfo(
|
||||
name="Hue dimmer switch",
|
||||
model="RWL021",
|
||||
manufacturer="Philips",
|
||||
sw_version="45.1.17846",
|
||||
hw_version="",
|
||||
serial_number="6623462389072572",
|
||||
unique_id="00:00:00:00:00:00:aid:6623462389072572",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.hue_dimmer_switch_battery",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
friendly_name="Hue dimmer switch battery",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
unique_id="00:00:00:00:00:00_6623462389072572_644245094400",
|
||||
unit_of_measurement=PERCENTAGE,
|
||||
state="100",
|
||||
)
|
||||
],
|
||||
stateless_triggers=[
|
||||
DeviceTriggerInfo(type="button1", subtype="single_press"),
|
||||
DeviceTriggerInfo(type="button2", subtype="single_press"),
|
||||
DeviceTriggerInfo(type="button3", subtype="single_press"),
|
||||
DeviceTriggerInfo(type="button4", subtype="single_press"),
|
||||
],
|
||||
),
|
||||
],
|
||||
entities=[],
|
||||
),
|
||||
)
|
||||
@@ -0,0 +1,43 @@
|
||||
"""Test for a Home Assistant bridge that changes humidifier min/max at runtime."""
|
||||
|
||||
from homeassistant.components.humidifier import ATTR_MAX_HUMIDITY, ATTR_MIN_HUMIDITY
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from ..common import (
|
||||
device_config_changed,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_humidifier_change_range_at_runtime(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test that min max can be changed at runtime."""
|
||||
|
||||
# Set up a basic humidifier
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_humidifier.json"
|
||||
)
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
humidifier = entity_registry.async_get("humidifier.humidifier_182a")
|
||||
assert humidifier.unique_id == "00:00:00:00:00:00_293334836_8"
|
||||
|
||||
humidifier_state = hass.states.get("humidifier.humidifier_182a")
|
||||
assert humidifier_state.attributes[ATTR_MIN_HUMIDITY] == 0
|
||||
assert humidifier_state.attributes[ATTR_MAX_HUMIDITY] == 100
|
||||
|
||||
cover = entity_registry.async_get("humidifier.humidifier_182a")
|
||||
assert cover.unique_id == "00:00:00:00:00:00_293334836_8"
|
||||
|
||||
# Now change min/max values
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_humidifier_new_range.json"
|
||||
)
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
humidifier_state = hass.states.get("humidifier.humidifier_182a")
|
||||
assert humidifier_state.attributes[ATTR_MIN_HUMIDITY] == 20
|
||||
assert humidifier_state.attributes[ATTR_MAX_HUMIDITY] == 80
|
||||
@@ -0,0 +1,77 @@
|
||||
"""Make sure that existing Koogeek LS1 support isn't broken."""
|
||||
|
||||
from datetime import timedelta
|
||||
from unittest import mock
|
||||
|
||||
from aiohomekit.exceptions import AccessoryDisconnectedError, EncryptionError
|
||||
from aiohomekit.model import CharacteristicsTypes, ServicesTypes
|
||||
from aiohomekit.testing import FakeController, FakePairing
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.homekit_controller.connection import (
|
||||
MAX_POLL_FAILURES_TO_DECLARE_UNAVAILABLE,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from ..common import Helper, setup_accessories_from_file, setup_test_accessories
|
||||
|
||||
from tests.common import async_fire_time_changed
|
||||
|
||||
LIGHT_ON = ("lightbulb", "on")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("failure_cls", [AccessoryDisconnectedError, EncryptionError])
|
||||
async def test_recover_from_failure(hass: HomeAssistant, failure_cls) -> None:
|
||||
"""Test that entity actually recovers from a network connection drop.
|
||||
|
||||
See https://github.com/home-assistant/core/issues/18949
|
||||
"""
|
||||
accessories = await setup_accessories_from_file(hass, "koogeek_ls1.json")
|
||||
config_entry, pairing = await setup_test_accessories(hass, accessories)
|
||||
|
||||
helper = Helper(
|
||||
hass,
|
||||
"light.koogeek_ls1_20833f_light_strip",
|
||||
pairing,
|
||||
accessories[0],
|
||||
config_entry,
|
||||
)
|
||||
|
||||
# Set light state on fake device to off
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB, {CharacteristicsTypes.ON: False}
|
||||
)
|
||||
|
||||
# Test that entity starts off in a known state
|
||||
assert state.state == "off"
|
||||
|
||||
# Test that entity remains in the same state if there is a network error
|
||||
next_update = dt_util.utcnow() + timedelta(seconds=60)
|
||||
with (
|
||||
mock.patch.object(FakePairing, "get_characteristics") as get_char,
|
||||
mock.patch.object(
|
||||
FakeController,
|
||||
"async_reachable",
|
||||
return_value=False,
|
||||
),
|
||||
):
|
||||
get_char.side_effect = failure_cls("Disconnected")
|
||||
|
||||
# Test that a poll triggers unavailable
|
||||
for _ in range(MAX_POLL_FAILURES_TO_DECLARE_UNAVAILABLE + 2):
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "unavailable"
|
||||
|
||||
chars = get_char.call_args[0][0]
|
||||
assert set(chars) == {(1, 8), (1, 9), (1, 10), (1, 11)}
|
||||
|
||||
# Test that entity changes state when network error goes away
|
||||
next_update += timedelta(seconds=60)
|
||||
async_fire_time_changed(hass, next_update)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB, {CharacteristicsTypes.ON: True}
|
||||
)
|
||||
assert state.state == "on"
|
||||
@@ -0,0 +1,61 @@
|
||||
"""Make sure that existing Koogeek SW2 is enumerated correctly.
|
||||
|
||||
This Koogeek device has a custom power sensor that extra handling.
|
||||
|
||||
It should have 2 entities - the actual switch and a sensor for power usage.
|
||||
"""
|
||||
|
||||
from homeassistant.components.sensor import SensorStateClass
|
||||
from homeassistant.const import UnitOfPower
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from ..common import (
|
||||
HUB_TEST_ACCESSORY_ID,
|
||||
DeviceTestInfo,
|
||||
EntityTestInfo,
|
||||
assert_devices_and_entities_created,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_koogeek_sw2_setup(hass: HomeAssistant) -> None:
|
||||
"""Test that a Koogeek LS1 can be correctly setup in HA."""
|
||||
accessories = await setup_accessories_from_file(hass, "koogeek_sw2.json")
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
await assert_devices_and_entities_created(
|
||||
hass,
|
||||
DeviceTestInfo(
|
||||
unique_id=HUB_TEST_ACCESSORY_ID,
|
||||
name="Koogeek-SW2-187A91",
|
||||
model="KH02CN",
|
||||
manufacturer="Koogeek",
|
||||
sw_version="1.0.3",
|
||||
hw_version="",
|
||||
serial_number="CNNT061751001372",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="switch.koogeek_sw2_187a91_switch_1",
|
||||
friendly_name="Koogeek-SW2-187A91 Switch 1",
|
||||
unique_id="00:00:00:00:00:00_1_8",
|
||||
state="off",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="switch.koogeek_sw2_187a91_switch_2",
|
||||
friendly_name="Koogeek-SW2-187A91 Switch 2",
|
||||
unique_id="00:00:00:00:00:00_1_11",
|
||||
state="off",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.koogeek_sw2_187a91_power",
|
||||
friendly_name="Koogeek-SW2-187A91 Power",
|
||||
unique_id="00:00:00:00:00:00_1_14_18",
|
||||
unit_of_measurement=UnitOfPower.WATT,
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
state="0",
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
@@ -0,0 +1,44 @@
|
||||
"""Test for a Home Assistant bridge that changes light features at runtime."""
|
||||
|
||||
from homeassistant.components.light import ATTR_SUPPORTED_COLOR_MODES, ColorMode
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from ..common import (
|
||||
device_config_changed,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_light_add_feature_at_runtime(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test that new features can be added at runtime."""
|
||||
|
||||
# Set up a basic light that does not support color
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_basic_light.json"
|
||||
)
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
light = entity_registry.async_get("light.laundry_smoke_ed78")
|
||||
assert light.unique_id == "00:00:00:00:00:00_3982136094_608"
|
||||
|
||||
light_state = hass.states.get("light.laundry_smoke_ed78")
|
||||
assert light_state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [ColorMode.BRIGHTNESS]
|
||||
|
||||
light = entity_registry.async_get("light.laundry_smoke_ed78")
|
||||
assert light.unique_id == "00:00:00:00:00:00_3982136094_608"
|
||||
|
||||
# Now add hue and saturation
|
||||
accessories = await setup_accessories_from_file(
|
||||
hass, "home_assistant_bridge_light.json"
|
||||
)
|
||||
await device_config_changed(hass, accessories)
|
||||
|
||||
light_state = hass.states.get("light.laundry_smoke_ed78")
|
||||
assert light_state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [
|
||||
ColorMode.COLOR_TEMP,
|
||||
ColorMode.HS,
|
||||
]
|
||||
@@ -0,0 +1,49 @@
|
||||
"""Regression tests for Netamo Doorbell.
|
||||
|
||||
https://github.com/home-assistant/core/issues/44596
|
||||
"""
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from ..common import (
|
||||
HUB_TEST_ACCESSORY_ID,
|
||||
DeviceTestInfo,
|
||||
DeviceTriggerInfo,
|
||||
EntityTestInfo,
|
||||
assert_devices_and_entities_created,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_netamo_doorbell_setup(hass: HomeAssistant) -> None:
|
||||
"""Test that a Netamo Doorbell can be correctly setup in HA."""
|
||||
accessories = await setup_accessories_from_file(hass, "netamo_doorbell.json")
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
await assert_devices_and_entities_created(
|
||||
hass,
|
||||
DeviceTestInfo(
|
||||
unique_id=HUB_TEST_ACCESSORY_ID,
|
||||
name="Netatmo-Doorbell-g738658",
|
||||
model="Netatmo Doorbell",
|
||||
manufacturer="Netatmo",
|
||||
sw_version="80.0.0",
|
||||
hw_version="",
|
||||
serial_number="g738658",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="camera.netatmo_doorbell_g738658",
|
||||
friendly_name="Netatmo-Doorbell-g738658",
|
||||
unique_id="00:00:00:00:00:00_1",
|
||||
state="idle",
|
||||
),
|
||||
],
|
||||
stateless_triggers=[
|
||||
DeviceTriggerInfo(type="doorbell", subtype="single_press"),
|
||||
DeviceTriggerInfo(type="doorbell", subtype="double_press"),
|
||||
DeviceTriggerInfo(type="doorbell", subtype="long_press"),
|
||||
],
|
||||
),
|
||||
)
|
||||
@@ -0,0 +1,77 @@
|
||||
"""Make sure that existing VOCOlinc VP3 support isn't broken."""
|
||||
|
||||
from homeassistant.components.sensor import SensorStateClass
|
||||
from homeassistant.const import UnitOfPower
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from ..common import (
|
||||
HUB_TEST_ACCESSORY_ID,
|
||||
DeviceTestInfo,
|
||||
EntityTestInfo,
|
||||
assert_devices_and_entities_created,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
)
|
||||
|
||||
|
||||
async def test_vocolinc_vp3_setup(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
) -> None:
|
||||
"""Test that a VOCOlinc VP3 can be correctly setup in HA."""
|
||||
|
||||
outlet = entity_registry.async_get_or_create(
|
||||
"switch",
|
||||
"homekit_controller",
|
||||
"homekit-EU0121203xxxxx07-48",
|
||||
suggested_object_id="original_vocolinc_vp3_outlet",
|
||||
)
|
||||
sensor = entity_registry.async_get_or_create(
|
||||
"sensor",
|
||||
"homekit_controller",
|
||||
"homekit-EU0121203xxxxx07-aid:1-sid:48-cid:97",
|
||||
suggested_object_id="original_vocolinc_vp3_power",
|
||||
)
|
||||
|
||||
accessories = await setup_accessories_from_file(hass, "vocolinc_vp3.json")
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
await assert_devices_and_entities_created(
|
||||
hass,
|
||||
DeviceTestInfo(
|
||||
unique_id=HUB_TEST_ACCESSORY_ID,
|
||||
name="VOCOlinc-VP3-123456",
|
||||
model="VP3",
|
||||
manufacturer="VOCOlinc",
|
||||
sw_version="1.101.2",
|
||||
hw_version="1.0.3",
|
||||
serial_number="EU0121203xxxxx07",
|
||||
devices=[],
|
||||
entities=[
|
||||
EntityTestInfo(
|
||||
entity_id="switch.original_vocolinc_vp3_outlet",
|
||||
friendly_name="VOCOlinc-VP3-123456 Outlet",
|
||||
unique_id="00:00:00:00:00:00_1_48",
|
||||
state="on",
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.original_vocolinc_vp3_power",
|
||||
friendly_name="VOCOlinc-VP3-123456 Power",
|
||||
unique_id="00:00:00:00:00:00_1_48_97",
|
||||
unit_of_measurement=UnitOfPower.WATT,
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
state="0",
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(outlet.entity_id).unique_id
|
||||
== "00:00:00:00:00:00_1_48"
|
||||
)
|
||||
assert (
|
||||
entity_registry.async_get(sensor.entity_id).unique_id
|
||||
== "00:00:00:00:00:00_1_48_97"
|
||||
)
|
||||
@@ -0,0 +1,158 @@
|
||||
"""Basic checks for HomeKitalarm_control_panel."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
|
||||
from homeassistant.components.alarm_control_panel import ATTR_CODE_ARM_REQUIRED
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_security_system_service(accessory: Accessory) -> None:
|
||||
"""Define a security-system characteristics as per page 219 of HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.SECURITY_SYSTEM)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.SECURITY_SYSTEM_STATE_CURRENT)
|
||||
cur_state.value = 0
|
||||
|
||||
targ_state = service.add_char(CharacteristicsTypes.SECURITY_SYSTEM_STATE_TARGET)
|
||||
targ_state.value = 0
|
||||
|
||||
# According to the spec, a battery-level characteristic is normally
|
||||
# part of a separate service. However as the code was written (which
|
||||
# predates this test) the battery level would have to be part of the lock
|
||||
# service as it is here.
|
||||
targ_state = service.add_char(CharacteristicsTypes.BATTERY_LEVEL)
|
||||
targ_state.value = 50
|
||||
|
||||
|
||||
async def test_switch_change_alarm_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a HomeKit alarm on and off again."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_security_system_service
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"alarm_control_panel",
|
||||
"alarm_arm_home",
|
||||
{"entity_id": "alarm_control_panel.testdevice", "code": "1234"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.SECURITY_SYSTEM,
|
||||
{
|
||||
CharacteristicsTypes.SECURITY_SYSTEM_STATE_TARGET: 0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"alarm_control_panel",
|
||||
"alarm_arm_away",
|
||||
{"entity_id": "alarm_control_panel.testdevice", "code": "1234"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.SECURITY_SYSTEM,
|
||||
{
|
||||
CharacteristicsTypes.SECURITY_SYSTEM_STATE_TARGET: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"alarm_control_panel",
|
||||
"alarm_arm_night",
|
||||
{"entity_id": "alarm_control_panel.testdevice", "code": "1234"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.SECURITY_SYSTEM,
|
||||
{
|
||||
CharacteristicsTypes.SECURITY_SYSTEM_STATE_TARGET: 2,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"alarm_control_panel",
|
||||
"alarm_disarm",
|
||||
{"entity_id": "alarm_control_panel.testdevice", "code": "1234"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.SECURITY_SYSTEM,
|
||||
{
|
||||
CharacteristicsTypes.SECURITY_SYSTEM_STATE_TARGET: 3,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_switch_read_alarm_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit alarm accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_security_system_service
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.SECURITY_SYSTEM,
|
||||
{CharacteristicsTypes.SECURITY_SYSTEM_STATE_CURRENT: 0},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "armed_home"
|
||||
assert state.attributes["battery_level"] == 50
|
||||
assert state.attributes[ATTR_CODE_ARM_REQUIRED] is False
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.SECURITY_SYSTEM,
|
||||
{CharacteristicsTypes.SECURITY_SYSTEM_STATE_CURRENT: 1},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "armed_away"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.SECURITY_SYSTEM,
|
||||
{CharacteristicsTypes.SECURITY_SYSTEM_STATE_CURRENT: 2},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "armed_night"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.SECURITY_SYSTEM,
|
||||
{CharacteristicsTypes.SECURITY_SYSTEM_STATE_CURRENT: 3},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "disarmed"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.SECURITY_SYSTEM,
|
||||
{CharacteristicsTypes.SECURITY_SYSTEM_STATE_CURRENT: 4},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "triggered"
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we can migrate a alarm_control_panel unique id."""
|
||||
aid = get_next_aid()
|
||||
alarm_control_panel_entry = entity_registry.async_get_or_create(
|
||||
"alarm_control_panel",
|
||||
"homekit_controller",
|
||||
f"homekit-00:00:00:00:00:00-{aid}-8",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_security_system_service)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(alarm_control_panel_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8"
|
||||
)
|
||||
@@ -0,0 +1,221 @@
|
||||
"""Basic checks for HomeKit motion sensors and contact sensors."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
|
||||
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_motion_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define motion characteristics as per page 225 of HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.MOTION_SENSOR)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.MOTION_DETECTED)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
async def test_motion_sensor_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit motion sensor accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_motion_sensor_service
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.MOTION_SENSOR, {CharacteristicsTypes.MOTION_DETECTED: False}
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.MOTION_SENSOR, {CharacteristicsTypes.MOTION_DETECTED: True}
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "on"
|
||||
|
||||
assert state.attributes["device_class"] == BinarySensorDeviceClass.MOTION
|
||||
|
||||
|
||||
def create_contact_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define contact characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.CONTACT_SENSOR)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.CONTACT_STATE)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
async def test_contact_sensor_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit contact accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_contact_sensor_service
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.CONTACT_SENSOR, {CharacteristicsTypes.CONTACT_STATE: 0}
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.CONTACT_SENSOR, {CharacteristicsTypes.CONTACT_STATE: 1}
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "on"
|
||||
|
||||
assert state.attributes["device_class"] == BinarySensorDeviceClass.OPENING
|
||||
|
||||
|
||||
def create_smoke_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define smoke sensor characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.SMOKE_SENSOR)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.SMOKE_DETECTED)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
async def test_smoke_sensor_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit contact accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_smoke_sensor_service
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.SMOKE_SENSOR, {CharacteristicsTypes.SMOKE_DETECTED: 0}
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.SMOKE_SENSOR, {CharacteristicsTypes.SMOKE_DETECTED: 1}
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "on"
|
||||
|
||||
assert state.attributes["device_class"] == BinarySensorDeviceClass.SMOKE
|
||||
|
||||
|
||||
def create_carbon_monoxide_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define carbon monoxide sensor characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.CARBON_MONOXIDE_SENSOR)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.CARBON_MONOXIDE_DETECTED)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
async def test_carbon_monoxide_sensor_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit contact accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_carbon_monoxide_sensor_service
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.CARBON_MONOXIDE_SENSOR,
|
||||
{CharacteristicsTypes.CARBON_MONOXIDE_DETECTED: 0},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.CARBON_MONOXIDE_SENSOR,
|
||||
{CharacteristicsTypes.CARBON_MONOXIDE_DETECTED: 1},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "on"
|
||||
|
||||
assert state.attributes["device_class"] == BinarySensorDeviceClass.CO
|
||||
|
||||
|
||||
def create_occupancy_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define occupancy characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.OCCUPANCY_SENSOR)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.OCCUPANCY_DETECTED)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
async def test_occupancy_sensor_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit occupancy sensor accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_occupancy_sensor_service
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.OCCUPANCY_SENSOR, {CharacteristicsTypes.OCCUPANCY_DETECTED: False}
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.OCCUPANCY_SENSOR, {CharacteristicsTypes.OCCUPANCY_DETECTED: True}
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "on"
|
||||
|
||||
assert state.attributes["device_class"] == BinarySensorDeviceClass.OCCUPANCY
|
||||
|
||||
|
||||
def create_leak_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define leak characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.LEAK_SENSOR)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.LEAK_DETECTED)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
async def test_leak_sensor_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit leak sensor accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_leak_sensor_service
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.LEAK_SENSOR, {CharacteristicsTypes.LEAK_DETECTED: 0}
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.LEAK_SENSOR, {CharacteristicsTypes.LEAK_DETECTED: 1}
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "on"
|
||||
|
||||
assert state.attributes["device_class"] == BinarySensorDeviceClass.MOISTURE
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we can migrate a binary_sensor unique id."""
|
||||
aid = get_next_aid()
|
||||
binary_sensor_entry = entity_registry.async_get_or_create(
|
||||
"binary_sensor",
|
||||
"homekit_controller",
|
||||
f"homekit-00:00:00:00:00:00-{aid}-8",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_leak_sensor_service)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(binary_sensor_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8"
|
||||
)
|
||||
@@ -0,0 +1,123 @@
|
||||
"""Basic checks for HomeKit button."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import Helper, setup_test_component
|
||||
|
||||
|
||||
def create_switch_with_setup_button(accessory: Accessory) -> Service:
|
||||
"""Define setup button characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.OUTLET)
|
||||
|
||||
setup = service.add_char(CharacteristicsTypes.VENDOR_HAA_SETUP)
|
||||
|
||||
setup.value = ""
|
||||
setup.format = "string"
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.ON)
|
||||
cur_state.value = True
|
||||
|
||||
return service
|
||||
|
||||
|
||||
def create_switch_with_ecobee_clear_hold_button(accessory: Accessory) -> Service:
|
||||
"""Define setup button characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.OUTLET)
|
||||
|
||||
setup = service.add_char(CharacteristicsTypes.VENDOR_ECOBEE_CLEAR_HOLD)
|
||||
|
||||
setup.value = ""
|
||||
setup.format = "string"
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.ON)
|
||||
cur_state.value = True
|
||||
|
||||
return service
|
||||
|
||||
|
||||
async def test_press_button(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test a switch service that has a button characteristic is correctly handled."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_switch_with_setup_button
|
||||
)
|
||||
|
||||
# Helper will be for the primary entity, which is the outlet. Make a helper for the button.
|
||||
button = Helper(
|
||||
hass,
|
||||
"button.testdevice_setup",
|
||||
helper.pairing,
|
||||
helper.accessory,
|
||||
helper.config_entry,
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"button",
|
||||
"press",
|
||||
{"entity_id": "button.testdevice_setup"},
|
||||
blocking=True,
|
||||
)
|
||||
button.async_assert_service_values(
|
||||
ServicesTypes.OUTLET,
|
||||
{
|
||||
CharacteristicsTypes.VENDOR_HAA_SETUP: "#HAA@trcmd", # codespell:ignore haa
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_ecobee_clear_hold_press_button(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test ecobee clear hold button characteristic is correctly handled."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_switch_with_ecobee_clear_hold_button
|
||||
)
|
||||
|
||||
# Helper will be for the primary entity, which is the outlet. Make a helper for the button.
|
||||
clear_hold = Helper(
|
||||
hass,
|
||||
"button.testdevice_clear_hold",
|
||||
helper.pairing,
|
||||
helper.accessory,
|
||||
helper.config_entry,
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"button",
|
||||
"press",
|
||||
{"entity_id": "button.testdevice_clear_hold"},
|
||||
blocking=True,
|
||||
)
|
||||
clear_hold.async_assert_service_values(
|
||||
ServicesTypes.OUTLET,
|
||||
{
|
||||
CharacteristicsTypes.VENDOR_ECOBEE_CLEAR_HOLD: True,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we can migrate a button unique id."""
|
||||
aid = get_next_aid()
|
||||
button_entry = entity_registry.async_get_or_create(
|
||||
"button",
|
||||
"homekit_controller",
|
||||
f"homekit-0001-aid:{aid}-sid:1-cid:2",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_switch_with_ecobee_clear_hold_button)
|
||||
assert (
|
||||
entity_registry.async_get(button_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_1_2"
|
||||
)
|
||||
@@ -0,0 +1,53 @@
|
||||
"""Basic checks for HomeKit cameras."""
|
||||
|
||||
import base64
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
from aiohomekit.testing import FAKE_CAMERA_IMAGE
|
||||
|
||||
from homeassistant.components import camera
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_camera(accessory: Accessory) -> None:
|
||||
"""Define camera characteristics."""
|
||||
accessory.add_service(ServicesTypes.CAMERA_RTP_STREAM_MANAGEMENT)
|
||||
|
||||
|
||||
async def test_migrate_unique_ids(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test migrating entity unique ids."""
|
||||
aid = get_next_aid()
|
||||
camera = entity_registry.async_get_or_create(
|
||||
"camera",
|
||||
"homekit_controller",
|
||||
f"homekit-0001-aid:{aid}",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_camera)
|
||||
assert (
|
||||
entity_registry.async_get(camera.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}"
|
||||
)
|
||||
|
||||
|
||||
async def test_read_state(hass: HomeAssistant, get_next_aid: Callable[[], int]) -> None:
|
||||
"""Test reading the state of a HomeKit camera."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_camera)
|
||||
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "idle"
|
||||
|
||||
|
||||
async def test_get_image(hass: HomeAssistant, get_next_aid: Callable[[], int]) -> None:
|
||||
"""Test getting a JPEG from a camera."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_camera)
|
||||
image = await camera.async_get_image(hass, helper.entity_id)
|
||||
assert image.content == base64.b64decode(FAKE_CAMERA_IMAGE)
|
||||
1205
home-assistant/tests/components/homekit_controller/test_climate.py
Normal file
1205
home-assistant/tests/components/homekit_controller/test_climate.py
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,441 @@
|
||||
"""Tests for HKDevice."""
|
||||
|
||||
from collections.abc import Callable
|
||||
import dataclasses
|
||||
from unittest import mock
|
||||
|
||||
from aiohomekit.controller import TransportType
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
from aiohomekit.testing import FakeController
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.homekit_controller.const import (
|
||||
DEBOUNCE_COOLDOWN,
|
||||
DOMAIN,
|
||||
IDENTIFIER_ACCESSORY_ID,
|
||||
IDENTIFIER_LEGACY_ACCESSORY_ID,
|
||||
IDENTIFIER_LEGACY_SERIAL_NUMBER,
|
||||
)
|
||||
from homeassistant.components.thread import async_add_dataset, dataset_store
|
||||
from homeassistant.const import STATE_OFF, STATE_UNAVAILABLE
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
from homeassistant.helpers import device_registry as dr, entity_registry as er
|
||||
from homeassistant.helpers.entity_component import async_update_entity
|
||||
|
||||
from .common import (
|
||||
setup_accessories_from_file,
|
||||
setup_platform,
|
||||
setup_test_accessories,
|
||||
setup_test_component,
|
||||
time_changed,
|
||||
)
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class DeviceMigrationTest:
|
||||
"""Holds the expected state before and after testing a device identifier migration."""
|
||||
|
||||
fixture: str
|
||||
manufacturer: str
|
||||
before: set[tuple[str, str, str]]
|
||||
after: set[tuple[str, str]]
|
||||
|
||||
|
||||
DEVICE_MIGRATION_TESTS = [
|
||||
# 0401.3521.0679 was incorrectly treated as a serial number, it should be stripped out during migration
|
||||
DeviceMigrationTest(
|
||||
fixture="ryse_smart_bridge_four_shades.json",
|
||||
manufacturer="RYSE Inc.",
|
||||
before={
|
||||
(DOMAIN, IDENTIFIER_LEGACY_ACCESSORY_ID, "00:00:00:00:00:00"),
|
||||
},
|
||||
after={(IDENTIFIER_ACCESSORY_ID, "00:00:00:00:00:00:aid:1")},
|
||||
),
|
||||
# This shade has a serial of 1.0.0, which we should already ignore. Make sure it gets migrated to a 2-tuple
|
||||
DeviceMigrationTest(
|
||||
fixture="ryse_smart_bridge_four_shades.json",
|
||||
manufacturer="RYSE Inc.",
|
||||
before={
|
||||
(DOMAIN, IDENTIFIER_LEGACY_ACCESSORY_ID, "00:00:00:00:00:00_3"),
|
||||
},
|
||||
after={(IDENTIFIER_ACCESSORY_ID, "00:00:00:00:00:00:aid:3")},
|
||||
),
|
||||
# Test migrating a Hue bridge - it has a valid serial number and has an accessory id
|
||||
DeviceMigrationTest(
|
||||
fixture="hue_bridge.json",
|
||||
manufacturer="Philips Lighting",
|
||||
before={
|
||||
(DOMAIN, IDENTIFIER_LEGACY_ACCESSORY_ID, "00:00:00:00:00:00"),
|
||||
},
|
||||
after={
|
||||
(IDENTIFIER_ACCESSORY_ID, "00:00:00:00:00:00:aid:1"),
|
||||
},
|
||||
),
|
||||
# Test migrating a Hue remote - it has a valid serial number
|
||||
# Originally as a non-hub non-broken device it wouldn't have had an accessory id
|
||||
DeviceMigrationTest(
|
||||
fixture="hue_bridge.json",
|
||||
manufacturer="Philips",
|
||||
before={
|
||||
(DOMAIN, IDENTIFIER_LEGACY_SERIAL_NUMBER, "6623462389072572"),
|
||||
},
|
||||
after={
|
||||
(IDENTIFIER_ACCESSORY_ID, "00:00:00:00:00:00:aid:6623462389072572"),
|
||||
},
|
||||
),
|
||||
# Test migrating a Koogeek LS1. This is just for completeness (testing hub and hub-less devices)
|
||||
DeviceMigrationTest(
|
||||
fixture="koogeek_ls1.json",
|
||||
manufacturer="Koogeek",
|
||||
before={
|
||||
(DOMAIN, IDENTIFIER_LEGACY_ACCESSORY_ID, "00:00:00:00:00:00"),
|
||||
(DOMAIN, IDENTIFIER_LEGACY_SERIAL_NUMBER, "AAAA011111111111"),
|
||||
},
|
||||
after={
|
||||
(IDENTIFIER_ACCESSORY_ID, "00:00:00:00:00:00:aid:1"),
|
||||
},
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("variant", DEVICE_MIGRATION_TESTS)
|
||||
async def test_migrate_device_id_no_serial_skip_if_other_owner(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
variant: DeviceMigrationTest,
|
||||
) -> None:
|
||||
"""Don't migrate unrelated devices.
|
||||
|
||||
Create a device registry entry that needs migrate, but belongs to a different
|
||||
config entry. It should be ignored.
|
||||
"""
|
||||
entry = MockConfigEntry()
|
||||
entry.add_to_hass(hass)
|
||||
|
||||
bridge = device_registry.async_get_or_create(
|
||||
config_entry_id=entry.entry_id,
|
||||
identifiers=variant.before,
|
||||
manufacturer="RYSE Inc.",
|
||||
model="RYSE SmartBridge",
|
||||
name="Wiring Closet",
|
||||
sw_version="1.3.0",
|
||||
hw_version="0101.2136.0344",
|
||||
)
|
||||
|
||||
accessories = await setup_accessories_from_file(hass, variant.fixture)
|
||||
await setup_test_accessories(hass, accessories)
|
||||
|
||||
bridge = device_registry.async_get(bridge.id)
|
||||
|
||||
assert bridge.identifiers == variant.before
|
||||
assert bridge.config_entries == {entry.entry_id}
|
||||
|
||||
|
||||
@pytest.mark.parametrize("variant", DEVICE_MIGRATION_TESTS)
|
||||
async def test_migrate_device_id_no_serial(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
variant: DeviceMigrationTest,
|
||||
) -> None:
|
||||
"""Test that a Ryse smart bridge with four shades can be migrated correctly in HA."""
|
||||
accessories = await setup_accessories_from_file(hass, variant.fixture)
|
||||
|
||||
fake_controller = await setup_platform(hass)
|
||||
await fake_controller.add_paired_device(accessories, "00:00:00:00:00:00")
|
||||
config_entry = MockConfigEntry(
|
||||
version=1,
|
||||
domain="homekit_controller",
|
||||
entry_id="TestData",
|
||||
data={"AccessoryPairingID": "00:00:00:00:00:00"},
|
||||
title="test",
|
||||
)
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
device = device_registry.async_get_or_create(
|
||||
config_entry_id=config_entry.entry_id,
|
||||
identifiers=variant.before,
|
||||
manufacturer="Dummy Manufacturer",
|
||||
model="Dummy Model",
|
||||
name="Dummy Name",
|
||||
sw_version="99999999991",
|
||||
hw_version="99999999999",
|
||||
)
|
||||
|
||||
await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
device = device_registry.async_get(device.id)
|
||||
|
||||
assert device.identifiers == variant.after
|
||||
assert device.manufacturer == variant.manufacturer
|
||||
|
||||
|
||||
async def test_migrate_ble_unique_id(hass: HomeAssistant) -> None:
|
||||
"""Test that a config entry with incorrect unique_id is repaired."""
|
||||
accessories = await setup_accessories_from_file(hass, "anker_eufycam.json")
|
||||
|
||||
fake_controller = await setup_platform(hass)
|
||||
await fake_controller.add_paired_device(accessories, "02:03:EF:02:03:EF")
|
||||
config_entry = MockConfigEntry(
|
||||
version=1,
|
||||
domain="homekit_controller",
|
||||
entry_id="TestData",
|
||||
data={"AccessoryPairingID": "02:03:EF:02:03:EF"},
|
||||
title="test",
|
||||
unique_id="01:02:AB:01:02:AB",
|
||||
)
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
assert config_entry.unique_id == "01:02:AB:01:02:AB"
|
||||
|
||||
await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert config_entry.unique_id == "02:03:ef:02:03:ef"
|
||||
|
||||
|
||||
async def test_thread_provision_no_creds(hass: HomeAssistant) -> None:
|
||||
"""Test that we don't migrate to thread when there are no creds available."""
|
||||
accessories = await setup_accessories_from_file(hass, "nanoleaf_strip_nl55.json")
|
||||
|
||||
fake_controller = await setup_platform(hass)
|
||||
await fake_controller.add_paired_device(accessories, "02:03:EF:02:03:EF")
|
||||
config_entry = MockConfigEntry(
|
||||
version=1,
|
||||
domain="homekit_controller",
|
||||
entry_id="TestData",
|
||||
data={"AccessoryPairingID": "02:03:EF:02:03:EF"},
|
||||
title="test",
|
||||
unique_id="02:03:ef:02:03:ef",
|
||||
)
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
fake_controller.transport_type = TransportType.BLE
|
||||
|
||||
await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
with pytest.raises(HomeAssistantError):
|
||||
await hass.services.async_call(
|
||||
"button",
|
||||
"press",
|
||||
{
|
||||
"entity_id": "button.nanoleaf_strip_3b32_provision_preferred_thread_credentials"
|
||||
},
|
||||
blocking=True,
|
||||
)
|
||||
|
||||
|
||||
async def test_thread_provision(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test that a when a thread provision works the config entry is updated."""
|
||||
await async_add_dataset(
|
||||
hass,
|
||||
"Tests",
|
||||
"0E080000000000010000000300000F35060004001FFFE0020811111111222222220708FDAD70BF"
|
||||
"E5AA15DD051000112233445566778899AABBCCDDEEFF030E4F70656E54687265616444656D6F01"
|
||||
"0212340410445F2B5CA6F2A93A55CE570A70EFEECB0C0402A0F7F8",
|
||||
)
|
||||
store = await dataset_store.async_get_store(hass)
|
||||
dataset_id = list(store.datasets.values())[0].id
|
||||
store.preferred_dataset = dataset_id
|
||||
|
||||
accessories = await setup_accessories_from_file(hass, "nanoleaf_strip_nl55.json")
|
||||
|
||||
fake_controller = await setup_platform(hass)
|
||||
await fake_controller.add_paired_device(accessories, "00:00:00:00:00:00")
|
||||
config_entry = MockConfigEntry(
|
||||
version=1,
|
||||
domain="homekit_controller",
|
||||
entry_id="TestData",
|
||||
data={"AccessoryPairingID": "00:00:00:00:00:00"},
|
||||
title="test",
|
||||
unique_id="00:00:00:00:00:00",
|
||||
)
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
fake_controller.transport_type = TransportType.BLE
|
||||
|
||||
# Needs a COAP transport to do migration
|
||||
fake_controller.transports = {TransportType.COAP: fake_controller}
|
||||
|
||||
# Fake discovery won't have an address/port - set one so the migration works
|
||||
discovery = fake_controller.discoveries["00:00:00:00:00:00"]
|
||||
discovery.description.address = "127.0.0.1"
|
||||
discovery.description.port = 53
|
||||
|
||||
await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert hass.states.get(
|
||||
"button.nanoleaf_strip_3b32_provision_preferred_thread_credentials"
|
||||
)
|
||||
assert entity_registry.async_get(
|
||||
"button.nanoleaf_strip_3b32_provision_preferred_thread_credentials"
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"button",
|
||||
"press",
|
||||
{
|
||||
"entity_id": "button.nanoleaf_strip_3b32_provision_preferred_thread_credentials"
|
||||
},
|
||||
blocking=True,
|
||||
)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
|
||||
assert config_entry.data["Connection"] == "CoAP"
|
||||
|
||||
assert not hass.states.get(
|
||||
"button.nanoleaf_strip_3b32_provision_preferred_thread_credentials"
|
||||
)
|
||||
assert not entity_registry.async_get(
|
||||
"button.nanoleaf_strip_3b32_provision_preferred_thread_credentials"
|
||||
)
|
||||
|
||||
|
||||
async def test_thread_provision_migration_failed(hass: HomeAssistant) -> None:
|
||||
"""Test that when a device 'migrates' but doesn't show up in CoAP, we remain in BLE mode."""
|
||||
await async_add_dataset(
|
||||
hass,
|
||||
"Tests",
|
||||
"0E080000000000010000000300000F35060004001FFFE0020811111111222222220708FDAD70BF"
|
||||
"E5AA15DD051000112233445566778899AABBCCDDEEFF030E4F70656E54687265616444656D6F01"
|
||||
"0212340410445F2B5CA6F2A93A55CE570A70EFEECB0C0402A0F7F8",
|
||||
)
|
||||
|
||||
accessories = await setup_accessories_from_file(hass, "nanoleaf_strip_nl55.json")
|
||||
|
||||
fake_controller = await setup_platform(hass)
|
||||
await fake_controller.add_paired_device(accessories, "00:00:00:00:00:00")
|
||||
config_entry = MockConfigEntry(
|
||||
version=1,
|
||||
domain="homekit_controller",
|
||||
entry_id="TestData",
|
||||
data={"AccessoryPairingID": "00:00:00:00:00:00", "Connection": "BLE"},
|
||||
title="test",
|
||||
unique_id="00:00:00:00:00:00",
|
||||
)
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
fake_controller.transport_type = TransportType.BLE
|
||||
|
||||
# Needs a COAP transport to do migration
|
||||
fake_controller.transports = {TransportType.COAP: fake_controller}
|
||||
|
||||
await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
# Make sure not disoverable via CoAP
|
||||
del fake_controller.discoveries["00:00:00:00:00:00"]
|
||||
|
||||
with pytest.raises(HomeAssistantError):
|
||||
await hass.services.async_call(
|
||||
"button",
|
||||
"press",
|
||||
{
|
||||
"entity_id": "button.nanoleaf_strip_3b32_provision_preferred_thread_credentials"
|
||||
},
|
||||
blocking=True,
|
||||
)
|
||||
|
||||
assert config_entry.data["Connection"] == "BLE"
|
||||
|
||||
|
||||
async def test_poll_firmware_version_only_all_watchable_accessory_mode(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we only poll firmware if available and all chars are watchable accessory mode."""
|
||||
|
||||
def _create_accessory(accessory: Accessory) -> Service:
|
||||
service = accessory.add_service(ServicesTypes.LIGHTBULB, name="TestDevice")
|
||||
|
||||
on_char = service.add_char(CharacteristicsTypes.ON)
|
||||
on_char.value = 0
|
||||
|
||||
brightness = service.add_char(CharacteristicsTypes.BRIGHTNESS)
|
||||
brightness.value = 0
|
||||
|
||||
return service
|
||||
|
||||
helper = await setup_test_component(hass, get_next_aid(), _create_accessory)
|
||||
|
||||
with mock.patch.object(
|
||||
helper.pairing,
|
||||
"get_characteristics",
|
||||
wraps=helper.pairing.get_characteristics,
|
||||
) as mock_get_characteristics:
|
||||
# Initial state is that the light is off
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == STATE_OFF
|
||||
assert mock_get_characteristics.call_count == 2
|
||||
# Verify only firmware version is polled
|
||||
assert mock_get_characteristics.call_args_list[0][0][0] == {(1, 7)}
|
||||
assert mock_get_characteristics.call_args_list[1][0][0] == {(1, 7)}
|
||||
|
||||
# Test device goes offline
|
||||
helper.pairing.available = False
|
||||
with mock.patch.object(
|
||||
FakeController,
|
||||
"async_reachable",
|
||||
return_value=False,
|
||||
):
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == STATE_UNAVAILABLE
|
||||
# Tries twice before declaring unavailable
|
||||
assert mock_get_characteristics.call_count == 4
|
||||
|
||||
# Test device comes back online
|
||||
helper.pairing.available = True
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == STATE_OFF
|
||||
assert mock_get_characteristics.call_count == 6
|
||||
|
||||
# Next poll should not happen because its a single
|
||||
# accessory, available, and all chars are watchable
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == STATE_OFF
|
||||
assert mock_get_characteristics.call_count == 8
|
||||
|
||||
|
||||
async def test_manual_poll_all_chars(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that a manual poll will check all chars."""
|
||||
|
||||
def _create_accessory(accessory: Accessory) -> Service:
|
||||
service = accessory.add_service(ServicesTypes.LIGHTBULB, name="TestDevice")
|
||||
|
||||
on_char = service.add_char(CharacteristicsTypes.ON)
|
||||
on_char.value = 0
|
||||
|
||||
brightness = service.add_char(CharacteristicsTypes.BRIGHTNESS)
|
||||
brightness.value = 0
|
||||
|
||||
return service
|
||||
|
||||
helper = await setup_test_component(hass, get_next_aid(), _create_accessory)
|
||||
|
||||
with mock.patch.object(
|
||||
helper.pairing,
|
||||
"get_characteristics",
|
||||
wraps=helper.pairing.get_characteristics,
|
||||
) as mock_get_characteristics:
|
||||
# Initial state is that the light is off
|
||||
await helper.poll_and_get_state()
|
||||
# Verify only firmware version is polled
|
||||
assert mock_get_characteristics.call_args_list[0][0][0] == {(1, 7)}
|
||||
|
||||
# Now do a manual poll to ensure all chars are polled
|
||||
mock_get_characteristics.reset_mock()
|
||||
await async_update_entity(hass, helper.entity_id)
|
||||
await time_changed(hass, 60)
|
||||
await time_changed(hass, DEBOUNCE_COOLDOWN)
|
||||
await hass.async_block_till_done()
|
||||
assert len(mock_get_characteristics.call_args_list[0][0][0]) > 1
|
||||
624
home-assistant/tests/components/homekit_controller/test_cover.py
Normal file
624
home-assistant/tests/components/homekit_controller/test_cover.py
Normal file
@@ -0,0 +1,624 @@
|
||||
"""Basic checks for HomeKitalarm_control_panel."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
|
||||
from homeassistant.const import STATE_UNAVAILABLE
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_window_covering_service(accessory: Accessory) -> Service:
|
||||
"""Define a window-covering characteristics as per page 219 of HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.WINDOW_COVERING)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.POSITION_CURRENT)
|
||||
cur_state.value = 0
|
||||
|
||||
targ_state = service.add_char(CharacteristicsTypes.POSITION_TARGET)
|
||||
targ_state.value = 0
|
||||
|
||||
position_state = service.add_char(CharacteristicsTypes.POSITION_STATE)
|
||||
position_state.value = 0
|
||||
|
||||
position_hold = service.add_char(CharacteristicsTypes.POSITION_HOLD)
|
||||
position_hold.value = 0
|
||||
|
||||
obstruction = service.add_char(CharacteristicsTypes.OBSTRUCTION_DETECTED)
|
||||
obstruction.value = False
|
||||
|
||||
name = service.add_char(CharacteristicsTypes.NAME)
|
||||
name.value = "testdevice"
|
||||
|
||||
return service
|
||||
|
||||
|
||||
def create_window_covering_service_with_h_tilt(accessory: Accessory) -> None:
|
||||
"""Define a window-covering characteristics as per page 219 of HAP spec."""
|
||||
service = create_window_covering_service(accessory)
|
||||
|
||||
tilt_current = service.add_char(CharacteristicsTypes.HORIZONTAL_TILT_CURRENT)
|
||||
tilt_current.value = 0
|
||||
tilt_current.minValue = 0
|
||||
tilt_current.maxValue = 90
|
||||
|
||||
tilt_target = service.add_char(CharacteristicsTypes.HORIZONTAL_TILT_TARGET)
|
||||
tilt_target.value = 0
|
||||
tilt_target.minValue = 0
|
||||
tilt_target.maxValue = 90
|
||||
|
||||
|
||||
def create_window_covering_service_with_h_tilt_2(accessory: Accessory) -> None:
|
||||
"""Define a window-covering characteristics as per page 219 of HAP spec."""
|
||||
service = create_window_covering_service(accessory)
|
||||
|
||||
tilt_current = service.add_char(CharacteristicsTypes.HORIZONTAL_TILT_CURRENT)
|
||||
tilt_current.value = 0
|
||||
tilt_current.minValue = -90
|
||||
tilt_current.maxValue = 0
|
||||
|
||||
tilt_target = service.add_char(CharacteristicsTypes.HORIZONTAL_TILT_TARGET)
|
||||
tilt_target.value = 0
|
||||
tilt_target.minValue = -90
|
||||
tilt_target.maxValue = 0
|
||||
|
||||
|
||||
def create_window_covering_service_with_v_tilt(accessory: Accessory) -> None:
|
||||
"""Define a window-covering characteristics as per page 219 of HAP spec."""
|
||||
service = create_window_covering_service(accessory)
|
||||
|
||||
tilt_current = service.add_char(CharacteristicsTypes.VERTICAL_TILT_CURRENT)
|
||||
tilt_current.value = 0
|
||||
tilt_current.minValue = 0
|
||||
tilt_current.maxValue = 90
|
||||
|
||||
tilt_target = service.add_char(CharacteristicsTypes.VERTICAL_TILT_TARGET)
|
||||
tilt_target.value = 0
|
||||
tilt_target.minValue = 0
|
||||
tilt_target.maxValue = 90
|
||||
|
||||
|
||||
def create_window_covering_service_with_v_tilt_2(accessory: Accessory) -> None:
|
||||
"""Define a window-covering characteristics as per page 219 of HAP spec."""
|
||||
service = create_window_covering_service(accessory)
|
||||
|
||||
tilt_current = service.add_char(CharacteristicsTypes.VERTICAL_TILT_CURRENT)
|
||||
tilt_current.value = 0
|
||||
tilt_current.minValue = -90
|
||||
tilt_current.maxValue = 0
|
||||
|
||||
tilt_target = service.add_char(CharacteristicsTypes.VERTICAL_TILT_TARGET)
|
||||
tilt_target.value = 0
|
||||
tilt_target.minValue = -90
|
||||
tilt_target.maxValue = 0
|
||||
|
||||
|
||||
def create_window_covering_service_with_none_tilt(accessory: Accessory) -> None:
|
||||
"""Define a window-covering characteristics as per page 219 of HAP spec.
|
||||
|
||||
This accessory uses None for the tilt value unexpectedly.
|
||||
"""
|
||||
service = create_window_covering_service(accessory)
|
||||
|
||||
tilt_current = service.add_char(CharacteristicsTypes.VERTICAL_TILT_CURRENT)
|
||||
tilt_current.value = None
|
||||
tilt_current.minValue = -90
|
||||
tilt_current.maxValue = 0
|
||||
|
||||
tilt_target = service.add_char(CharacteristicsTypes.VERTICAL_TILT_TARGET)
|
||||
tilt_target.value = None
|
||||
tilt_target.minValue = -90
|
||||
tilt_target.maxValue = 0
|
||||
|
||||
|
||||
def create_window_covering_service_with_no_minmax_tilt(accessory):
|
||||
"""Apply use values (-90 to 90) if min/max not provided."""
|
||||
service = create_window_covering_service(accessory)
|
||||
|
||||
tilt_current = service.add_char(CharacteristicsTypes.HORIZONTAL_TILT_CURRENT)
|
||||
tilt_current.value = 0
|
||||
|
||||
tilt_target = service.add_char(CharacteristicsTypes.HORIZONTAL_TILT_TARGET)
|
||||
tilt_target.value = 0
|
||||
|
||||
|
||||
def create_window_covering_service_with_full_range_tilt(accessory):
|
||||
"""Somfi Velux Integration."""
|
||||
service = create_window_covering_service(accessory)
|
||||
|
||||
tilt_current = service.add_char(CharacteristicsTypes.HORIZONTAL_TILT_CURRENT)
|
||||
tilt_current.value = 0
|
||||
tilt_current.minValue = -90
|
||||
tilt_current.maxValue = 90
|
||||
|
||||
tilt_target = service.add_char(CharacteristicsTypes.HORIZONTAL_TILT_TARGET)
|
||||
tilt_target.value = 0
|
||||
tilt_target.minValue = -90
|
||||
tilt_target.maxValue = 90
|
||||
|
||||
|
||||
async def test_change_window_cover_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a HomeKit alarm on and off again."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover", "open_cover", {"entity_id": helper.entity_id}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.POSITION_TARGET: 100,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover", "close_cover", {"entity_id": helper.entity_id}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.POSITION_TARGET: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_read_window_cover_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit alarm accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.POSITION_STATE: 0},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "closing"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.POSITION_STATE: 1},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "opening"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.POSITION_STATE: 2},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "closed"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.OBSTRUCTION_DETECTED: True},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.attributes["obstruction-detected"] is True
|
||||
|
||||
|
||||
async def test_read_window_cover_tilt_horizontal(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that horizontal tilt is handled correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_h_tilt
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.HORIZONTAL_TILT_CURRENT: 75},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
# Expect converted value from arcdegree scale to percentage scale.
|
||||
assert state.attributes["current_tilt_position"] == 83
|
||||
|
||||
|
||||
async def test_read_window_cover_tilt_horizontal_2(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that horizontal tilt is handled correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_h_tilt_2
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.HORIZONTAL_TILT_CURRENT: -75},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
# Expect converted value from arcdegree scale to percentage scale.
|
||||
assert state.attributes["current_tilt_position"] == 83
|
||||
|
||||
|
||||
async def test_read_window_cover_tilt_vertical(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that vertical tilt is handled correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_v_tilt
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.VERTICAL_TILT_CURRENT: 75},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
# Expect converted value from arcdegree scale to percentage scale.
|
||||
assert state.attributes["current_tilt_position"] == 83
|
||||
|
||||
|
||||
async def test_read_window_cover_tilt_vertical_2(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that vertical tilt is handled correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_v_tilt_2
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.VERTICAL_TILT_CURRENT: -75},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
# Expect converted value from arcdegree scale to percentage scale.
|
||||
assert state.attributes["current_tilt_position"] == 83
|
||||
|
||||
|
||||
async def test_read_window_cover_tilt_missing_tilt(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that missing tilt is handled."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_none_tilt
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.OBSTRUCTION_DETECTED: True},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert "current_tilt_position" not in state.attributes
|
||||
assert state.state != STATE_UNAVAILABLE
|
||||
|
||||
|
||||
async def test_read_window_cover_tilt_full_range(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that horizontal tilt is handled correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_full_range_tilt
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.HORIZONTAL_TILT_CURRENT: 0},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
# Expect converted value from arcdegree scale to percentage scale.
|
||||
assert state.attributes["current_tilt_position"] == 50
|
||||
|
||||
|
||||
async def test_read_window_cover_tilt_no_minmax(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that horizontal tilt is handled correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_no_minmax_tilt
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{CharacteristicsTypes.HORIZONTAL_TILT_CURRENT: 90},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
# Expect converted value from arcdegree scale to percentage scale.
|
||||
assert state.attributes["current_tilt_position"] == 100
|
||||
|
||||
|
||||
async def test_write_window_cover_tilt_horizontal(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that horizontal tilt is written correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_h_tilt
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover",
|
||||
"set_cover_tilt_position",
|
||||
{"entity_id": helper.entity_id, "tilt_position": 90},
|
||||
blocking=True,
|
||||
)
|
||||
# Expect converted value from percentage scale to arcdegree scale.
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.HORIZONTAL_TILT_TARGET: 81,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_write_window_cover_tilt_horizontal_2(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that horizontal tilt is written correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_h_tilt_2
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover",
|
||||
"set_cover_tilt_position",
|
||||
{"entity_id": helper.entity_id, "tilt_position": 90},
|
||||
blocking=True,
|
||||
)
|
||||
# Expect converted value from percentage scale to arcdegree scale.
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.HORIZONTAL_TILT_TARGET: -81,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_write_window_cover_tilt_vertical(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that vertical tilt is written correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_v_tilt
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover",
|
||||
"set_cover_tilt_position",
|
||||
{"entity_id": helper.entity_id, "tilt_position": 90},
|
||||
blocking=True,
|
||||
)
|
||||
# Expect converted value from percentage scale to arcdegree scale.
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.VERTICAL_TILT_TARGET: 81,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_write_window_cover_tilt_vertical_2(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that vertical tilt is written correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_v_tilt_2
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover",
|
||||
"set_cover_tilt_position",
|
||||
{"entity_id": helper.entity_id, "tilt_position": 90},
|
||||
blocking=True,
|
||||
)
|
||||
# Expect converted value from percentage scale to arcdegree scale.
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.VERTICAL_TILT_TARGET: -81,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_write_window_cover_tilt_no_minmax(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that horizontal tilt is written correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_no_minmax_tilt
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover",
|
||||
"set_cover_tilt_position",
|
||||
{"entity_id": helper.entity_id, "tilt_position": 90},
|
||||
blocking=True,
|
||||
)
|
||||
# Expect converted value from percentage scale to arcdegree scale.
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.HORIZONTAL_TILT_TARGET: 72,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_window_cover_stop(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that vertical tilt is written correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_v_tilt
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover", "stop_cover", {"entity_id": helper.entity_id}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.POSITION_HOLD: True,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_write_window_cover_tilt_full_range(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that full-range tilt is working correctly."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_window_covering_service_with_full_range_tilt
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover",
|
||||
"set_cover_tilt_position",
|
||||
{"entity_id": helper.entity_id, "tilt_position": 10},
|
||||
blocking=True,
|
||||
)
|
||||
# Expect converted value from percentage scale to arc on -90 to +90 scale.
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.HORIZONTAL_TILT_TARGET: -72,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover",
|
||||
"set_cover_tilt_position",
|
||||
{"entity_id": helper.entity_id, "tilt_position": 50},
|
||||
blocking=True,
|
||||
)
|
||||
# Expect converted value from percentage scale to arc on -90 to +90 scale.
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.HORIZONTAL_TILT_TARGET: 0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover",
|
||||
"set_cover_tilt_position",
|
||||
{"entity_id": helper.entity_id, "tilt_position": 90},
|
||||
blocking=True,
|
||||
)
|
||||
# Expect converted value from percentage scale to arc on -90 to +90 scale.
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.WINDOW_COVERING,
|
||||
{
|
||||
CharacteristicsTypes.HORIZONTAL_TILT_TARGET: 72,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
def create_garage_door_opener_service(accessory: Accessory) -> None:
|
||||
"""Define a garage-door-opener chars as per page 217 of HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.GARAGE_DOOR_OPENER)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.DOOR_STATE_CURRENT)
|
||||
cur_state.value = 0
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.DOOR_STATE_TARGET)
|
||||
cur_state.value = 0
|
||||
|
||||
obstruction = service.add_char(CharacteristicsTypes.OBSTRUCTION_DETECTED)
|
||||
obstruction.value = False
|
||||
|
||||
name = service.add_char(CharacteristicsTypes.NAME)
|
||||
name.value = "testdevice"
|
||||
|
||||
return service
|
||||
|
||||
|
||||
async def test_change_door_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn open and close a HomeKit garage door."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_garage_door_opener_service
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover", "open_cover", {"entity_id": helper.entity_id}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.GARAGE_DOOR_OPENER,
|
||||
{
|
||||
CharacteristicsTypes.DOOR_STATE_TARGET: 0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"cover", "close_cover", {"entity_id": helper.entity_id}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.GARAGE_DOOR_OPENER,
|
||||
{
|
||||
CharacteristicsTypes.DOOR_STATE_TARGET: 1,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_read_door_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit garage door."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_garage_door_opener_service
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.GARAGE_DOOR_OPENER,
|
||||
{CharacteristicsTypes.DOOR_STATE_CURRENT: 0},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "open"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.GARAGE_DOOR_OPENER,
|
||||
{CharacteristicsTypes.DOOR_STATE_CURRENT: 1},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "closed"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.GARAGE_DOOR_OPENER,
|
||||
{CharacteristicsTypes.DOOR_STATE_CURRENT: 2},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "opening"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.GARAGE_DOOR_OPENER,
|
||||
{CharacteristicsTypes.DOOR_STATE_CURRENT: 3},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "closing"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.GARAGE_DOOR_OPENER,
|
||||
{CharacteristicsTypes.OBSTRUCTION_DETECTED: True},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.attributes["obstruction-detected"] is True
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we can migrate a cover unique id."""
|
||||
aid = get_next_aid()
|
||||
cover_entry = entity_registry.async_get_or_create(
|
||||
"cover",
|
||||
"homekit_controller",
|
||||
f"homekit-00:00:00:00:00:00-{aid}-8",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_garage_door_opener_service)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(cover_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8"
|
||||
)
|
||||
@@ -0,0 +1,498 @@
|
||||
"""Test homekit_controller stateless triggers."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
from homeassistant.components import automation
|
||||
from homeassistant.components.device_automation import DeviceAutomationType
|
||||
from homeassistant.components.homekit_controller.const import DOMAIN
|
||||
from homeassistant.config_entries import ConfigEntryState
|
||||
from homeassistant.core import HomeAssistant, ServiceCall
|
||||
from homeassistant.helpers import device_registry as dr, entity_registry as er
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
from tests.common import async_get_device_automations
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True, name="stub_blueprint_populate")
|
||||
def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None:
|
||||
"""Stub copying the blueprints to the config folder."""
|
||||
|
||||
|
||||
def create_remote(accessory: Accessory) -> None:
|
||||
"""Define characteristics for a button (that is inn a group)."""
|
||||
service_label = accessory.add_service(ServicesTypes.SERVICE_LABEL)
|
||||
|
||||
char = service_label.add_char(CharacteristicsTypes.SERVICE_LABEL_NAMESPACE)
|
||||
char.value = 1
|
||||
|
||||
for i in range(4):
|
||||
button = accessory.add_service(ServicesTypes.STATELESS_PROGRAMMABLE_SWITCH)
|
||||
button.linked.append(service_label)
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.INPUT_EVENT)
|
||||
char.value = 0
|
||||
char.perms = ["pw", "pr", "ev"]
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.NAME)
|
||||
char.value = f"Button {i + 1}"
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.SERVICE_LABEL_INDEX)
|
||||
char.value = i
|
||||
|
||||
battery = accessory.add_service(ServicesTypes.BATTERY_SERVICE)
|
||||
battery.add_char(CharacteristicsTypes.BATTERY_LEVEL)
|
||||
|
||||
|
||||
def create_button(accessory: Accessory) -> None:
|
||||
"""Define a button (that is not in a group)."""
|
||||
button = accessory.add_service(ServicesTypes.STATELESS_PROGRAMMABLE_SWITCH)
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.INPUT_EVENT)
|
||||
char.value = 0
|
||||
char.perms = ["pw", "pr", "ev"]
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.NAME)
|
||||
char.value = "Button 1"
|
||||
|
||||
battery = accessory.add_service(ServicesTypes.BATTERY_SERVICE)
|
||||
battery.add_char(CharacteristicsTypes.BATTERY_LEVEL)
|
||||
|
||||
|
||||
def create_doorbell(accessory: Accessory) -> None:
|
||||
"""Define a button (that is not in a group)."""
|
||||
button = accessory.add_service(ServicesTypes.DOORBELL)
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.INPUT_EVENT)
|
||||
char.value = 0
|
||||
char.perms = ["pw", "pr", "ev"]
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.NAME)
|
||||
char.value = "Doorbell"
|
||||
|
||||
battery = accessory.add_service(ServicesTypes.BATTERY_SERVICE)
|
||||
battery.add_char(CharacteristicsTypes.BATTERY_LEVEL)
|
||||
|
||||
|
||||
async def test_enumerate_remote(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test that remote is correctly enumerated."""
|
||||
await setup_test_component(hass, get_next_aid(), create_remote)
|
||||
|
||||
bat_sensor = entity_registry.async_get("sensor.testdevice_battery")
|
||||
identify_button = entity_registry.async_get("button.testdevice_identify")
|
||||
|
||||
device = device_registry.async_get(bat_sensor.device_id)
|
||||
|
||||
expected = [
|
||||
{
|
||||
"device_id": device.id,
|
||||
"domain": "sensor",
|
||||
"entity_id": bat_sensor.id,
|
||||
"platform": "device",
|
||||
"type": "battery_level",
|
||||
"metadata": {"secondary": True},
|
||||
},
|
||||
{
|
||||
"device_id": device.id,
|
||||
"domain": "button",
|
||||
"entity_id": identify_button.id,
|
||||
"platform": "device",
|
||||
"type": "pressed",
|
||||
"metadata": {"secondary": True},
|
||||
},
|
||||
]
|
||||
|
||||
expected.extend(
|
||||
{
|
||||
"device_id": device.id,
|
||||
"domain": "homekit_controller",
|
||||
"platform": "device",
|
||||
"type": button,
|
||||
"subtype": subtype,
|
||||
"metadata": {},
|
||||
}
|
||||
for button in ("button1", "button2", "button3", "button4")
|
||||
for subtype in ("single_press", "double_press", "long_press")
|
||||
)
|
||||
|
||||
triggers = await async_get_device_automations(
|
||||
hass, DeviceAutomationType.TRIGGER, device.id
|
||||
)
|
||||
assert triggers == unordered(expected)
|
||||
|
||||
|
||||
async def test_enumerate_button(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test that a button is correctly enumerated."""
|
||||
await setup_test_component(hass, get_next_aid(), create_button)
|
||||
|
||||
bat_sensor = entity_registry.async_get("sensor.testdevice_battery")
|
||||
identify_button = entity_registry.async_get("button.testdevice_identify")
|
||||
|
||||
device = device_registry.async_get(bat_sensor.device_id)
|
||||
|
||||
expected = [
|
||||
{
|
||||
"device_id": device.id,
|
||||
"domain": "sensor",
|
||||
"entity_id": bat_sensor.id,
|
||||
"platform": "device",
|
||||
"type": "battery_level",
|
||||
"metadata": {"secondary": True},
|
||||
},
|
||||
{
|
||||
"device_id": device.id,
|
||||
"domain": "button",
|
||||
"entity_id": identify_button.id,
|
||||
"platform": "device",
|
||||
"type": "pressed",
|
||||
"metadata": {"secondary": True},
|
||||
},
|
||||
]
|
||||
|
||||
expected.extend(
|
||||
{
|
||||
"device_id": device.id,
|
||||
"domain": "homekit_controller",
|
||||
"platform": "device",
|
||||
"type": "button1",
|
||||
"subtype": subtype,
|
||||
"metadata": {},
|
||||
}
|
||||
for subtype in ("single_press", "double_press", "long_press")
|
||||
)
|
||||
|
||||
triggers = await async_get_device_automations(
|
||||
hass, DeviceAutomationType.TRIGGER, device.id
|
||||
)
|
||||
assert triggers == unordered(expected)
|
||||
|
||||
|
||||
async def test_enumerate_doorbell(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test that a button is correctly enumerated."""
|
||||
await setup_test_component(hass, get_next_aid(), create_doorbell)
|
||||
|
||||
bat_sensor = entity_registry.async_get("sensor.testdevice_battery")
|
||||
identify_button = entity_registry.async_get("button.testdevice_identify")
|
||||
|
||||
device = device_registry.async_get(bat_sensor.device_id)
|
||||
|
||||
expected = [
|
||||
{
|
||||
"device_id": device.id,
|
||||
"domain": "sensor",
|
||||
"entity_id": bat_sensor.id,
|
||||
"platform": "device",
|
||||
"type": "battery_level",
|
||||
"metadata": {"secondary": True},
|
||||
},
|
||||
{
|
||||
"device_id": device.id,
|
||||
"domain": "button",
|
||||
"entity_id": identify_button.id,
|
||||
"platform": "device",
|
||||
"type": "pressed",
|
||||
"metadata": {"secondary": True},
|
||||
},
|
||||
]
|
||||
|
||||
expected.extend(
|
||||
{
|
||||
"device_id": device.id,
|
||||
"domain": "homekit_controller",
|
||||
"platform": "device",
|
||||
"type": "doorbell",
|
||||
"subtype": subtype,
|
||||
"metadata": {},
|
||||
}
|
||||
for subtype in ("single_press", "double_press", "long_press")
|
||||
)
|
||||
|
||||
triggers = await async_get_device_automations(
|
||||
hass, DeviceAutomationType.TRIGGER, device.id
|
||||
)
|
||||
assert triggers == unordered(expected)
|
||||
|
||||
|
||||
async def test_handle_events(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
service_calls: list[ServiceCall],
|
||||
) -> None:
|
||||
"""Test that events are handled."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_remote)
|
||||
|
||||
entry = entity_registry.async_get("sensor.testdevice_battery")
|
||||
|
||||
device = device_registry.async_get(entry.device_id)
|
||||
|
||||
assert await async_setup_component(
|
||||
hass,
|
||||
automation.DOMAIN,
|
||||
{
|
||||
automation.DOMAIN: [
|
||||
{
|
||||
"alias": "single_press",
|
||||
"trigger": {
|
||||
"platform": "device",
|
||||
"domain": DOMAIN,
|
||||
"device_id": device.id,
|
||||
"type": "button1",
|
||||
"subtype": "single_press",
|
||||
},
|
||||
"action": {
|
||||
"service": "test.automation",
|
||||
"data_template": {
|
||||
"some": (
|
||||
"{{ trigger.platform}} - "
|
||||
"{{ trigger.type }} - {{ trigger.subtype }} - "
|
||||
"{{ trigger.id }}"
|
||||
)
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"alias": "long_press",
|
||||
"trigger": {
|
||||
"platform": "device",
|
||||
"domain": DOMAIN,
|
||||
"device_id": device.id,
|
||||
"type": "button2",
|
||||
"subtype": "long_press",
|
||||
},
|
||||
"action": {
|
||||
"service": "test.automation",
|
||||
"data_template": {
|
||||
"some": (
|
||||
"{{ trigger.platform}} - "
|
||||
"{{ trigger.type }} - {{ trigger.subtype }} - "
|
||||
"{{ trigger.id }}"
|
||||
)
|
||||
},
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
)
|
||||
|
||||
# Make sure first automation (only) fires for single press
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 1", {CharacteristicsTypes.INPUT_EVENT: 0}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 1
|
||||
assert service_calls[0].data["some"] == "device - button1 - single_press - 0"
|
||||
|
||||
# Make sure automation doesn't trigger for long press
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 1", {CharacteristicsTypes.INPUT_EVENT: 1}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 1
|
||||
|
||||
# Make sure automation doesn't trigger for double press
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 1", {CharacteristicsTypes.INPUT_EVENT: 2}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 1
|
||||
|
||||
# Make sure second automation fires for long press
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 2", {CharacteristicsTypes.INPUT_EVENT: 2}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 2
|
||||
assert service_calls[1].data["some"] == "device - button2 - long_press - 0"
|
||||
|
||||
# Turn the automations off
|
||||
await hass.services.async_call(
|
||||
"automation",
|
||||
"turn_off",
|
||||
{"entity_id": "automation.long_press"},
|
||||
blocking=True,
|
||||
)
|
||||
assert len(service_calls) == 3
|
||||
|
||||
await hass.services.async_call(
|
||||
"automation",
|
||||
"turn_off",
|
||||
{"entity_id": "automation.single_press"},
|
||||
blocking=True,
|
||||
)
|
||||
assert len(service_calls) == 4
|
||||
|
||||
# Make sure event no longer fires
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 2", {CharacteristicsTypes.INPUT_EVENT: 2}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 4
|
||||
|
||||
|
||||
async def test_handle_events_late_setup(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
service_calls: list[ServiceCall],
|
||||
) -> None:
|
||||
"""Test that events are handled when setup happens after startup."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_remote)
|
||||
|
||||
entry = entity_registry.async_get("sensor.testdevice_battery")
|
||||
|
||||
device = device_registry.async_get(entry.device_id)
|
||||
|
||||
await hass.config_entries.async_unload(helper.config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
assert helper.config_entry.state is ConfigEntryState.NOT_LOADED
|
||||
|
||||
assert await async_setup_component(
|
||||
hass,
|
||||
automation.DOMAIN,
|
||||
{
|
||||
automation.DOMAIN: [
|
||||
{
|
||||
"alias": "single_press",
|
||||
"trigger": {
|
||||
"platform": "device",
|
||||
"domain": DOMAIN,
|
||||
"device_id": device.id,
|
||||
"type": "button1",
|
||||
"subtype": "single_press",
|
||||
},
|
||||
"action": {
|
||||
"service": "test.automation",
|
||||
"data_template": {
|
||||
"some": (
|
||||
"{{ trigger.platform}} - "
|
||||
"{{ trigger.type }} - {{ trigger.subtype }} - "
|
||||
"{{ trigger.id }}"
|
||||
)
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"alias": "long_press",
|
||||
"trigger": {
|
||||
"platform": "device",
|
||||
"domain": DOMAIN,
|
||||
"device_id": device.id,
|
||||
"type": "button2",
|
||||
"subtype": "long_press",
|
||||
},
|
||||
"action": {
|
||||
"service": "test.automation",
|
||||
"data_template": {
|
||||
"some": (
|
||||
"{{ trigger.platform}} - "
|
||||
"{{ trigger.type }} - {{ trigger.subtype }} - "
|
||||
"{{ trigger.id }}"
|
||||
)
|
||||
},
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
await hass.config_entries.async_setup(helper.config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
assert helper.config_entry.state is ConfigEntryState.LOADED
|
||||
|
||||
# Make sure first automation (only) fires for single press
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 1", {CharacteristicsTypes.INPUT_EVENT: 0}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 1
|
||||
assert service_calls[0].data["some"] == "device - button1 - single_press - 0"
|
||||
|
||||
# Make sure automation doesn't trigger for a polled None
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 1", {CharacteristicsTypes.INPUT_EVENT: None}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 1
|
||||
|
||||
# Make sure automation doesn't trigger for long press
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 1", {CharacteristicsTypes.INPUT_EVENT: 1}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 1
|
||||
|
||||
# Make sure automation doesn't trigger for double press
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 1", {CharacteristicsTypes.INPUT_EVENT: 2}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 1
|
||||
|
||||
# Make sure second automation fires for long press
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 2", {CharacteristicsTypes.INPUT_EVENT: 2}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 2
|
||||
assert service_calls[1].data["some"] == "device - button2 - long_press - 0"
|
||||
|
||||
# Turn the automations off
|
||||
await hass.services.async_call(
|
||||
"automation",
|
||||
"turn_off",
|
||||
{"entity_id": "automation.long_press"},
|
||||
blocking=True,
|
||||
)
|
||||
assert len(service_calls) == 3
|
||||
|
||||
await hass.services.async_call(
|
||||
"automation",
|
||||
"turn_off",
|
||||
{"entity_id": "automation.single_press"},
|
||||
blocking=True,
|
||||
)
|
||||
assert len(service_calls) == 4
|
||||
|
||||
# Make sure event no longer fires
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 2", {CharacteristicsTypes.INPUT_EVENT: 2}
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert len(service_calls) == 4
|
||||
@@ -0,0 +1,52 @@
|
||||
"""Test homekit_controller diagnostics."""
|
||||
|
||||
from syrupy import SnapshotAssertion
|
||||
from syrupy.filters import props
|
||||
|
||||
from homeassistant.components.homekit_controller.const import KNOWN_DEVICES
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import device_registry as dr
|
||||
|
||||
from .common import setup_accessories_from_file, setup_test_accessories
|
||||
|
||||
from tests.components.diagnostics import (
|
||||
get_diagnostics_for_config_entry,
|
||||
get_diagnostics_for_device,
|
||||
)
|
||||
from tests.typing import ClientSessionGenerator
|
||||
|
||||
|
||||
async def test_config_entry(
|
||||
hass: HomeAssistant,
|
||||
hass_client: ClientSessionGenerator,
|
||||
snapshot: SnapshotAssertion,
|
||||
) -> None:
|
||||
"""Test generating diagnostics for a config entry."""
|
||||
accessories = await setup_accessories_from_file(hass, "koogeek_ls1.json")
|
||||
config_entry, _ = await setup_test_accessories(hass, accessories)
|
||||
|
||||
diag = await get_diagnostics_for_config_entry(hass, hass_client, config_entry)
|
||||
|
||||
assert diag == snapshot(
|
||||
exclude=props("last_changed", "last_reported", "last_updated")
|
||||
)
|
||||
|
||||
|
||||
async def test_device(
|
||||
hass: HomeAssistant,
|
||||
hass_client: ClientSessionGenerator,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
snapshot: SnapshotAssertion,
|
||||
) -> None:
|
||||
"""Test generating diagnostics for a device entry."""
|
||||
accessories = await setup_accessories_from_file(hass, "koogeek_ls1.json")
|
||||
config_entry, _ = await setup_test_accessories(hass, accessories)
|
||||
|
||||
connection = hass.data[KNOWN_DEVICES]["00:00:00:00:00:00"]
|
||||
device = device_registry.async_get(connection.devices[1])
|
||||
|
||||
diag = await get_diagnostics_for_device(hass, hass_client, config_entry, device)
|
||||
|
||||
assert diag == snapshot(
|
||||
exclude=props("last_changed", "last_reported", "last_updated")
|
||||
)
|
||||
195
home-assistant/tests/components/homekit_controller/test_event.py
Normal file
195
home-assistant/tests/components/homekit_controller/test_event.py
Normal file
@@ -0,0 +1,195 @@
|
||||
"""Test homekit_controller stateless triggers."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
|
||||
from homeassistant.components.event import EventDeviceClass
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_remote(accessory: Accessory) -> None:
|
||||
"""Define characteristics for a button (that is inn a group)."""
|
||||
service_label = accessory.add_service(ServicesTypes.SERVICE_LABEL)
|
||||
|
||||
char = service_label.add_char(CharacteristicsTypes.SERVICE_LABEL_NAMESPACE)
|
||||
char.value = 1
|
||||
|
||||
for i in range(4):
|
||||
button = accessory.add_service(ServicesTypes.STATELESS_PROGRAMMABLE_SWITCH)
|
||||
button.linked.append(service_label)
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.INPUT_EVENT)
|
||||
char.value = 0
|
||||
char.perms = ["pw", "pr", "ev"]
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.NAME)
|
||||
char.value = f"Button {i + 1}"
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.SERVICE_LABEL_INDEX)
|
||||
char.value = i
|
||||
|
||||
battery = accessory.add_service(ServicesTypes.BATTERY_SERVICE)
|
||||
battery.add_char(CharacteristicsTypes.BATTERY_LEVEL)
|
||||
|
||||
|
||||
def create_button(accessory: Accessory) -> None:
|
||||
"""Define a button (that is not in a group)."""
|
||||
button = accessory.add_service(ServicesTypes.STATELESS_PROGRAMMABLE_SWITCH)
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.INPUT_EVENT)
|
||||
char.value = 0
|
||||
char.perms = ["pw", "pr", "ev"]
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.NAME)
|
||||
char.value = "Button 1"
|
||||
|
||||
battery = accessory.add_service(ServicesTypes.BATTERY_SERVICE)
|
||||
battery.add_char(CharacteristicsTypes.BATTERY_LEVEL)
|
||||
|
||||
|
||||
def create_doorbell(accessory: Accessory) -> None:
|
||||
"""Define a button (that is not in a group)."""
|
||||
button = accessory.add_service(ServicesTypes.DOORBELL)
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.INPUT_EVENT)
|
||||
char.value = 0
|
||||
char.perms = ["pw", "pr", "ev"]
|
||||
|
||||
char = button.add_char(CharacteristicsTypes.NAME)
|
||||
char.value = "Doorbell"
|
||||
|
||||
battery = accessory.add_service(ServicesTypes.BATTERY_SERVICE)
|
||||
battery.add_char(CharacteristicsTypes.BATTERY_LEVEL)
|
||||
|
||||
|
||||
async def test_remote(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test that remote is supported."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_remote)
|
||||
|
||||
entities = [
|
||||
("event.testdevice_button_1", "Button 1"),
|
||||
("event.testdevice_button_2", "Button 2"),
|
||||
("event.testdevice_button_3", "Button 3"),
|
||||
("event.testdevice_button_4", "Button 4"),
|
||||
]
|
||||
|
||||
for entity_id, service in entities:
|
||||
button = entity_registry.async_get(entity_id)
|
||||
|
||||
assert button.original_device_class == EventDeviceClass.BUTTON
|
||||
assert button.capabilities["event_types"] == [
|
||||
"single_press",
|
||||
"double_press",
|
||||
"long_press",
|
||||
]
|
||||
|
||||
helper.pairing.testing.update_named_service(
|
||||
service, {CharacteristicsTypes.INPUT_EVENT: 0}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.attributes["event_type"] == "single_press"
|
||||
|
||||
helper.pairing.testing.update_named_service(
|
||||
service, {CharacteristicsTypes.INPUT_EVENT: 1}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.attributes["event_type"] == "double_press"
|
||||
|
||||
helper.pairing.testing.update_named_service(
|
||||
service, {CharacteristicsTypes.INPUT_EVENT: 2}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.attributes["event_type"] == "long_press"
|
||||
|
||||
|
||||
async def test_button(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test that a button is correctly enumerated."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_button)
|
||||
entity_id = "event.testdevice_button_1"
|
||||
|
||||
button = entity_registry.async_get(entity_id)
|
||||
|
||||
assert button.original_device_class == EventDeviceClass.BUTTON
|
||||
assert button.capabilities["event_types"] == [
|
||||
"single_press",
|
||||
"double_press",
|
||||
"long_press",
|
||||
]
|
||||
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 1", {CharacteristicsTypes.INPUT_EVENT: 0}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.attributes["event_type"] == "single_press"
|
||||
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 1", {CharacteristicsTypes.INPUT_EVENT: 1}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.attributes["event_type"] == "double_press"
|
||||
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Button 1", {CharacteristicsTypes.INPUT_EVENT: 2}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.attributes["event_type"] == "long_press"
|
||||
|
||||
|
||||
async def test_doorbell(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test that doorbell service is handled."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_doorbell)
|
||||
entity_id = "event.testdevice_doorbell"
|
||||
|
||||
doorbell = entity_registry.async_get(entity_id)
|
||||
|
||||
assert doorbell.original_device_class == EventDeviceClass.DOORBELL
|
||||
assert doorbell.capabilities["event_types"] == [
|
||||
"single_press",
|
||||
"double_press",
|
||||
"long_press",
|
||||
]
|
||||
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Doorbell", {CharacteristicsTypes.INPUT_EVENT: 0}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.attributes["event_type"] == "single_press"
|
||||
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Doorbell", {CharacteristicsTypes.INPUT_EVENT: 1}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.attributes["event_type"] == "double_press"
|
||||
|
||||
helper.pairing.testing.update_named_service(
|
||||
"Doorbell", {CharacteristicsTypes.INPUT_EVENT: 2}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.attributes["event_type"] == "long_press"
|
||||
869
home-assistant/tests/components/homekit_controller/test_fan.py
Normal file
869
home-assistant/tests/components/homekit_controller/test_fan.py
Normal file
@@ -0,0 +1,869 @@
|
||||
"""Basic checks for HomeKit fans."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_fan_service(accessory: Accessory) -> None:
|
||||
"""Define fan v1 characteristics as per HAP spec.
|
||||
|
||||
This service is no longer documented in R2 of the public HAP spec but existing
|
||||
devices out there use it (like the SIMPLEconnect fan)
|
||||
"""
|
||||
service = accessory.add_service(ServicesTypes.FAN)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.ON)
|
||||
cur_state.value = 0
|
||||
|
||||
direction = service.add_char(CharacteristicsTypes.ROTATION_DIRECTION)
|
||||
direction.value = 0
|
||||
|
||||
speed = service.add_char(CharacteristicsTypes.ROTATION_SPEED)
|
||||
speed.value = 0
|
||||
|
||||
|
||||
def create_fanv2_service(accessory: Accessory) -> None:
|
||||
"""Define fan v2 characteristics as per HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.FAN_V2)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.ACTIVE)
|
||||
cur_state.value = 0
|
||||
|
||||
direction = service.add_char(CharacteristicsTypes.ROTATION_DIRECTION)
|
||||
direction.value = 0
|
||||
|
||||
speed = service.add_char(CharacteristicsTypes.ROTATION_SPEED)
|
||||
speed.value = 0
|
||||
|
||||
swing_mode = service.add_char(CharacteristicsTypes.SWING_MODE)
|
||||
swing_mode.value = 0
|
||||
|
||||
|
||||
def create_fanv2_service_non_standard_rotation_range(accessory: Accessory) -> None:
|
||||
"""Define fan v2 with a non-standard rotation range."""
|
||||
service = accessory.add_service(ServicesTypes.FAN_V2)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.ACTIVE)
|
||||
cur_state.value = 0
|
||||
|
||||
speed = service.add_char(CharacteristicsTypes.ROTATION_SPEED)
|
||||
speed.value = 0
|
||||
speed.minValue = 0
|
||||
speed.maxValue = 3
|
||||
speed.minStep = 1
|
||||
|
||||
|
||||
def create_fanv2_service_with_min_step(accessory: Accessory) -> None:
|
||||
"""Define fan v2 characteristics as per HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.FAN_V2)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.ACTIVE)
|
||||
cur_state.value = 0
|
||||
|
||||
direction = service.add_char(CharacteristicsTypes.ROTATION_DIRECTION)
|
||||
direction.value = 0
|
||||
|
||||
speed = service.add_char(CharacteristicsTypes.ROTATION_SPEED)
|
||||
speed.value = 0
|
||||
speed.minStep = 25
|
||||
|
||||
swing_mode = service.add_char(CharacteristicsTypes.SWING_MODE)
|
||||
swing_mode.value = 0
|
||||
|
||||
|
||||
def create_fanv2_service_without_rotation_speed(accessory: Accessory) -> None:
|
||||
"""Define fan v2 characteristics as per HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.FAN_V2)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.ACTIVE)
|
||||
cur_state.value = 0
|
||||
|
||||
direction = service.add_char(CharacteristicsTypes.ROTATION_DIRECTION)
|
||||
direction.value = 0
|
||||
|
||||
swing_mode = service.add_char(CharacteristicsTypes.SWING_MODE)
|
||||
swing_mode.value = 0
|
||||
|
||||
|
||||
async def test_fan_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit fan accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fan_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN, {CharacteristicsTypes.ON: False}
|
||||
)
|
||||
assert state.state == "off"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN, {CharacteristicsTypes.ON: True}
|
||||
)
|
||||
assert state.state == "on"
|
||||
|
||||
|
||||
async def test_turn_on(hass: HomeAssistant, get_next_aid: Callable[[], int]) -> None:
|
||||
"""Test that we can turn a fan on."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fan_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_on",
|
||||
{"entity_id": "fan.testdevice", "percentage": 100},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ON: 1,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 100,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_on",
|
||||
{"entity_id": "fan.testdevice", "percentage": 66},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ON: 1,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 66.0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_on",
|
||||
{"entity_id": "fan.testdevice", "percentage": 33},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ON: 1,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 33.0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_turn_on_off_without_rotation_speed(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a fan on."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_fanv2_service_without_rotation_speed
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_on",
|
||||
{"entity_id": "fan.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_off",
|
||||
{"entity_id": "fan.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_turn_off(hass: HomeAssistant, get_next_aid: Callable[[], int]) -> None:
|
||||
"""Test that we can turn a fan off."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fan_service)
|
||||
|
||||
await helper.async_update(ServicesTypes.FAN, {CharacteristicsTypes.ON: 1})
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_off",
|
||||
{"entity_id": "fan.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ON: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_set_speed(hass: HomeAssistant, get_next_aid: Callable[[], int]) -> None:
|
||||
"""Test that we set fan speed."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fan_service)
|
||||
|
||||
await helper.async_update(ServicesTypes.FAN, {CharacteristicsTypes.ON: 1})
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 100},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 100.0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 66},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 66.0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 33},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 33.0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 0},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ON: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_set_percentage(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we set fan speed by percentage."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fan_service)
|
||||
|
||||
await helper.async_update(ServicesTypes.FAN, {CharacteristicsTypes.ON: 1})
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 66},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 66,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 0},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ON: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_speed_read(hass: HomeAssistant, get_next_aid: Callable[[], int]) -> None:
|
||||
"""Test that we can read a fans oscillation."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fan_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ON: 1,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 100,
|
||||
},
|
||||
)
|
||||
assert state.attributes["percentage"] == 100
|
||||
assert state.attributes["percentage_step"] == 1.0
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 50,
|
||||
},
|
||||
)
|
||||
assert state.attributes["percentage"] == 50
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 25,
|
||||
},
|
||||
)
|
||||
assert state.attributes["percentage"] == 25
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ON: 0,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 0,
|
||||
},
|
||||
)
|
||||
assert state.attributes["percentage"] == 0
|
||||
|
||||
|
||||
async def test_set_direction(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can set fan spin direction."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fan_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_direction",
|
||||
{"entity_id": "fan.testdevice", "direction": "reverse"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_DIRECTION: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_direction",
|
||||
{"entity_id": "fan.testdevice", "direction": "forward"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_DIRECTION: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_direction_read(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read a fans oscillation."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fan_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN, {CharacteristicsTypes.ROTATION_DIRECTION: 0}
|
||||
)
|
||||
assert state.attributes["direction"] == "forward"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN, {CharacteristicsTypes.ROTATION_DIRECTION: 1}
|
||||
)
|
||||
assert state.attributes["direction"] == "reverse"
|
||||
|
||||
|
||||
async def test_fanv2_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit fan accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fanv2_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN_V2, {CharacteristicsTypes.ACTIVE: False}
|
||||
)
|
||||
assert state.state == "off"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN_V2, {CharacteristicsTypes.ACTIVE: True}
|
||||
)
|
||||
assert state.state == "on"
|
||||
|
||||
|
||||
async def test_v2_turn_on(hass: HomeAssistant, get_next_aid: Callable[[], int]) -> None:
|
||||
"""Test that we can turn a fan on."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fanv2_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_on",
|
||||
{"entity_id": "fan.testdevice", "percentage": 100},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 100,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_on",
|
||||
{"entity_id": "fan.testdevice", "percentage": 66},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 66,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_on",
|
||||
{"entity_id": "fan.testdevice", "percentage": 33},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 33,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_off",
|
||||
{"entity_id": "fan.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 0,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 33,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_on",
|
||||
{"entity_id": "fan.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 33,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_v2_turn_off(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a fan off."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fanv2_service)
|
||||
|
||||
await helper.async_update(ServicesTypes.FAN_V2, {CharacteristicsTypes.ACTIVE: 1})
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"turn_off",
|
||||
{"entity_id": "fan.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_v2_set_speed(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we set fan speed."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fanv2_service)
|
||||
|
||||
await helper.async_update(ServicesTypes.FAN_V2, {CharacteristicsTypes.ACTIVE: 1})
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 100},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 100,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 66},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 66,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 33},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 33,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 0},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_v2_set_percentage(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we set fan speed by percentage."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fanv2_service)
|
||||
|
||||
await helper.async_update(ServicesTypes.FAN_V2, {CharacteristicsTypes.ACTIVE: 1})
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 66},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 66,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 0},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_v2_set_percentage_with_min_step(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we set fan speed by percentage."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_fanv2_service_with_min_step
|
||||
)
|
||||
|
||||
await helper.async_update(ServicesTypes.FAN_V2, {CharacteristicsTypes.ACTIVE: 1})
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 66},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 75,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 0},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_v2_speed_read(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read a fans oscillation."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fanv2_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 100,
|
||||
},
|
||||
)
|
||||
assert state.attributes["percentage"] == 100
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 50,
|
||||
},
|
||||
)
|
||||
assert state.attributes["percentage"] == 50
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 25,
|
||||
},
|
||||
)
|
||||
assert state.attributes["percentage"] == 25
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 0,
|
||||
CharacteristicsTypes.ROTATION_SPEED: 0,
|
||||
},
|
||||
)
|
||||
assert state.attributes["percentage"] == 0
|
||||
|
||||
|
||||
async def test_v2_set_direction(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can set fan spin direction."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fanv2_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_direction",
|
||||
{"entity_id": "fan.testdevice", "direction": "reverse"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_DIRECTION: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_direction",
|
||||
{"entity_id": "fan.testdevice", "direction": "forward"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_DIRECTION: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_v2_direction_read(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read a fans oscillation."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fanv2_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN_V2, {CharacteristicsTypes.ROTATION_DIRECTION: 0}
|
||||
)
|
||||
assert state.attributes["direction"] == "forward"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN_V2, {CharacteristicsTypes.ROTATION_DIRECTION: 1}
|
||||
)
|
||||
assert state.attributes["direction"] == "reverse"
|
||||
|
||||
|
||||
async def test_v2_oscillate(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can control a fans oscillation."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fanv2_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"oscillate",
|
||||
{"entity_id": "fan.testdevice", "oscillating": True},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.SWING_MODE: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"oscillate",
|
||||
{"entity_id": "fan.testdevice", "oscillating": False},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.SWING_MODE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_v2_oscillate_read(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read a fans oscillation."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_fanv2_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN_V2, {CharacteristicsTypes.SWING_MODE: 0}
|
||||
)
|
||||
assert state.attributes["oscillating"] is False
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.FAN_V2, {CharacteristicsTypes.SWING_MODE: 1}
|
||||
)
|
||||
assert state.attributes["oscillating"] is True
|
||||
|
||||
|
||||
async def test_v2_set_percentage_non_standard_rotation_range(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we set fan speed with a non-standard rotation range."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_fanv2_service_non_standard_rotation_range
|
||||
)
|
||||
|
||||
await helper.async_update(ServicesTypes.FAN_V2, {CharacteristicsTypes.ACTIVE: 1})
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 100},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 3,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 66},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 2,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 33},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ROTATION_SPEED: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan",
|
||||
"set_percentage",
|
||||
{"entity_id": "fan.testdevice", "percentage": 0},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAN_V2,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we can migrate a fan unique id."""
|
||||
aid = get_next_aid()
|
||||
fan_entry = entity_registry.async_get_or_create(
|
||||
"fan",
|
||||
"homekit_controller",
|
||||
f"homekit-00:00:00:00:00:00-{aid}-8",
|
||||
)
|
||||
await setup_test_component(
|
||||
hass, aid, create_fanv2_service_non_standard_rotation_range
|
||||
)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(fan_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8"
|
||||
)
|
||||
@@ -0,0 +1,519 @@
|
||||
"""Basic checks for HomeKit Humidifier/Dehumidifier."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
|
||||
from homeassistant.components.humidifier import (
|
||||
DOMAIN as HUMIDIFIER_DOMAIN,
|
||||
MODE_AUTO,
|
||||
MODE_NORMAL,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_humidifier_service(accessory: Accessory) -> Service:
|
||||
"""Define a humidifier characteristics as per page 219 of HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.HUMIDIFIER_DEHUMIDIFIER)
|
||||
|
||||
service.add_char(CharacteristicsTypes.ACTIVE, value=False)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT)
|
||||
cur_state.value = 0
|
||||
|
||||
cur_state = service.add_char(
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE
|
||||
)
|
||||
cur_state.value = -1
|
||||
|
||||
targ_state = service.add_char(
|
||||
CharacteristicsTypes.TARGET_HUMIDIFIER_DEHUMIDIFIER_STATE
|
||||
)
|
||||
targ_state.value = 0
|
||||
|
||||
cur_state = service.add_char(
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_HUMIDIFIER_THRESHOLD
|
||||
)
|
||||
cur_state.value = 0
|
||||
|
||||
return service
|
||||
|
||||
|
||||
def create_dehumidifier_service(accessory: Accessory) -> Service:
|
||||
"""Define a dehumidifier characteristics as per page 219 of HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.HUMIDIFIER_DEHUMIDIFIER)
|
||||
|
||||
service.add_char(CharacteristicsTypes.ACTIVE, value=False)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT)
|
||||
cur_state.value = 0
|
||||
|
||||
cur_state = service.add_char(
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE
|
||||
)
|
||||
cur_state.value = -1
|
||||
|
||||
targ_state = service.add_char(
|
||||
CharacteristicsTypes.TARGET_HUMIDIFIER_DEHUMIDIFIER_STATE
|
||||
)
|
||||
targ_state.value = 0
|
||||
|
||||
targ_state = service.add_char(
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_DEHUMIDIFIER_THRESHOLD
|
||||
)
|
||||
targ_state.value = 0
|
||||
|
||||
return service
|
||||
|
||||
|
||||
async def test_humidifier_active_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a HomeKit humidifier on and off again."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_humidifier_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
HUMIDIFIER_DOMAIN, "turn_on", {"entity_id": helper.entity_id}, blocking=True
|
||||
)
|
||||
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{CharacteristicsTypes.ACTIVE: 1},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
HUMIDIFIER_DOMAIN, "turn_off", {"entity_id": helper.entity_id}, blocking=True
|
||||
)
|
||||
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{CharacteristicsTypes.ACTIVE: 0},
|
||||
)
|
||||
|
||||
|
||||
async def test_dehumidifier_active_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a HomeKit dehumidifier on and off again."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_dehumidifier_service
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
HUMIDIFIER_DOMAIN, "turn_on", {"entity_id": helper.entity_id}, blocking=True
|
||||
)
|
||||
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{CharacteristicsTypes.ACTIVE: 1},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
HUMIDIFIER_DOMAIN, "turn_off", {"entity_id": helper.entity_id}, blocking=True
|
||||
)
|
||||
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{CharacteristicsTypes.ACTIVE: 0},
|
||||
)
|
||||
|
||||
|
||||
async def test_humidifier_read_humidity(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit humidifier accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_humidifier_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: True,
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_HUMIDIFIER_THRESHOLD: 75,
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT: 45,
|
||||
},
|
||||
)
|
||||
assert state.state == "on"
|
||||
assert state.attributes["humidity"] == 75
|
||||
assert state.attributes["current_humidity"] == 45
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: False,
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_HUMIDIFIER_THRESHOLD: 10,
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT: 30,
|
||||
},
|
||||
)
|
||||
assert state.state == "off"
|
||||
assert state.attributes["humidity"] == 10
|
||||
assert state.attributes["current_humidity"] == 30
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 3,
|
||||
},
|
||||
)
|
||||
assert state.attributes["humidity"] == 10
|
||||
assert state.attributes["current_humidity"] == 30
|
||||
assert state.state == "off"
|
||||
|
||||
|
||||
async def test_dehumidifier_read_humidity(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit dehumidifier accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_dehumidifier_service
|
||||
)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: True,
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_DEHUMIDIFIER_THRESHOLD: 75,
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT: 45,
|
||||
},
|
||||
)
|
||||
assert state.state == "on"
|
||||
assert state.attributes["humidity"] == 75
|
||||
assert state.attributes["current_humidity"] == 45
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: False,
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_DEHUMIDIFIER_THRESHOLD: 40,
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT: 39,
|
||||
},
|
||||
)
|
||||
assert state.state == "off"
|
||||
assert state.attributes["humidity"] == 40
|
||||
assert state.attributes["current_humidity"] == 39
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 2,
|
||||
},
|
||||
)
|
||||
assert state.attributes["humidity"] == 40
|
||||
|
||||
|
||||
async def test_humidifier_set_humidity(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can set the state of a HomeKit humidifier accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_humidifier_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
HUMIDIFIER_DOMAIN,
|
||||
"set_humidity",
|
||||
{"entity_id": helper.entity_id, "humidity": 20},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{CharacteristicsTypes.RELATIVE_HUMIDITY_HUMIDIFIER_THRESHOLD: 20},
|
||||
)
|
||||
|
||||
|
||||
async def test_dehumidifier_set_humidity(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can set the state of a HomeKit dehumidifier accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_dehumidifier_service
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
HUMIDIFIER_DOMAIN,
|
||||
"set_humidity",
|
||||
{"entity_id": helper.entity_id, "humidity": 20},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{CharacteristicsTypes.RELATIVE_HUMIDITY_DEHUMIDIFIER_THRESHOLD: 20},
|
||||
)
|
||||
|
||||
|
||||
async def test_humidifier_set_mode(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can set the mode of a HomeKit humidifier accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_humidifier_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
HUMIDIFIER_DOMAIN,
|
||||
"set_mode",
|
||||
{"entity_id": helper.entity_id, "mode": MODE_AUTO},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
CharacteristicsTypes.TARGET_HUMIDIFIER_DEHUMIDIFIER_STATE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
HUMIDIFIER_DOMAIN,
|
||||
"set_mode",
|
||||
{"entity_id": helper.entity_id, "mode": MODE_NORMAL},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
CharacteristicsTypes.TARGET_HUMIDIFIER_DEHUMIDIFIER_STATE: 1,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_dehumidifier_set_mode(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can set the mode of a HomeKit dehumidifier accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_dehumidifier_service
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
HUMIDIFIER_DOMAIN,
|
||||
"set_mode",
|
||||
{"entity_id": helper.entity_id, "mode": MODE_AUTO},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
CharacteristicsTypes.TARGET_HUMIDIFIER_DEHUMIDIFIER_STATE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
HUMIDIFIER_DOMAIN,
|
||||
"set_mode",
|
||||
{"entity_id": helper.entity_id, "mode": MODE_NORMAL},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
CharacteristicsTypes.TARGET_HUMIDIFIER_DEHUMIDIFIER_STATE: 2,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_humidifier_read_only_mode(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit humidifier accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_humidifier_service)
|
||||
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.attributes["mode"] == "normal"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 0,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 1,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "auto"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 2,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 3,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
|
||||
|
||||
async def test_dehumidifier_read_only_mode(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit dehumidifier accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_dehumidifier_service
|
||||
)
|
||||
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.attributes["mode"] == "normal"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 0,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 1,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "auto"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 2,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 3,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
|
||||
|
||||
async def test_humidifier_target_humidity_modes(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit humidifier accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_humidifier_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_HUMIDIFIER_THRESHOLD: 37,
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT: 51,
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 1,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "auto"
|
||||
assert state.attributes["humidity"] == 37
|
||||
assert state.attributes["current_humidity"] == 51
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 3,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
assert state.attributes["humidity"] == 37
|
||||
assert state.attributes["current_humidity"] == 51
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 2,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
assert state.attributes["humidity"] == 37
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 0,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
assert state.attributes["humidity"] == 37
|
||||
|
||||
|
||||
async def test_dehumidifier_target_humidity_modes(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit dehumidifier accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_dehumidifier_service
|
||||
)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_DEHUMIDIFIER_THRESHOLD: 73,
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT: 51,
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 1,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "auto"
|
||||
assert state.attributes["humidity"] == 73
|
||||
assert state.attributes["current_humidity"] == 51
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 3,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
assert state.attributes["humidity"] == 73
|
||||
assert state.attributes["current_humidity"] == 51
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 2,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
assert state.attributes["humidity"] == 73
|
||||
assert state.attributes["current_humidity"] == 51
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDIFIER_DEHUMIDIFIER,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_HUMIDIFIER_DEHUMIDIFIER_STATE: 0,
|
||||
},
|
||||
)
|
||||
assert state.attributes["mode"] == "normal"
|
||||
assert state.attributes["humidity"] == 73
|
||||
assert state.attributes["current_humidity"] == 51
|
||||
|
||||
|
||||
async def test_migrate_entity_ids(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test that we can migrate humidifier entity ids."""
|
||||
aid = get_next_aid()
|
||||
|
||||
humidifier_entry = entity_registry.async_get_or_create(
|
||||
"humidifier",
|
||||
"homekit_controller",
|
||||
f"homekit-00:00:00:00:00:00-{aid}-8",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_humidifier_service)
|
||||
assert (
|
||||
entity_registry.async_get(humidifier_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8"
|
||||
)
|
||||
305
home-assistant/tests/components/homekit_controller/test_init.py
Normal file
305
home-assistant/tests/components/homekit_controller/test_init.py
Normal file
@@ -0,0 +1,305 @@
|
||||
"""Tests for homekit_controller init."""
|
||||
|
||||
from collections.abc import Callable
|
||||
from datetime import timedelta
|
||||
import pathlib
|
||||
from unittest.mock import patch
|
||||
|
||||
from aiohomekit import AccessoryNotFoundError
|
||||
from aiohomekit.model import Accessory, Transport
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
from aiohomekit.testing import FakePairing
|
||||
from attr import asdict
|
||||
import pytest
|
||||
from syrupy.assertion import SnapshotAssertion
|
||||
|
||||
from homeassistant.components.homekit_controller.const import DOMAIN, ENTITY_MAP
|
||||
from homeassistant.config_entries import ConfigEntryState
|
||||
from homeassistant.const import EVENT_HOMEASSISTANT_STOP, STATE_OFF, STATE_UNAVAILABLE
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import device_registry as dr, entity_registry as er
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.util.dt import utcnow
|
||||
|
||||
from .common import (
|
||||
Helper,
|
||||
setup_accessories_from_file,
|
||||
setup_test_accessories,
|
||||
setup_test_accessories_with_controller,
|
||||
setup_test_component,
|
||||
)
|
||||
|
||||
from tests.common import async_fire_time_changed
|
||||
from tests.typing import WebSocketGenerator
|
||||
|
||||
FIXTURES_DIR = pathlib.Path(__file__).parent / "fixtures"
|
||||
FIXTURES = [path.relative_to(FIXTURES_DIR) for path in FIXTURES_DIR.glob("*.json")]
|
||||
|
||||
ALIVE_DEVICE_NAME = "testdevice"
|
||||
ALIVE_DEVICE_ENTITY_ID = "light.testdevice"
|
||||
|
||||
|
||||
def create_motion_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define motion characteristics as per page 225 of HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.MOTION_SENSOR)
|
||||
cur_state = service.add_char(CharacteristicsTypes.MOTION_DETECTED)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
async def test_unload_on_stop(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test async_unload is called on stop."""
|
||||
await setup_test_component(hass, get_next_aid(), create_motion_sensor_service)
|
||||
with patch(
|
||||
"homeassistant.components.homekit_controller.HKDevice.async_unload"
|
||||
) as async_unlock_mock:
|
||||
hass.bus.async_fire(EVENT_HOMEASSISTANT_STOP)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert async_unlock_mock.called
|
||||
|
||||
|
||||
async def test_async_remove_entry(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test unpairing a component."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_motion_sensor_service
|
||||
)
|
||||
controller = helper.pairing.controller
|
||||
|
||||
hkid = "00:00:00:00:00:00"
|
||||
|
||||
assert len(controller.pairings) == 1
|
||||
|
||||
assert hkid in hass.data[ENTITY_MAP].storage_data
|
||||
|
||||
# Remove it via config entry and number of pairings should go down
|
||||
await hass.config_entries.async_remove(helper.config_entry.entry_id)
|
||||
assert len(controller.pairings) == 0
|
||||
|
||||
assert hkid not in hass.data[ENTITY_MAP].storage_data
|
||||
|
||||
|
||||
def create_alive_service(accessory: Accessory) -> Service:
|
||||
"""Create a service to validate we can only remove dead devices."""
|
||||
service = accessory.add_service(ServicesTypes.LIGHTBULB, name=ALIVE_DEVICE_NAME)
|
||||
service.add_char(CharacteristicsTypes.ON)
|
||||
return service
|
||||
|
||||
|
||||
async def test_device_remove_devices(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
entity_registry: er.EntityRegistry,
|
||||
hass_ws_client: WebSocketGenerator,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test we can only remove a device that no longer exists."""
|
||||
assert await async_setup_component(hass, "config", {})
|
||||
helper: Helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_alive_service
|
||||
)
|
||||
config_entry = helper.config_entry
|
||||
entry_id = config_entry.entry_id
|
||||
|
||||
entity = entity_registry.entities[ALIVE_DEVICE_ENTITY_ID]
|
||||
|
||||
live_device_entry = device_registry.async_get(entity.device_id)
|
||||
client = await hass_ws_client(hass)
|
||||
response = await client.remove_device(live_device_entry.id, entry_id)
|
||||
assert not response["success"]
|
||||
|
||||
dead_device_entry = device_registry.async_get_or_create(
|
||||
config_entry_id=config_entry.entry_id,
|
||||
identifiers={("homekit_controller:accessory-id", "E9:88:E7:B8:B4:40:aid:1")},
|
||||
)
|
||||
response = await client.remove_device(dead_device_entry.id, entry_id)
|
||||
assert response["success"]
|
||||
|
||||
|
||||
async def test_offline_device_raises(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int], controller
|
||||
) -> None:
|
||||
"""Test an offline device raises ConfigEntryNotReady."""
|
||||
|
||||
is_connected = False
|
||||
aid = get_next_aid()
|
||||
|
||||
class OfflineFakePairing(FakePairing):
|
||||
"""Fake pairing that can flip is_connected."""
|
||||
|
||||
@property
|
||||
def is_connected(self):
|
||||
nonlocal is_connected
|
||||
return is_connected
|
||||
|
||||
@property
|
||||
def is_available(self):
|
||||
return self.is_connected
|
||||
|
||||
async def async_populate_accessories_state(self, *args, **kwargs):
|
||||
nonlocal is_connected
|
||||
if not is_connected:
|
||||
raise AccessoryNotFoundError("any")
|
||||
await super().async_populate_accessories_state(*args, **kwargs)
|
||||
|
||||
async def get_characteristics(self, chars, *args, **kwargs):
|
||||
nonlocal is_connected
|
||||
if not is_connected:
|
||||
raise AccessoryNotFoundError("any")
|
||||
return {}
|
||||
|
||||
accessory = Accessory.create_with_info(
|
||||
aid, "TestDevice", "example.com", "Test", "0001", "0.1"
|
||||
)
|
||||
create_alive_service(accessory)
|
||||
|
||||
with patch("aiohomekit.testing.FakePairing", OfflineFakePairing):
|
||||
await async_setup_component(hass, DOMAIN, {})
|
||||
config_entry, _ = await setup_test_accessories_with_controller(
|
||||
hass, [accessory], controller
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert config_entry.state is ConfigEntryState.SETUP_RETRY
|
||||
|
||||
is_connected = True
|
||||
|
||||
async_fire_time_changed(hass, utcnow() + timedelta(seconds=10))
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert config_entry.state is ConfigEntryState.LOADED
|
||||
assert hass.states.get("light.testdevice").state == STATE_OFF
|
||||
|
||||
|
||||
async def test_ble_device_only_checks_is_available(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int], controller
|
||||
) -> None:
|
||||
"""Test a BLE device only checks is_available."""
|
||||
|
||||
is_available = False
|
||||
aid = get_next_aid()
|
||||
|
||||
class FakeBLEPairing(FakePairing):
|
||||
"""Fake BLE pairing that can flip is_available."""
|
||||
|
||||
@property
|
||||
def transport(self):
|
||||
return Transport.BLE
|
||||
|
||||
@property
|
||||
def is_connected(self):
|
||||
return False
|
||||
|
||||
@property
|
||||
def is_available(self):
|
||||
nonlocal is_available
|
||||
return is_available
|
||||
|
||||
async def async_populate_accessories_state(self, *args, **kwargs):
|
||||
nonlocal is_available
|
||||
if not is_available:
|
||||
raise AccessoryNotFoundError("any")
|
||||
await super().async_populate_accessories_state(*args, **kwargs)
|
||||
|
||||
async def get_characteristics(self, chars, *args, **kwargs):
|
||||
nonlocal is_available
|
||||
if not is_available:
|
||||
raise AccessoryNotFoundError("any")
|
||||
return {}
|
||||
|
||||
accessory = Accessory.create_with_info(
|
||||
aid, "TestDevice", "example.com", "Test", "0001", "0.1"
|
||||
)
|
||||
create_alive_service(accessory)
|
||||
|
||||
with patch("aiohomekit.testing.FakePairing", FakeBLEPairing):
|
||||
await async_setup_component(hass, DOMAIN, {})
|
||||
config_entry, _ = await setup_test_accessories_with_controller(
|
||||
hass, [accessory], controller
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert config_entry.state is ConfigEntryState.SETUP_RETRY
|
||||
|
||||
is_available = True
|
||||
|
||||
async_fire_time_changed(hass, utcnow() + timedelta(seconds=10))
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert config_entry.state is ConfigEntryState.LOADED
|
||||
assert hass.states.get("light.testdevice").state == STATE_OFF
|
||||
|
||||
is_available = False
|
||||
async_fire_time_changed(hass, utcnow() + timedelta(hours=1))
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert hass.states.get("light.testdevice").state == STATE_UNAVAILABLE
|
||||
|
||||
is_available = True
|
||||
async_fire_time_changed(hass, utcnow() + timedelta(hours=1))
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert hass.states.get("light.testdevice").state == STATE_OFF
|
||||
|
||||
|
||||
@pytest.mark.parametrize("example", FIXTURES, ids=lambda val: str(val.stem))
|
||||
async def test_snapshots(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
snapshot: SnapshotAssertion,
|
||||
example: str,
|
||||
) -> None:
|
||||
"""Detect regressions in enumerating a homekit accessory database and building entities."""
|
||||
accessories = await setup_accessories_from_file(hass, example)
|
||||
config_entry, _ = await setup_test_accessories(hass, accessories)
|
||||
|
||||
registry_devices = dr.async_entries_for_config_entry(
|
||||
device_registry, config_entry.entry_id
|
||||
)
|
||||
registry_devices.sort(key=lambda device: device.name)
|
||||
|
||||
devices = []
|
||||
|
||||
for device in registry_devices:
|
||||
entities = []
|
||||
|
||||
registry_entities = er.async_entries_for_device(
|
||||
entity_registry,
|
||||
device_id=device.id,
|
||||
include_disabled_entities=True,
|
||||
)
|
||||
registry_entities.sort(key=lambda entity: entity.entity_id)
|
||||
|
||||
for entity_entry in registry_entities:
|
||||
state_dict = None
|
||||
if state := hass.states.get(entity_entry.entity_id):
|
||||
state_dict = dict(state.as_dict())
|
||||
state_dict.pop("context", None)
|
||||
state_dict.pop("last_changed", None)
|
||||
state_dict.pop("last_reported", None)
|
||||
state_dict.pop("last_updated", None)
|
||||
|
||||
state_dict["attributes"] = dict(state_dict["attributes"])
|
||||
state_dict["attributes"].pop("access_token", None)
|
||||
state_dict["attributes"].pop("entity_picture", None)
|
||||
|
||||
entry = asdict(entity_entry)
|
||||
entry.pop("id", None)
|
||||
entry.pop("device_id", None)
|
||||
entry.pop("created_at", None)
|
||||
entry.pop("modified_at", None)
|
||||
entry.pop("_cache", None)
|
||||
|
||||
entities.append({"entry": entry, "state": state_dict})
|
||||
|
||||
device_dict = asdict(device)
|
||||
device_dict.pop("id", None)
|
||||
device_dict.pop("via_device_id", None)
|
||||
device_dict.pop("created_at", None)
|
||||
device_dict.pop("modified_at", None)
|
||||
device_dict.pop("_cache", None)
|
||||
|
||||
devices.append({"device": device_dict, "entities": entities})
|
||||
|
||||
assert snapshot == devices
|
||||
477
home-assistant/tests/components/homekit_controller/test_light.py
Normal file
477
home-assistant/tests/components/homekit_controller/test_light.py
Normal file
@@ -0,0 +1,477 @@
|
||||
"""Basic checks for HomeKitSwitch."""
|
||||
|
||||
from collections.abc import Callable
|
||||
from unittest import mock
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
from aiohomekit.testing import FakeController
|
||||
|
||||
from homeassistant.components.homekit_controller.const import KNOWN_DEVICES
|
||||
from homeassistant.components.light import (
|
||||
ATTR_COLOR_MODE,
|
||||
ATTR_SUPPORTED_COLOR_MODES,
|
||||
ColorMode,
|
||||
)
|
||||
from homeassistant.const import ATTR_SUPPORTED_FEATURES, STATE_UNAVAILABLE
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
LIGHT_BULB_NAME = "TestDevice"
|
||||
LIGHT_BULB_ENTITY_ID = "light.testdevice"
|
||||
|
||||
|
||||
def create_lightbulb_service(accessory: Accessory) -> Service:
|
||||
"""Define lightbulb characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.LIGHTBULB, name=LIGHT_BULB_NAME)
|
||||
|
||||
on_char = service.add_char(CharacteristicsTypes.ON)
|
||||
on_char.value = 0
|
||||
|
||||
brightness = service.add_char(CharacteristicsTypes.BRIGHTNESS)
|
||||
brightness.value = 0
|
||||
|
||||
return service
|
||||
|
||||
|
||||
def create_lightbulb_service_with_hs(accessory: Accessory) -> Service:
|
||||
"""Define a lightbulb service with hue + saturation."""
|
||||
service = create_lightbulb_service(accessory)
|
||||
|
||||
hue = service.add_char(CharacteristicsTypes.HUE)
|
||||
hue.value = 0
|
||||
|
||||
saturation = service.add_char(CharacteristicsTypes.SATURATION)
|
||||
saturation.value = 0
|
||||
|
||||
return service
|
||||
|
||||
|
||||
def create_lightbulb_service_with_color_temp(accessory: Accessory) -> Service:
|
||||
"""Define a lightbulb service with color temp."""
|
||||
service = create_lightbulb_service(accessory)
|
||||
|
||||
color_temp = service.add_char(CharacteristicsTypes.COLOR_TEMPERATURE)
|
||||
color_temp.value = 0
|
||||
|
||||
return service
|
||||
|
||||
|
||||
async def test_switch_change_light_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a HomeKit light on and off again."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_lightbulb_service_with_hs
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"light",
|
||||
"turn_on",
|
||||
{"entity_id": "light.testdevice", "brightness": 255, "hs_color": [4, 5]},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.BRIGHTNESS: 100,
|
||||
CharacteristicsTypes.HUE: 4,
|
||||
CharacteristicsTypes.SATURATION: 5,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"light",
|
||||
"turn_on",
|
||||
{"entity_id": "light.testdevice", "brightness": 255, "color_temp": 300},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.BRIGHTNESS: 100,
|
||||
CharacteristicsTypes.HUE: 27,
|
||||
CharacteristicsTypes.SATURATION: 49,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"light", "turn_off", {"entity_id": "light.testdevice"}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: False,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_switch_change_light_state_color_temp(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn change color_temp."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_lightbulb_service_with_color_temp
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"light",
|
||||
"turn_on",
|
||||
{"entity_id": "light.testdevice", "brightness": 255, "color_temp": 400},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.BRIGHTNESS: 100,
|
||||
CharacteristicsTypes.COLOR_TEMPERATURE: 400,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_switch_read_light_state_dimmer(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit light accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_lightbulb_service)
|
||||
|
||||
# Initial state is that the light is off
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
assert state.attributes[ATTR_COLOR_MODE] is None
|
||||
assert state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [ColorMode.BRIGHTNESS]
|
||||
assert state.attributes[ATTR_SUPPORTED_FEATURES] == 0
|
||||
|
||||
# Simulate that someone switched on the device in the real world not via HA
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.BRIGHTNESS: 100,
|
||||
},
|
||||
)
|
||||
assert state.state == "on"
|
||||
assert state.attributes["brightness"] == 255
|
||||
assert state.attributes[ATTR_COLOR_MODE] == ColorMode.BRIGHTNESS
|
||||
assert state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [ColorMode.BRIGHTNESS]
|
||||
assert state.attributes[ATTR_SUPPORTED_FEATURES] == 0
|
||||
|
||||
# Simulate that device switched off in the real world not via HA
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: False,
|
||||
},
|
||||
)
|
||||
assert state.state == "off"
|
||||
|
||||
|
||||
async def test_switch_push_light_state_dimmer(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit light accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_lightbulb_service)
|
||||
|
||||
# Initial state is that the light is off
|
||||
state = hass.states.get(LIGHT_BULB_ENTITY_ID)
|
||||
assert state.state == "off"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.BRIGHTNESS: 100,
|
||||
},
|
||||
)
|
||||
assert state.state == "on"
|
||||
assert state.attributes["brightness"] == 255
|
||||
|
||||
# Simulate that device switched off in the real world not via HA
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: False,
|
||||
},
|
||||
)
|
||||
assert state.state == "off"
|
||||
|
||||
|
||||
async def test_switch_read_light_state_hs(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit light accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_lightbulb_service_with_hs
|
||||
)
|
||||
|
||||
# Initial state is that the light is off
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
assert state.attributes[ATTR_COLOR_MODE] is None
|
||||
assert state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [
|
||||
ColorMode.COLOR_TEMP,
|
||||
ColorMode.HS,
|
||||
]
|
||||
assert state.attributes[ATTR_SUPPORTED_FEATURES] == 0
|
||||
|
||||
# Simulate that someone switched on the device in the real world not via HA
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.BRIGHTNESS: 100,
|
||||
CharacteristicsTypes.HUE: 4,
|
||||
CharacteristicsTypes.SATURATION: 5,
|
||||
},
|
||||
)
|
||||
assert state.state == "on"
|
||||
assert state.attributes["brightness"] == 255
|
||||
assert state.attributes["hs_color"] == (4, 5)
|
||||
assert state.attributes[ATTR_COLOR_MODE] == ColorMode.HS
|
||||
assert state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [
|
||||
ColorMode.COLOR_TEMP,
|
||||
ColorMode.HS,
|
||||
]
|
||||
assert state.attributes[ATTR_SUPPORTED_FEATURES] == 0
|
||||
|
||||
# Simulate that device switched off in the real world not via HA
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: False,
|
||||
},
|
||||
)
|
||||
assert state.state == "off"
|
||||
|
||||
# Simulate that device switched on in the real world not via HA
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.HUE: 6,
|
||||
CharacteristicsTypes.SATURATION: 7,
|
||||
},
|
||||
)
|
||||
assert state.state == "on"
|
||||
assert state.attributes["brightness"] == 255
|
||||
assert state.attributes["hs_color"] == (6, 7)
|
||||
assert state.attributes[ATTR_COLOR_MODE] == ColorMode.HS
|
||||
assert state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [
|
||||
ColorMode.COLOR_TEMP,
|
||||
ColorMode.HS,
|
||||
]
|
||||
assert state.attributes[ATTR_SUPPORTED_FEATURES] == 0
|
||||
|
||||
|
||||
async def test_switch_push_light_state_hs(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit light accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_lightbulb_service_with_hs
|
||||
)
|
||||
|
||||
# Initial state is that the light is off
|
||||
state = hass.states.get(LIGHT_BULB_ENTITY_ID)
|
||||
assert state.state == "off"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.BRIGHTNESS: 100,
|
||||
CharacteristicsTypes.HUE: 4,
|
||||
CharacteristicsTypes.SATURATION: 5,
|
||||
},
|
||||
)
|
||||
assert state.state == "on"
|
||||
assert state.attributes["brightness"] == 255
|
||||
assert state.attributes["hs_color"] == (4, 5)
|
||||
|
||||
# Simulate that device switched off in the real world not via HA
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: False,
|
||||
},
|
||||
)
|
||||
assert state.state == "off"
|
||||
|
||||
|
||||
async def test_switch_read_light_state_color_temp(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the color_temp of a light accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_lightbulb_service_with_color_temp
|
||||
)
|
||||
|
||||
# Initial state is that the light is off
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
assert state.attributes[ATTR_COLOR_MODE] is None
|
||||
assert state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [ColorMode.COLOR_TEMP]
|
||||
assert state.attributes[ATTR_SUPPORTED_FEATURES] == 0
|
||||
|
||||
# Simulate that someone switched on the device in the real world not via HA
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.BRIGHTNESS: 100,
|
||||
CharacteristicsTypes.COLOR_TEMPERATURE: 400,
|
||||
},
|
||||
)
|
||||
assert state.state == "on"
|
||||
assert state.attributes["brightness"] == 255
|
||||
assert state.attributes["color_temp"] == 400
|
||||
assert state.attributes[ATTR_COLOR_MODE] == ColorMode.COLOR_TEMP
|
||||
assert state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [ColorMode.COLOR_TEMP]
|
||||
assert state.attributes[ATTR_SUPPORTED_FEATURES] == 0
|
||||
|
||||
|
||||
async def test_switch_push_light_state_color_temp(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit light accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_lightbulb_service_with_color_temp
|
||||
)
|
||||
|
||||
# Initial state is that the light is off
|
||||
state = hass.states.get(LIGHT_BULB_ENTITY_ID)
|
||||
assert state.state == "off"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.BRIGHTNESS: 100,
|
||||
CharacteristicsTypes.COLOR_TEMPERATURE: 400,
|
||||
},
|
||||
)
|
||||
assert state.state == "on"
|
||||
assert state.attributes["brightness"] == 255
|
||||
assert state.attributes["color_temp"] == 400
|
||||
|
||||
|
||||
async def test_light_becomes_unavailable_but_recovers(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test transition to and from unavailable state."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_lightbulb_service_with_color_temp
|
||||
)
|
||||
|
||||
# Initial state is that the light is off
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
|
||||
# Test device goes offline
|
||||
helper.pairing.available = False
|
||||
with mock.patch.object(
|
||||
FakeController,
|
||||
"async_reachable",
|
||||
return_value=False,
|
||||
):
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "unavailable"
|
||||
|
||||
# Simulate that someone switched on the device in the real world not via HA
|
||||
helper.pairing.available = True
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHTBULB,
|
||||
{
|
||||
CharacteristicsTypes.ON: True,
|
||||
CharacteristicsTypes.BRIGHTNESS: 100,
|
||||
CharacteristicsTypes.COLOR_TEMPERATURE: 400,
|
||||
},
|
||||
)
|
||||
assert state.state == "on"
|
||||
assert state.attributes["brightness"] == 255
|
||||
assert state.attributes["color_temp"] == 400
|
||||
|
||||
|
||||
async def test_light_unloaded_removed(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test entity and HKDevice are correctly unloaded and removed."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_lightbulb_service_with_color_temp
|
||||
)
|
||||
|
||||
# Initial state is that the light is off
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "off"
|
||||
|
||||
unload_result = await hass.config_entries.async_unload(helper.config_entry.entry_id)
|
||||
assert unload_result is True
|
||||
|
||||
# Make sure entity is set to unavailable state
|
||||
assert hass.states.get(helper.entity_id).state == STATE_UNAVAILABLE
|
||||
|
||||
# Make sure HKDevice is no longer set to poll this accessory
|
||||
conn = hass.data[KNOWN_DEVICES]["00:00:00:00:00:00"]
|
||||
assert not conn.pollable_characteristics
|
||||
|
||||
await hass.config_entries.async_remove(helper.config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
# Make sure entity is removed
|
||||
assert hass.states.get(helper.entity_id) is None
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we can migrate a light unique id."""
|
||||
aid = get_next_aid()
|
||||
light_entry = entity_registry.async_get_or_create(
|
||||
"light",
|
||||
"homekit_controller",
|
||||
f"homekit-00:00:00:00:00:00-{aid}-8",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_lightbulb_service_with_color_temp)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(light_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8"
|
||||
)
|
||||
|
||||
|
||||
async def test_only_migrate_once(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we handle migration happening after an upgrade and than a downgrade and then an upgrade."""
|
||||
aid = get_next_aid()
|
||||
old_light_entry = entity_registry.async_get_or_create(
|
||||
"light",
|
||||
"homekit_controller",
|
||||
f"homekit-00:00:00:00:00:00-{aid}-8",
|
||||
)
|
||||
new_light_entry = entity_registry.async_get_or_create(
|
||||
"light",
|
||||
"homekit_controller",
|
||||
f"00:00:00:00:00:00_{aid}_8",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_lightbulb_service_with_color_temp)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(old_light_entry.entity_id).unique_id
|
||||
== f"homekit-00:00:00:00:00:00-{aid}-8"
|
||||
)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(new_light_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8"
|
||||
)
|
||||
145
home-assistant/tests/components/homekit_controller/test_lock.py
Normal file
145
home-assistant/tests/components/homekit_controller/test_lock.py
Normal file
@@ -0,0 +1,145 @@
|
||||
"""Basic checks for HomeKitLock."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_lock_service(accessory: Accessory) -> Service:
|
||||
"""Define a lock characteristics as per page 219 of HAP spec."""
|
||||
service = accessory.add_service(ServicesTypes.LOCK_MECHANISM)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.LOCK_MECHANISM_CURRENT_STATE)
|
||||
cur_state.value = 0
|
||||
|
||||
targ_state = service.add_char(CharacteristicsTypes.LOCK_MECHANISM_TARGET_STATE)
|
||||
targ_state.value = 0
|
||||
|
||||
# According to the spec, a battery-level characteristic is normally
|
||||
# part of a separate service. However as the code was written (which
|
||||
# predates this test) the battery level would have to be part of the lock
|
||||
# service as it is here.
|
||||
targ_state = service.add_char(CharacteristicsTypes.BATTERY_LEVEL)
|
||||
targ_state.value = 50
|
||||
|
||||
return service
|
||||
|
||||
|
||||
async def test_switch_change_lock_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a HomeKit lock on and off again."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_lock_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
"lock", "lock", {"entity_id": "lock.testdevice"}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.LOCK_MECHANISM,
|
||||
{
|
||||
CharacteristicsTypes.LOCK_MECHANISM_TARGET_STATE: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"lock", "unlock", {"entity_id": "lock.testdevice"}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.LOCK_MECHANISM,
|
||||
{
|
||||
CharacteristicsTypes.LOCK_MECHANISM_TARGET_STATE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_switch_read_lock_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit lock accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_lock_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LOCK_MECHANISM,
|
||||
{
|
||||
CharacteristicsTypes.LOCK_MECHANISM_CURRENT_STATE: 0,
|
||||
CharacteristicsTypes.LOCK_MECHANISM_TARGET_STATE: 0,
|
||||
},
|
||||
)
|
||||
assert state.state == "unlocked"
|
||||
assert state.attributes["battery_level"] == 50
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LOCK_MECHANISM,
|
||||
{
|
||||
CharacteristicsTypes.LOCK_MECHANISM_CURRENT_STATE: 1,
|
||||
CharacteristicsTypes.LOCK_MECHANISM_TARGET_STATE: 1,
|
||||
},
|
||||
)
|
||||
assert state.state == "locked"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.LOCK_MECHANISM,
|
||||
{
|
||||
CharacteristicsTypes.LOCK_MECHANISM_CURRENT_STATE: 2,
|
||||
CharacteristicsTypes.LOCK_MECHANISM_TARGET_STATE: 1,
|
||||
},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "jammed"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.LOCK_MECHANISM,
|
||||
{
|
||||
CharacteristicsTypes.LOCK_MECHANISM_CURRENT_STATE: 3,
|
||||
CharacteristicsTypes.LOCK_MECHANISM_TARGET_STATE: 1,
|
||||
},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "unknown"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.LOCK_MECHANISM,
|
||||
{
|
||||
CharacteristicsTypes.LOCK_MECHANISM_CURRENT_STATE: 0,
|
||||
CharacteristicsTypes.LOCK_MECHANISM_TARGET_STATE: 1,
|
||||
},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "locking"
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.LOCK_MECHANISM,
|
||||
{
|
||||
CharacteristicsTypes.LOCK_MECHANISM_CURRENT_STATE: 1,
|
||||
CharacteristicsTypes.LOCK_MECHANISM_TARGET_STATE: 0,
|
||||
},
|
||||
)
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "unlocking"
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we can migrate a lock unique id."""
|
||||
aid = get_next_aid()
|
||||
lock_entry = entity_registry.async_get_or_create(
|
||||
"lock",
|
||||
"homekit_controller",
|
||||
f"homekit-00:00:00:00:00:00-{aid}-8",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_lock_service)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(lock_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8"
|
||||
)
|
||||
@@ -0,0 +1,410 @@
|
||||
"""Basic checks for HomeKit motion sensors and contact sensors."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import (
|
||||
CharacteristicPermissions,
|
||||
CharacteristicsTypes,
|
||||
)
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
import pytest
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_tv_service(accessory: Accessory) -> Service:
|
||||
"""Define tv characteristics.
|
||||
|
||||
The TV is not currently documented publicly - this is based on observing really TV's that have HomeKit support.
|
||||
"""
|
||||
tv_service = accessory.add_service(ServicesTypes.TELEVISION)
|
||||
|
||||
tv_service.add_char(CharacteristicsTypes.ACTIVE, value=True)
|
||||
|
||||
cur_state = tv_service.add_char(CharacteristicsTypes.CURRENT_MEDIA_STATE)
|
||||
cur_state.value = 0
|
||||
cur_state.perms.append(CharacteristicPermissions.events)
|
||||
|
||||
remote = tv_service.add_char(CharacteristicsTypes.REMOTE_KEY)
|
||||
remote.value = None
|
||||
remote.perms.append(CharacteristicPermissions.paired_write)
|
||||
remote.perms.append(CharacteristicPermissions.events)
|
||||
|
||||
# Add a HDMI 1 channel
|
||||
input_source_1 = accessory.add_service(ServicesTypes.INPUT_SOURCE)
|
||||
input_source_1.add_char(CharacteristicsTypes.IDENTIFIER, value=1)
|
||||
input_source_1.add_char(CharacteristicsTypes.CONFIGURED_NAME, value="HDMI 1")
|
||||
tv_service.add_linked_service(input_source_1)
|
||||
|
||||
# Add a HDMI 2 channel
|
||||
input_source_2 = accessory.add_service(ServicesTypes.INPUT_SOURCE)
|
||||
input_source_2.add_char(CharacteristicsTypes.IDENTIFIER, value=2)
|
||||
input_source_2.add_char(CharacteristicsTypes.CONFIGURED_NAME, value="HDMI 2")
|
||||
tv_service.add_linked_service(input_source_2)
|
||||
|
||||
# Support switching channels
|
||||
active_identifier = tv_service.add_char(CharacteristicsTypes.ACTIVE_IDENTIFIER)
|
||||
active_identifier.value = 1
|
||||
active_identifier.perms.append(CharacteristicPermissions.paired_write)
|
||||
|
||||
return tv_service
|
||||
|
||||
|
||||
def create_tv_service_with_target_media_state(accessory: Accessory) -> Service:
|
||||
"""Define a TV service that can play/pause/stop without generate remote events."""
|
||||
service = create_tv_service(accessory)
|
||||
|
||||
tms = service.add_char(CharacteristicsTypes.TARGET_MEDIA_STATE)
|
||||
tms.value = None
|
||||
tms.perms.append(CharacteristicPermissions.paired_write)
|
||||
|
||||
return service
|
||||
|
||||
|
||||
async def test_tv_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit fan accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_tv_service)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 0,
|
||||
},
|
||||
)
|
||||
assert state.state == "playing"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 1,
|
||||
},
|
||||
)
|
||||
assert state.state == "paused"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 2,
|
||||
},
|
||||
)
|
||||
assert state.state == "idle"
|
||||
|
||||
|
||||
async def test_tv_read_sources(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the input source of a HomeKit TV."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_tv_service)
|
||||
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.attributes["source"] == "HDMI 1"
|
||||
assert state.attributes["source_list"] == ["HDMI 1", "HDMI 2"]
|
||||
|
||||
|
||||
async def test_play_remote_key(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can play media on a media player."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_tv_service)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"media_play",
|
||||
{"entity_id": "media_player.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.REMOTE_KEY: 11,
|
||||
},
|
||||
)
|
||||
|
||||
# Second time should be a no-op
|
||||
await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 0,
|
||||
CharacteristicsTypes.REMOTE_KEY: None,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"media_play",
|
||||
{"entity_id": "media_player.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.REMOTE_KEY: None,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_pause_remote_key(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can pause a media player."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_tv_service)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"media_pause",
|
||||
{"entity_id": "media_player.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.REMOTE_KEY: 11,
|
||||
},
|
||||
)
|
||||
|
||||
# Second time should be a no-op
|
||||
await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 1,
|
||||
CharacteristicsTypes.REMOTE_KEY: None,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"media_pause",
|
||||
{"entity_id": "media_player.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.REMOTE_KEY: None,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_play(hass: HomeAssistant, get_next_aid: Callable[[], int]) -> None:
|
||||
"""Test that we can play media on a media player."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_tv_service_with_target_media_state
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"media_play",
|
||||
{"entity_id": "media_player.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.REMOTE_KEY: None,
|
||||
CharacteristicsTypes.TARGET_MEDIA_STATE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
# Second time should be a no-op
|
||||
await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 0,
|
||||
CharacteristicsTypes.TARGET_MEDIA_STATE: None,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"media_play",
|
||||
{"entity_id": "media_player.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.REMOTE_KEY: None,
|
||||
CharacteristicsTypes.TARGET_MEDIA_STATE: None,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_pause(hass: HomeAssistant, get_next_aid: Callable[[], int]) -> None:
|
||||
"""Test that we can turn pause a media player."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_tv_service_with_target_media_state
|
||||
)
|
||||
|
||||
await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"media_pause",
|
||||
{"entity_id": "media_player.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.REMOTE_KEY: None,
|
||||
CharacteristicsTypes.TARGET_MEDIA_STATE: 1,
|
||||
},
|
||||
)
|
||||
|
||||
# Second time should be a no-op
|
||||
await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 1,
|
||||
CharacteristicsTypes.REMOTE_KEY: None,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"media_pause",
|
||||
{"entity_id": "media_player.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.REMOTE_KEY: None,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_stop(hass: HomeAssistant, get_next_aid: Callable[[], int]) -> None:
|
||||
"""Test that we can stop a media player."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_tv_service_with_target_media_state
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"media_stop",
|
||||
{"entity_id": "media_player.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.TARGET_MEDIA_STATE: 2,
|
||||
},
|
||||
)
|
||||
|
||||
# Second time should be a no-op
|
||||
await helper.async_update(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.CURRENT_MEDIA_STATE: 2,
|
||||
CharacteristicsTypes.TARGET_MEDIA_STATE: None,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"media_stop",
|
||||
{"entity_id": "media_player.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.REMOTE_KEY: None,
|
||||
CharacteristicsTypes.TARGET_MEDIA_STATE: None,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_tv_set_source(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can set the input source of a HomeKit TV."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_tv_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"select_source",
|
||||
{"entity_id": "media_player.testdevice", "source": "HDMI 2"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.TELEVISION,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE_IDENTIFIER: 2,
|
||||
},
|
||||
)
|
||||
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.attributes["source"] == "HDMI 2"
|
||||
|
||||
|
||||
async def test_tv_set_source_fail(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can set the input source of a HomeKit TV."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_tv_service)
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
await hass.services.async_call(
|
||||
"media_player",
|
||||
"select_source",
|
||||
{"entity_id": "media_player.testdevice", "source": "HDMI 999"},
|
||||
blocking=True,
|
||||
)
|
||||
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.attributes["source"] == "HDMI 1"
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we can migrate a media_player unique id."""
|
||||
aid = get_next_aid()
|
||||
media_player_entry = entity_registry.async_get_or_create(
|
||||
"media_player",
|
||||
"homekit_controller",
|
||||
f"homekit-00:00:00:00:00:00-{aid}-8",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_tv_service_with_target_media_state)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(media_player_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8"
|
||||
)
|
||||
@@ -0,0 +1,124 @@
|
||||
"""Basic checks for HomeKit sensor."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import Helper, setup_test_component
|
||||
|
||||
|
||||
def create_switch_with_spray_level(accessory: Accessory) -> Service:
|
||||
"""Define battery level characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.OUTLET)
|
||||
|
||||
spray_level = service.add_char(
|
||||
CharacteristicsTypes.VENDOR_VOCOLINC_HUMIDIFIER_SPRAY_LEVEL
|
||||
)
|
||||
|
||||
spray_level.perms.append("ev")
|
||||
spray_level.value = 1
|
||||
spray_level.minStep = 1
|
||||
spray_level.minValue = 1
|
||||
spray_level.maxValue = 5
|
||||
spray_level.format = "float"
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.ON)
|
||||
cur_state.value = True
|
||||
|
||||
return service
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we can migrate a number unique id."""
|
||||
aid = get_next_aid()
|
||||
number = entity_registry.async_get_or_create(
|
||||
"number",
|
||||
"homekit_controller",
|
||||
f"homekit-0001-aid:{aid}-sid:8-cid:9",
|
||||
suggested_object_id="testdevice_spray_quantity",
|
||||
)
|
||||
await setup_test_component(hass, aid, create_switch_with_spray_level)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(number.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8_9"
|
||||
)
|
||||
|
||||
|
||||
async def test_read_number(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test a switch service that has a sensor characteristic is correctly handled."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_switch_with_spray_level
|
||||
)
|
||||
|
||||
# Helper will be for the primary entity, which is the outlet. Make a helper for the sensor.
|
||||
spray_level = Helper(
|
||||
hass,
|
||||
"number.testdevice_spray_quantity",
|
||||
helper.pairing,
|
||||
helper.accessory,
|
||||
helper.config_entry,
|
||||
)
|
||||
|
||||
state = await spray_level.poll_and_get_state()
|
||||
assert state.state == "1"
|
||||
assert state.attributes["step"] == 1
|
||||
assert state.attributes["min"] == 1
|
||||
assert state.attributes["max"] == 5
|
||||
|
||||
state = await spray_level.async_update(
|
||||
ServicesTypes.OUTLET,
|
||||
{CharacteristicsTypes.VENDOR_VOCOLINC_HUMIDIFIER_SPRAY_LEVEL: 5},
|
||||
)
|
||||
assert state.state == "5"
|
||||
|
||||
|
||||
async def test_write_number(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test a switch service that has a sensor characteristic is correctly handled."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_switch_with_spray_level
|
||||
)
|
||||
|
||||
# Helper will be for the primary entity, which is the outlet. Make a helper for the sensor.
|
||||
spray_level = Helper(
|
||||
hass,
|
||||
"number.testdevice_spray_quantity",
|
||||
helper.pairing,
|
||||
helper.accessory,
|
||||
helper.config_entry,
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"number",
|
||||
"set_value",
|
||||
{"entity_id": "number.testdevice_spray_quantity", "value": 5},
|
||||
blocking=True,
|
||||
)
|
||||
spray_level.async_assert_service_values(
|
||||
ServicesTypes.OUTLET,
|
||||
{CharacteristicsTypes.VENDOR_VOCOLINC_HUMIDIFIER_SPRAY_LEVEL: 5},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"number",
|
||||
"set_value",
|
||||
{"entity_id": "number.testdevice_spray_quantity", "value": 3},
|
||||
blocking=True,
|
||||
)
|
||||
spray_level.async_assert_service_values(
|
||||
ServicesTypes.OUTLET,
|
||||
{CharacteristicsTypes.VENDOR_VOCOLINC_HUMIDIFIER_SPRAY_LEVEL: 3},
|
||||
)
|
||||
@@ -0,0 +1,233 @@
|
||||
"""Basic checks for HomeKit select entities."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.characteristics.const import TemperatureDisplayUnits
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import Helper, setup_test_component
|
||||
|
||||
|
||||
def create_service_with_ecobee_mode(accessory: Accessory):
|
||||
"""Define a thermostat with ecobee mode characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.THERMOSTAT, add_required=True)
|
||||
|
||||
current_mode = service.add_char(CharacteristicsTypes.VENDOR_ECOBEE_CURRENT_MODE)
|
||||
current_mode.value = 0
|
||||
current_mode.perms.append("ev")
|
||||
|
||||
service.add_char(CharacteristicsTypes.VENDOR_ECOBEE_SET_HOLD_SCHEDULE)
|
||||
|
||||
return service
|
||||
|
||||
|
||||
def create_service_with_temperature_units(accessory: Accessory):
|
||||
"""Define a thermostat with ecobee mode characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.TEMPERATURE_SENSOR, add_required=True)
|
||||
|
||||
units = service.add_char(CharacteristicsTypes.TEMPERATURE_UNITS)
|
||||
units.value = 0
|
||||
|
||||
return service
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test we can migrate a select unique id."""
|
||||
aid = get_next_aid()
|
||||
select = entity_registry.async_get_or_create(
|
||||
"select",
|
||||
"homekit_controller",
|
||||
f"homekit-0001-aid:{aid}-sid:8-cid:14",
|
||||
suggested_object_id="testdevice_current_mode",
|
||||
)
|
||||
|
||||
await setup_test_component(hass, aid, create_service_with_ecobee_mode)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(select.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8_14"
|
||||
)
|
||||
|
||||
|
||||
async def test_read_current_mode(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that Ecobee mode can be correctly read and show as human readable text."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_service_with_ecobee_mode
|
||||
)
|
||||
|
||||
# Helper will be for the primary entity, which is the service. Make a helper for the sensor.
|
||||
ecobee_mode = Helper(
|
||||
hass,
|
||||
"select.testdevice_current_mode",
|
||||
helper.pairing,
|
||||
helper.accessory,
|
||||
helper.config_entry,
|
||||
)
|
||||
|
||||
state = await ecobee_mode.async_update(
|
||||
ServicesTypes.THERMOSTAT,
|
||||
{
|
||||
CharacteristicsTypes.VENDOR_ECOBEE_CURRENT_MODE: 0,
|
||||
},
|
||||
)
|
||||
assert state.state == "home"
|
||||
|
||||
state = await ecobee_mode.async_update(
|
||||
ServicesTypes.THERMOSTAT,
|
||||
{
|
||||
CharacteristicsTypes.VENDOR_ECOBEE_CURRENT_MODE: 1,
|
||||
},
|
||||
)
|
||||
assert state.state == "sleep"
|
||||
|
||||
state = await ecobee_mode.async_update(
|
||||
ServicesTypes.THERMOSTAT,
|
||||
{
|
||||
CharacteristicsTypes.VENDOR_ECOBEE_CURRENT_MODE: 2,
|
||||
},
|
||||
)
|
||||
assert state.state == "away"
|
||||
|
||||
|
||||
async def test_write_current_mode(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test can set a specific mode."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_service_with_ecobee_mode
|
||||
)
|
||||
helper.accessory.services.first(service_type=ServicesTypes.THERMOSTAT)
|
||||
|
||||
# Helper will be for the primary entity, which is the service. Make a helper for the sensor.
|
||||
current_mode = Helper(
|
||||
hass,
|
||||
"select.testdevice_current_mode",
|
||||
helper.pairing,
|
||||
helper.accessory,
|
||||
helper.config_entry,
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"select",
|
||||
"select_option",
|
||||
{"entity_id": "select.testdevice_current_mode", "option": "home"},
|
||||
blocking=True,
|
||||
)
|
||||
current_mode.async_assert_service_values(
|
||||
ServicesTypes.THERMOSTAT,
|
||||
{CharacteristicsTypes.VENDOR_ECOBEE_SET_HOLD_SCHEDULE: 0},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"select",
|
||||
"select_option",
|
||||
{"entity_id": "select.testdevice_current_mode", "option": "sleep"},
|
||||
blocking=True,
|
||||
)
|
||||
current_mode.async_assert_service_values(
|
||||
ServicesTypes.THERMOSTAT,
|
||||
{CharacteristicsTypes.VENDOR_ECOBEE_SET_HOLD_SCHEDULE: 1},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"select",
|
||||
"select_option",
|
||||
{"entity_id": "select.testdevice_current_mode", "option": "away"},
|
||||
blocking=True,
|
||||
)
|
||||
current_mode.async_assert_service_values(
|
||||
ServicesTypes.THERMOSTAT,
|
||||
{CharacteristicsTypes.VENDOR_ECOBEE_SET_HOLD_SCHEDULE: 2},
|
||||
)
|
||||
|
||||
|
||||
async def test_read_select(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test the generic select can read the current value."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_service_with_temperature_units
|
||||
)
|
||||
|
||||
# Helper will be for the primary entity, which is the service. Make a helper for the sensor.
|
||||
select_entity = Helper(
|
||||
hass,
|
||||
"select.testdevice_temperature_display_units",
|
||||
helper.pairing,
|
||||
helper.accessory,
|
||||
helper.config_entry,
|
||||
)
|
||||
|
||||
state = await select_entity.async_update(
|
||||
ServicesTypes.TEMPERATURE_SENSOR,
|
||||
{
|
||||
CharacteristicsTypes.TEMPERATURE_UNITS: 0,
|
||||
},
|
||||
)
|
||||
assert state.state == "celsius"
|
||||
|
||||
state = await select_entity.async_update(
|
||||
ServicesTypes.TEMPERATURE_SENSOR,
|
||||
{
|
||||
CharacteristicsTypes.TEMPERATURE_UNITS: 1,
|
||||
},
|
||||
)
|
||||
assert state.state == "fahrenheit"
|
||||
|
||||
|
||||
async def test_write_select(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test can set a value."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_service_with_temperature_units
|
||||
)
|
||||
helper.accessory.services.first(service_type=ServicesTypes.THERMOSTAT)
|
||||
|
||||
# Helper will be for the primary entity, which is the service. Make a helper for the sensor.
|
||||
current_mode = Helper(
|
||||
hass,
|
||||
"select.testdevice_temperature_display_units",
|
||||
helper.pairing,
|
||||
helper.accessory,
|
||||
helper.config_entry,
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"select",
|
||||
"select_option",
|
||||
{
|
||||
"entity_id": "select.testdevice_temperature_display_units",
|
||||
"option": "fahrenheit",
|
||||
},
|
||||
blocking=True,
|
||||
)
|
||||
current_mode.async_assert_service_values(
|
||||
ServicesTypes.TEMPERATURE_SENSOR,
|
||||
{CharacteristicsTypes.TEMPERATURE_UNITS: TemperatureDisplayUnits.FAHRENHEIT},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"select",
|
||||
"select_option",
|
||||
{
|
||||
"entity_id": "select.testdevice_temperature_display_units",
|
||||
"option": "celsius",
|
||||
},
|
||||
blocking=True,
|
||||
)
|
||||
current_mode.async_assert_service_values(
|
||||
ServicesTypes.TEMPERATURE_SENSOR,
|
||||
{CharacteristicsTypes.TEMPERATURE_UNITS: TemperatureDisplayUnits.CELSIUS},
|
||||
)
|
||||
@@ -0,0 +1,474 @@
|
||||
"""Basic checks for HomeKit sensor."""
|
||||
|
||||
from collections.abc import Callable
|
||||
from unittest.mock import patch
|
||||
|
||||
from aiohomekit.model import Accessory, Transport
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.characteristics.const import ThreadNodeCapabilities, ThreadStatus
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
from aiohomekit.protocol.statuscodes import HapStatusCode
|
||||
from aiohomekit.testing import FakePairing
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.homekit_controller.sensor import (
|
||||
thread_node_capability_to_str,
|
||||
thread_status_to_str,
|
||||
)
|
||||
from homeassistant.components.sensor import SensorDeviceClass, SensorStateClass
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import TEST_DEVICE_SERVICE_INFO, Helper, setup_test_component
|
||||
|
||||
from tests.components.bluetooth import inject_bluetooth_service_info
|
||||
|
||||
|
||||
def create_temperature_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define temperature characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.TEMPERATURE_SENSOR)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.TEMPERATURE_CURRENT)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
def create_humidity_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define humidity characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.HUMIDITY_SENSOR)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
def create_light_level_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define light level characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.LIGHT_SENSOR)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.LIGHT_LEVEL_CURRENT)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
def create_carbon_dioxide_level_sensor_service(accessory: Accessory) -> None:
|
||||
"""Define carbon dioxide level characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.CARBON_DIOXIDE_SENSOR)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.CARBON_DIOXIDE_LEVEL)
|
||||
cur_state.value = 0
|
||||
|
||||
|
||||
def create_battery_level_sensor(accessory: Accessory) -> Service:
|
||||
"""Define battery level characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.BATTERY_SERVICE)
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.BATTERY_LEVEL)
|
||||
cur_state.value = 100
|
||||
|
||||
low_battery = service.add_char(CharacteristicsTypes.STATUS_LO_BATT)
|
||||
low_battery.value = 0
|
||||
|
||||
charging_state = service.add_char(CharacteristicsTypes.CHARGING_STATE)
|
||||
charging_state.value = 0
|
||||
|
||||
return service
|
||||
|
||||
|
||||
async def test_temperature_sensor_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test reading the state of a HomeKit temperature sensor accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_temperature_sensor_service, suffix="temperature"
|
||||
)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.TEMPERATURE_SENSOR,
|
||||
{
|
||||
CharacteristicsTypes.TEMPERATURE_CURRENT: 10,
|
||||
},
|
||||
)
|
||||
assert state.state == "10"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.TEMPERATURE_SENSOR,
|
||||
{
|
||||
CharacteristicsTypes.TEMPERATURE_CURRENT: 20,
|
||||
},
|
||||
)
|
||||
assert state.state == "20"
|
||||
|
||||
assert state.attributes["device_class"] == SensorDeviceClass.TEMPERATURE
|
||||
assert state.attributes["state_class"] == SensorStateClass.MEASUREMENT
|
||||
|
||||
|
||||
async def test_temperature_sensor_not_added_twice(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""A standalone temperature sensor should not get a characteristic AND a service entity."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_temperature_sensor_service, suffix="temperature"
|
||||
)
|
||||
|
||||
created_sensors = set()
|
||||
for state in hass.states.async_all():
|
||||
if state.attributes.get("device_class") == SensorDeviceClass.TEMPERATURE:
|
||||
created_sensors.add(state.entity_id)
|
||||
|
||||
assert created_sensors == {helper.entity_id}
|
||||
|
||||
|
||||
async def test_humidity_sensor_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test reading the state of a HomeKit humidity sensor accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_humidity_sensor_service, suffix="humidity"
|
||||
)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDITY_SENSOR,
|
||||
{
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT: 10,
|
||||
},
|
||||
)
|
||||
assert state.state == "10"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.HUMIDITY_SENSOR,
|
||||
{
|
||||
CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT: 20,
|
||||
},
|
||||
)
|
||||
assert state.state == "20"
|
||||
|
||||
assert state.attributes["device_class"] == SensorDeviceClass.HUMIDITY
|
||||
|
||||
|
||||
async def test_light_level_sensor_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test reading the state of a HomeKit temperature sensor accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_light_level_sensor_service, suffix="light_level"
|
||||
)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHT_SENSOR,
|
||||
{
|
||||
CharacteristicsTypes.LIGHT_LEVEL_CURRENT: 10,
|
||||
},
|
||||
)
|
||||
assert state.state == "10"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.LIGHT_SENSOR,
|
||||
{
|
||||
CharacteristicsTypes.LIGHT_LEVEL_CURRENT: 20,
|
||||
},
|
||||
)
|
||||
assert state.state == "20"
|
||||
|
||||
assert state.attributes["device_class"] == SensorDeviceClass.ILLUMINANCE
|
||||
|
||||
|
||||
async def test_carbon_dioxide_level_sensor_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test reading the state of a HomeKit carbon dioxide sensor accessory."""
|
||||
helper = await setup_test_component(
|
||||
hass,
|
||||
get_next_aid(),
|
||||
create_carbon_dioxide_level_sensor_service,
|
||||
suffix="carbon_dioxide",
|
||||
)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.CARBON_DIOXIDE_SENSOR,
|
||||
{
|
||||
CharacteristicsTypes.CARBON_DIOXIDE_LEVEL: 10,
|
||||
},
|
||||
)
|
||||
assert state.state == "10"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.CARBON_DIOXIDE_SENSOR,
|
||||
{
|
||||
CharacteristicsTypes.CARBON_DIOXIDE_LEVEL: 20,
|
||||
},
|
||||
)
|
||||
assert state.state == "20"
|
||||
|
||||
|
||||
async def test_battery_level_sensor(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test reading the state of a HomeKit battery level sensor."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_battery_level_sensor, suffix="battery"
|
||||
)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.BATTERY_SERVICE,
|
||||
{
|
||||
CharacteristicsTypes.BATTERY_LEVEL: 100,
|
||||
},
|
||||
)
|
||||
assert state.state == "100"
|
||||
assert state.attributes["icon"] == "mdi:battery"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.BATTERY_SERVICE,
|
||||
{
|
||||
CharacteristicsTypes.BATTERY_LEVEL: 20,
|
||||
},
|
||||
)
|
||||
assert state.state == "20"
|
||||
assert state.attributes["icon"] == "mdi:battery-20"
|
||||
|
||||
assert state.attributes["device_class"] == SensorDeviceClass.BATTERY
|
||||
|
||||
|
||||
async def test_battery_charging(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test reading the state of a HomeKit battery's charging state."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_battery_level_sensor, suffix="battery"
|
||||
)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.BATTERY_SERVICE,
|
||||
{
|
||||
CharacteristicsTypes.BATTERY_LEVEL: 0,
|
||||
CharacteristicsTypes.CHARGING_STATE: 1,
|
||||
},
|
||||
)
|
||||
assert state.attributes["icon"] == "mdi:battery-outline"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.BATTERY_SERVICE,
|
||||
{
|
||||
CharacteristicsTypes.BATTERY_LEVEL: 20,
|
||||
},
|
||||
)
|
||||
assert state.attributes["icon"] == "mdi:battery-charging-20"
|
||||
|
||||
|
||||
async def test_battery_low(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test reading the state of a HomeKit battery's low state."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_battery_level_sensor, suffix="battery"
|
||||
)
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.BATTERY_SERVICE,
|
||||
{
|
||||
CharacteristicsTypes.BATTERY_LEVEL: 1,
|
||||
CharacteristicsTypes.STATUS_LO_BATT: 0,
|
||||
},
|
||||
)
|
||||
assert state.attributes["icon"] == "mdi:battery-10"
|
||||
|
||||
state = await helper.async_update(
|
||||
ServicesTypes.BATTERY_SERVICE,
|
||||
{
|
||||
CharacteristicsTypes.BATTERY_LEVEL: 1,
|
||||
CharacteristicsTypes.STATUS_LO_BATT: 1,
|
||||
},
|
||||
)
|
||||
assert state.attributes["icon"] == "mdi:battery-alert"
|
||||
|
||||
|
||||
def create_switch_with_sensor(accessory: Accessory) -> Service:
|
||||
"""Define battery level characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.OUTLET)
|
||||
|
||||
realtime_energy = service.add_char(
|
||||
CharacteristicsTypes.VENDOR_KOOGEEK_REALTIME_ENERGY
|
||||
)
|
||||
realtime_energy.value = 0
|
||||
realtime_energy.format = "float"
|
||||
realtime_energy.perms.append("ev")
|
||||
|
||||
cur_state = service.add_char(CharacteristicsTypes.ON)
|
||||
cur_state.value = True
|
||||
|
||||
return service
|
||||
|
||||
|
||||
async def test_switch_with_sensor(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test a switch service that has a sensor characteristic is correctly handled."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_switch_with_sensor)
|
||||
|
||||
# Helper will be for the primary entity, which is the outlet. Make a helper for the sensor.
|
||||
energy_helper = Helper(
|
||||
hass,
|
||||
"sensor.testdevice_power",
|
||||
helper.pairing,
|
||||
helper.accessory,
|
||||
helper.config_entry,
|
||||
)
|
||||
|
||||
state = await energy_helper.async_update(
|
||||
ServicesTypes.OUTLET,
|
||||
{
|
||||
CharacteristicsTypes.VENDOR_KOOGEEK_REALTIME_ENERGY: 1,
|
||||
},
|
||||
)
|
||||
assert state.state == "1"
|
||||
|
||||
state = await energy_helper.async_update(
|
||||
ServicesTypes.OUTLET,
|
||||
{
|
||||
CharacteristicsTypes.VENDOR_KOOGEEK_REALTIME_ENERGY: 50,
|
||||
},
|
||||
)
|
||||
assert state.state == "50"
|
||||
|
||||
|
||||
async def test_sensor_unavailable(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test a sensor becoming unavailable."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_switch_with_sensor)
|
||||
|
||||
outlet = helper.accessory.services.first(service_type=ServicesTypes.OUTLET)
|
||||
on_char = outlet[CharacteristicsTypes.ON]
|
||||
realtime_energy = outlet[CharacteristicsTypes.VENDOR_KOOGEEK_REALTIME_ENERGY]
|
||||
|
||||
# Helper will be for the primary entity, which is the outlet. Make a helper for the sensor.
|
||||
energy_helper = Helper(
|
||||
hass,
|
||||
"sensor.testdevice_power",
|
||||
helper.pairing,
|
||||
helper.accessory,
|
||||
helper.config_entry,
|
||||
)
|
||||
|
||||
# Find the outlet on char and mark it as offline
|
||||
await helper.async_set_aid_iid_status(
|
||||
[
|
||||
(
|
||||
helper.accessory.aid,
|
||||
on_char.iid,
|
||||
HapStatusCode.UNABLE_TO_COMMUNICATE.value,
|
||||
)
|
||||
]
|
||||
)
|
||||
|
||||
# Outlet has non-responsive characteristics so should be unavailable
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "unavailable"
|
||||
|
||||
# Find the energy sensor and mark it as offline
|
||||
await helper.async_set_aid_iid_status(
|
||||
[
|
||||
(
|
||||
energy_helper.accessory.aid,
|
||||
realtime_energy.iid,
|
||||
HapStatusCode.UNABLE_TO_COMMUNICATE.value,
|
||||
)
|
||||
]
|
||||
)
|
||||
|
||||
# Energy sensor has non-responsive characteristics so should be unavailable
|
||||
state = await energy_helper.poll_and_get_state()
|
||||
assert state.state == "unavailable"
|
||||
|
||||
|
||||
def test_thread_node_caps_to_str() -> None:
|
||||
"""Test all values of this enum get a translatable string."""
|
||||
assert (
|
||||
thread_node_capability_to_str(ThreadNodeCapabilities.BORDER_ROUTER_CAPABLE)
|
||||
== "border_router_capable"
|
||||
)
|
||||
assert (
|
||||
thread_node_capability_to_str(ThreadNodeCapabilities.ROUTER_ELIGIBLE)
|
||||
== "router_eligible"
|
||||
)
|
||||
assert thread_node_capability_to_str(ThreadNodeCapabilities.FULL) == "full"
|
||||
assert thread_node_capability_to_str(ThreadNodeCapabilities.MINIMAL) == "minimal"
|
||||
assert thread_node_capability_to_str(ThreadNodeCapabilities.SLEEPY) == "sleepy"
|
||||
assert thread_node_capability_to_str(ThreadNodeCapabilities(128)) == "none"
|
||||
|
||||
|
||||
def test_thread_status_to_str() -> None:
|
||||
"""Test all values of this enum get a translatable string."""
|
||||
assert thread_status_to_str(ThreadStatus.BORDER_ROUTER) == "border_router"
|
||||
assert thread_status_to_str(ThreadStatus.LEADER) == "leader"
|
||||
assert thread_status_to_str(ThreadStatus.ROUTER) == "router"
|
||||
assert thread_status_to_str(ThreadStatus.CHILD) == "child"
|
||||
assert thread_status_to_str(ThreadStatus.JOINING) == "joining"
|
||||
assert thread_status_to_str(ThreadStatus.DETACHED) == "detached"
|
||||
assert thread_status_to_str(ThreadStatus.DISABLED) == "disabled"
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("enable_bluetooth", "entity_registry_enabled_by_default")
|
||||
async def test_rssi_sensor(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test an rssi sensor."""
|
||||
inject_bluetooth_service_info(hass, TEST_DEVICE_SERVICE_INFO)
|
||||
|
||||
class FakeBLEPairing(FakePairing):
|
||||
"""Fake BLE pairing."""
|
||||
|
||||
@property
|
||||
def transport(self):
|
||||
return Transport.BLE
|
||||
|
||||
with patch("aiohomekit.testing.FakePairing", FakeBLEPairing):
|
||||
# Any accessory will do for this test, but we need at least
|
||||
# one or the rssi sensor will not be created
|
||||
await setup_test_component(
|
||||
hass,
|
||||
get_next_aid(),
|
||||
create_battery_level_sensor,
|
||||
suffix="battery",
|
||||
connection="BLE",
|
||||
)
|
||||
assert hass.states.get("sensor.testdevice_signal_strength").state == "-56"
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("enable_bluetooth", "entity_registry_enabled_by_default")
|
||||
async def test_migrate_rssi_sensor_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test an rssi sensor unique id migration."""
|
||||
rssi_sensor = entity_registry.async_get_or_create(
|
||||
"sensor",
|
||||
"homekit_controller",
|
||||
"homekit-0001-rssi",
|
||||
suggested_object_id="renamed_rssi",
|
||||
)
|
||||
|
||||
inject_bluetooth_service_info(hass, TEST_DEVICE_SERVICE_INFO)
|
||||
|
||||
class FakeBLEPairing(FakePairing):
|
||||
"""Fake BLE pairing."""
|
||||
|
||||
@property
|
||||
def transport(self):
|
||||
return Transport.BLE
|
||||
|
||||
with patch("aiohomekit.testing.FakePairing", FakeBLEPairing):
|
||||
# Any accessory will do for this test, but we need at least
|
||||
# one or the rssi sensor will not be created
|
||||
await setup_test_component(
|
||||
hass,
|
||||
get_next_aid(),
|
||||
create_battery_level_sensor,
|
||||
suffix="battery",
|
||||
connection="BLE",
|
||||
)
|
||||
assert hass.states.get("sensor.renamed_rssi").state == "-56"
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(rssi_sensor.entity_id).unique_id
|
||||
== "00:00:00:00:00:00_rssi"
|
||||
)
|
||||
@@ -0,0 +1,90 @@
|
||||
"""Basic checks for entity map storage."""
|
||||
|
||||
from collections.abc import Callable
|
||||
from typing import Any
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
|
||||
from homeassistant.components.homekit_controller.const import ENTITY_MAP
|
||||
from homeassistant.components.homekit_controller.storage import EntityMapStorage
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from .common import setup_platform, setup_test_component
|
||||
|
||||
from tests.common import flush_store
|
||||
|
||||
|
||||
async def test_load_from_storage(
|
||||
hass: HomeAssistant, hass_storage: dict[str, Any]
|
||||
) -> None:
|
||||
"""Test that entity map can be correctly loaded from cache."""
|
||||
hkid = "00:00:00:00:00:00"
|
||||
|
||||
hass_storage["homekit_controller-entity-map"] = {
|
||||
"version": 1,
|
||||
"data": {"pairings": {hkid: {"c#": 1, "accessories": []}}},
|
||||
}
|
||||
|
||||
await setup_platform(hass)
|
||||
assert hkid in hass.data[ENTITY_MAP].storage_data
|
||||
|
||||
|
||||
async def test_storage_is_removed(
|
||||
hass: HomeAssistant, hass_storage: dict[str, Any]
|
||||
) -> None:
|
||||
"""Test entity map storage removal is idempotent."""
|
||||
await setup_platform(hass)
|
||||
|
||||
entity_map = hass.data[ENTITY_MAP]
|
||||
hkid = "00:00:00:00:00:01"
|
||||
|
||||
entity_map.async_create_or_update_map(hkid, 1, [])
|
||||
assert hkid in entity_map.storage_data
|
||||
await flush_store(entity_map.store)
|
||||
assert hkid in hass_storage[ENTITY_MAP]["data"]["pairings"]
|
||||
|
||||
entity_map.async_delete_map(hkid)
|
||||
assert hkid not in hass.data[ENTITY_MAP].storage_data
|
||||
await flush_store(entity_map.store)
|
||||
|
||||
assert hass_storage[ENTITY_MAP]["data"]["pairings"] == {}
|
||||
|
||||
|
||||
async def test_storage_is_removed_idempotent(hass: HomeAssistant) -> None:
|
||||
"""Test entity map storage removal is idempotent."""
|
||||
await setup_platform(hass)
|
||||
|
||||
entity_map = hass.data[ENTITY_MAP]
|
||||
hkid = "00:00:00:00:00:01"
|
||||
|
||||
assert hkid not in entity_map.storage_data
|
||||
|
||||
entity_map.async_delete_map(hkid)
|
||||
|
||||
assert hkid not in entity_map.storage_data
|
||||
|
||||
|
||||
def create_lightbulb_service(accessory: Accessory) -> None:
|
||||
"""Define lightbulb characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.LIGHTBULB)
|
||||
on_char = service.add_char(CharacteristicsTypes.ON)
|
||||
on_char.value = 0
|
||||
|
||||
|
||||
async def test_storage_is_updated_on_add(
|
||||
hass: HomeAssistant, hass_storage: dict[str, Any], get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test entity map storage is cleaned up on adding an accessory."""
|
||||
await setup_test_component(hass, get_next_aid(), create_lightbulb_service)
|
||||
|
||||
entity_map: EntityMapStorage = hass.data[ENTITY_MAP]
|
||||
hkid = "00:00:00:00:00:00"
|
||||
|
||||
# Is in memory store updated?
|
||||
assert hkid in entity_map.storage_data
|
||||
|
||||
# Is saved out to store?
|
||||
await flush_store(entity_map.store)
|
||||
assert hkid in hass_storage[ENTITY_MAP]["data"]["pairings"]
|
||||
@@ -0,0 +1,327 @@
|
||||
"""Basic checks for HomeKitSwitch."""
|
||||
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.characteristics import (
|
||||
CharacteristicsTypes,
|
||||
InUseValues,
|
||||
IsConfiguredValues,
|
||||
)
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_switch_service(accessory: Accessory) -> None:
|
||||
"""Define outlet characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.OUTLET)
|
||||
|
||||
on_char = service.add_char(CharacteristicsTypes.ON)
|
||||
on_char.value = False
|
||||
|
||||
outlet_in_use = service.add_char(CharacteristicsTypes.OUTLET_IN_USE)
|
||||
outlet_in_use.value = False
|
||||
|
||||
|
||||
def create_faucet_service(accessory: Accessory) -> None:
|
||||
"""Define faucet characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.FAUCET)
|
||||
|
||||
active_char = service.add_char(CharacteristicsTypes.ACTIVE)
|
||||
active_char.value = False
|
||||
|
||||
|
||||
def create_valve_service(accessory: Accessory) -> None:
|
||||
"""Define valve characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.VALVE)
|
||||
|
||||
on_char = service.add_char(CharacteristicsTypes.ACTIVE)
|
||||
on_char.value = False
|
||||
|
||||
in_use = service.add_char(CharacteristicsTypes.IN_USE)
|
||||
in_use.value = InUseValues.IN_USE
|
||||
|
||||
configured = service.add_char(CharacteristicsTypes.IS_CONFIGURED)
|
||||
configured.value = IsConfiguredValues.CONFIGURED
|
||||
|
||||
remaining = service.add_char(CharacteristicsTypes.REMAINING_DURATION)
|
||||
remaining.value = 99
|
||||
|
||||
|
||||
def create_char_switch_service(accessory: Accessory) -> None:
|
||||
"""Define swtch characteristics."""
|
||||
service = accessory.add_service(ServicesTypes.OUTLET)
|
||||
|
||||
on_char = service.add_char(CharacteristicsTypes.VENDOR_AQARA_PAIRING_MODE)
|
||||
on_char.perms.append("ev")
|
||||
on_char.value = False
|
||||
|
||||
|
||||
async def test_switch_change_outlet_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a HomeKit outlet on and off again."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_switch_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
"switch", "turn_on", {"entity_id": "switch.testdevice"}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.OUTLET,
|
||||
{
|
||||
CharacteristicsTypes.ON: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"switch", "turn_off", {"entity_id": "switch.testdevice"}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.OUTLET,
|
||||
{
|
||||
CharacteristicsTypes.ON: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_switch_read_outlet_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit outlet accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_switch_service)
|
||||
|
||||
# Initial state is that the switch is off and the outlet isn't in use
|
||||
switch_1 = await helper.poll_and_get_state()
|
||||
assert switch_1.state == "off"
|
||||
assert switch_1.attributes["outlet_in_use"] is False
|
||||
|
||||
# Simulate that someone switched on the device in the real world not via HA
|
||||
switch_1 = await helper.async_update(
|
||||
ServicesTypes.OUTLET,
|
||||
{CharacteristicsTypes.ON: True},
|
||||
)
|
||||
assert switch_1.state == "on"
|
||||
assert switch_1.attributes["outlet_in_use"] is False
|
||||
|
||||
# Simulate that device switched off in the real world not via HA
|
||||
switch_1 = await helper.async_update(
|
||||
ServicesTypes.OUTLET,
|
||||
{CharacteristicsTypes.ON: False},
|
||||
)
|
||||
assert switch_1.state == "off"
|
||||
|
||||
# Simulate that someone plugged something into the device
|
||||
switch_1 = await helper.async_update(
|
||||
ServicesTypes.OUTLET,
|
||||
{CharacteristicsTypes.OUTLET_IN_USE: True},
|
||||
)
|
||||
assert switch_1.state == "off"
|
||||
assert switch_1.attributes["outlet_in_use"] is True
|
||||
|
||||
|
||||
async def test_faucet_change_active_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a HomeKit outlet on and off again."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_faucet_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
"switch", "turn_on", {"entity_id": "switch.testdevice"}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAUCET,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"switch", "turn_off", {"entity_id": "switch.testdevice"}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.FAUCET,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_faucet_read_active_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit outlet accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_faucet_service)
|
||||
|
||||
# Initial state is that the switch is off and the outlet isn't in use
|
||||
switch_1 = await helper.poll_and_get_state()
|
||||
assert switch_1.state == "off"
|
||||
|
||||
# Simulate that someone switched on the device in the real world not via HA
|
||||
switch_1 = await helper.async_update(
|
||||
ServicesTypes.FAUCET,
|
||||
{CharacteristicsTypes.ACTIVE: True},
|
||||
)
|
||||
assert switch_1.state == "on"
|
||||
|
||||
# Simulate that device switched off in the real world not via HA
|
||||
switch_1 = await helper.async_update(
|
||||
ServicesTypes.FAUCET,
|
||||
{CharacteristicsTypes.ACTIVE: False},
|
||||
)
|
||||
assert switch_1.state == "off"
|
||||
|
||||
|
||||
async def test_valve_change_active_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a valve on and off again."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_valve_service)
|
||||
|
||||
await hass.services.async_call(
|
||||
"switch", "turn_on", {"entity_id": "switch.testdevice"}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.VALVE,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 1,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"switch", "turn_off", {"entity_id": "switch.testdevice"}, blocking=True
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.VALVE,
|
||||
{
|
||||
CharacteristicsTypes.ACTIVE: 0,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_valve_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a valve accessory."""
|
||||
helper = await setup_test_component(hass, get_next_aid(), create_valve_service)
|
||||
|
||||
# Initial state is that the switch is off and the outlet isn't in use
|
||||
switch_1 = await helper.poll_and_get_state()
|
||||
assert switch_1.state == "off"
|
||||
assert switch_1.attributes["in_use"] is True
|
||||
assert switch_1.attributes["is_configured"] is True
|
||||
assert switch_1.attributes["remaining_duration"] == 99
|
||||
|
||||
# Simulate that someone switched on the device in the real world not via HA
|
||||
switch_1 = await helper.async_update(
|
||||
ServicesTypes.VALVE,
|
||||
{CharacteristicsTypes.ACTIVE: True},
|
||||
)
|
||||
assert switch_1.state == "on"
|
||||
|
||||
# Simulate that someone configured the device in the real world not via HA
|
||||
switch_1 = await helper.async_update(
|
||||
ServicesTypes.VALVE,
|
||||
{CharacteristicsTypes.IS_CONFIGURED: IsConfiguredValues.NOT_CONFIGURED},
|
||||
)
|
||||
assert switch_1.attributes["is_configured"] is False
|
||||
|
||||
# Simulate that someone using the device in the real world not via HA
|
||||
switch_1 = await helper.async_update(
|
||||
ServicesTypes.VALVE,
|
||||
{CharacteristicsTypes.IN_USE: InUseValues.NOT_IN_USE},
|
||||
)
|
||||
assert switch_1.attributes["in_use"] is False
|
||||
|
||||
|
||||
async def test_char_switch_change_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can turn a characteristic on and off again."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_char_switch_service, suffix="pairing_mode"
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"switch",
|
||||
"turn_on",
|
||||
{"entity_id": "switch.testdevice_pairing_mode"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.OUTLET,
|
||||
{
|
||||
CharacteristicsTypes.VENDOR_AQARA_PAIRING_MODE: True,
|
||||
},
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
"switch",
|
||||
"turn_off",
|
||||
{"entity_id": "switch.testdevice_pairing_mode"},
|
||||
blocking=True,
|
||||
)
|
||||
helper.async_assert_service_values(
|
||||
ServicesTypes.OUTLET,
|
||||
{
|
||||
CharacteristicsTypes.VENDOR_AQARA_PAIRING_MODE: False,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def test_char_switch_read_state(
|
||||
hass: HomeAssistant, get_next_aid: Callable[[], int]
|
||||
) -> None:
|
||||
"""Test that we can read the state of a HomeKit characteristic switch."""
|
||||
helper = await setup_test_component(
|
||||
hass, get_next_aid(), create_char_switch_service, suffix="pairing_mode"
|
||||
)
|
||||
|
||||
# Simulate that someone switched on the device in the real world not via HA
|
||||
switch_1 = await helper.async_update(
|
||||
ServicesTypes.OUTLET,
|
||||
{CharacteristicsTypes.VENDOR_AQARA_PAIRING_MODE: True},
|
||||
)
|
||||
assert switch_1.state == "on"
|
||||
|
||||
# Simulate that device switched off in the real world not via HA
|
||||
switch_1 = await helper.async_update(
|
||||
ServicesTypes.OUTLET,
|
||||
{CharacteristicsTypes.VENDOR_AQARA_PAIRING_MODE: False},
|
||||
)
|
||||
assert switch_1.state == "off"
|
||||
|
||||
|
||||
async def test_migrate_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
get_next_aid: Callable[[], int],
|
||||
) -> None:
|
||||
"""Test a we can migrate a switch unique id."""
|
||||
aid = get_next_aid()
|
||||
switch_entry = entity_registry.async_get_or_create(
|
||||
"switch",
|
||||
"homekit_controller",
|
||||
f"homekit-00:00:00:00:00:00-{aid}-8",
|
||||
)
|
||||
switch_entry_2 = entity_registry.async_get_or_create(
|
||||
"switch",
|
||||
"homekit_controller",
|
||||
f"homekit-0001-aid:{aid}-sid:8-cid:9",
|
||||
)
|
||||
await setup_test_component(
|
||||
hass, aid, create_char_switch_service, suffix="pairing_mode"
|
||||
)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(switch_entry.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8"
|
||||
)
|
||||
|
||||
assert (
|
||||
entity_registry.async_get(switch_entry_2.entity_id).unique_id
|
||||
== f"00:00:00:00:00:00_{aid}_8_9"
|
||||
)
|
||||
@@ -0,0 +1,16 @@
|
||||
"""Checks for basic helper utils."""
|
||||
|
||||
from homeassistant.components.homekit_controller.utils import unique_id_to_iids
|
||||
|
||||
|
||||
def test_unique_id_to_iids() -> None:
|
||||
"""Check that unique_id_to_iids is safe against different invalid ids."""
|
||||
assert unique_id_to_iids("pairingid_1_2_3") == (1, 2, 3)
|
||||
assert unique_id_to_iids("pairingid_1_2") == (1, 2, None)
|
||||
assert unique_id_to_iids("pairingid_1") == (1, None, None)
|
||||
|
||||
assert unique_id_to_iids("pairingid") is None
|
||||
assert unique_id_to_iids("pairingid_1_2_3_4") is None
|
||||
assert unique_id_to_iids("pairingid_a") is None
|
||||
assert unique_id_to_iids("pairingid_1_a") is None
|
||||
assert unique_id_to_iids("pairingid_1_2_a") is None
|
||||
Reference in New Issue
Block a user