mirror of
https://github.com/home-assistant/core.git
synced 2025-08-21 03:10:02 +00:00
.devcontainer
.github
.vscode
docs
homeassistant
machine
pylint
rootfs
script
tests
auth
backports
components
abode
accuweather
acmeda
adax
adguard
advantage_air
aemet
agent_dvr
air_quality
airly
airnow
airq
airthings
airthings_ble
airtouch4
airvisual
airvisual_pro
airzone
aladdin_connect
alarm_control_panel
alarmdecoder
alert
alexa
amberelectric
ambiclimate
ambient_station
analytics
android_ip_webcam
androidtv
anthemav
apache_kafka
apcupsd
api
api_streams
apple_tv
application_credentials
apprise
aprs
aranet
arcam_fmj
aseko_pool_live
asuswrt
atag
august
aurora
aurora_abb_powerone
aussie_broadband
auth
automation
awair
aws
axis
azure_devops
azure_event_hub
backup
baf
balboa
bayesian
binary_sensor
blackbird
blebox
blink
bluemaestro
blueprint
bluetooth
bluetooth_adapters
bluetooth_le_tracker
bmw_connected_drive
bond
bosch_shc
braviatv
broadlink
brother
brunt
bsblan
bthome
buienradar
button
caldav
calendar
camera
canary
cast
cert_expiry
clicksend_tts
climate
cloud
cloudflare
co2signal
coinbase
color_extractor
comfoconnect
command_line
compensation
config
configurator
control4
conversation
coolmaster
coronavirus
counter
cover
cpuspeed
crownstone
daikin
darksky
datadog
debugpy
deconz
default_config
deluge
demo
denonavr
derivative
device_automation
device_sun_light_trigger
device_tracker
devolo_home_control
devolo_home_network
dexcom
dhcp
diagnostics
dialogflow
directv
discord
discovery
dlink
dlna_dmr
dlna_dms
dnsip
doorbird
dsmr
dsmr_reader
dte_energy_bridge
duckdns
dunehd
dynalite
eafm
easyenergy
ecobee
econet
ecowitt
efergy
eight_sleep
elgato
elkm1
elmax
emonitor
emulated_hue
emulated_kasa
emulated_roku
energy
energyzero
enocean
enphase_envoy
environment_canada
epson
escea
esphome
eufylife_ble
everlights
evil_genius_labs
ezviz
faa_delays
facebook
facebox
fail2ban
fan
feedreader
ffmpeg
fibaro
fido
file
file_upload
filesize
filter
fireservicerota
firmata
fivem
fjaraskupan
flic
flick_electric
flipr
flo
flume
flux
flux_led
folder
folder_watcher
foobot
forecast_solar
forked_daapd
foscam
freebox
freedns
freedompro
fritz
fritzbox
fritzbox_callmonitor
fronius
frontend
fully_kiosk
garages_amsterdam
gdacs
generic
generic_hygrostat
generic_thermostat
geo_json_events
geo_location
geo_rss_events
geocaching
geofency
geonetnz_quakes
geonetnz_volcano
gios
github
glances
goalzero
gogogate2
goodwe
google
google_assistant
google_assistant_sdk
google_domains
google_mail
google_pubsub
google_sheets
google_translate
google_travel_time
google_wifi
govee_ble
gpslogger
graphite
gree
greeneye_monitor
group
growatt_server
guardian
habitica
hardkernel
hardware
harmony
hassio
hddtemp
hdmi_cec
heos
here_travel_time
hisense_aehw4a1
history
history_stats
hive
hlk_sw16
home_connect
home_plus_control
homeassistant
homeassistant_alerts
homeassistant_hardware
homeassistant_sky_connect
homeassistant_yellow
homekit
homekit_controller
fixtures
specific_devices
__init__.py
common.py
conftest.py
test_alarm_control_panel.py
test_binary_sensor.py
test_button.py
test_camera.py
test_climate.py
test_config_flow.py
test_connection.py
test_cover.py
test_device_trigger.py
test_diagnostics.py
test_fan.py
test_humidifier.py
test_init.py
test_light.py
test_lock.py
test_media_player.py
test_number.py
test_select.py
test_sensor.py
test_storage.py
test_switch.py
homematic
homematicip_cloud
homewizard
honeywell
html5
http
huawei_lte
hue
huisbaasje
humidifier
hunterdouglas_powerview
hvv_departures
hyperion
ialarm
iaqualink
ibeacon
icloud
ifttt
ign_sismologia
image_processing
image_upload
imap
imap_email_content
influxdb
inkbird
input_boolean
input_button
input_datetime
input_number
input_select
input_text
insteon
integration
intellifire
intent
intent_script
ios
iotawatt
ipma
ipp
iqvia
islamic_prayer_times
iss
isy994
izone
jellyfin
jewish_calendar
juicenet
justnimbus
kaleidescape
keenetic_ndms2
kegtron
keymitt_ble
kira
kitchen_sink
kmtronic
knx
kodi
konnected
kostal_plenticore
kraken
kulersky
lacrosse_view
lametric
landisgyr_heat_meter
lastfm
launch_library
laundrify
lcn
ld2410_ble
led_ble
lg_soundbar
lidarr
life360
lifx
light
litejet
litterrobot
livisi
local_calendar
local_file
local_ip
locative
lock
logbook
logentries
logger
logi_circle
london_air
lookin
lovelace
luftdaten
lutron_caseta
lyric
mailbox
mailgun
manual
manual_mqtt
marytts
matter
maxcube
mazda
meater
media_player
media_source
melcloud
melissa
melnor
meraki
met
met_eireann
meteo_france
meteoclimatic
metoffice
mfi
microsoft_face
microsoft_face_detect
microsoft_face_identify
mikrotik
mill
min_max
minecraft_server
minio
mjpeg
moat
mobile_app
mochad
modbus
modem_callerid
modern_forms
moehlenhoff_alpha2
mold_indicator
monoprice
moon
mopeka
motion_blinds
motioneye
mqtt
mqtt_eventstream
mqtt_json
mqtt_room
mqtt_statestream
mullvad
mutesync
my
myq
mysensors
mythicbeastsdns
nam
namecheapdns
nanoleaf
neato
ness_alarm
nest
netatmo
netgear
network
nexia
nextbus
nextdns
nfandroidtv
nibe_heatpump
nightscout
nina
nmap_tracker
no_ip
nobo_hub
notify
notify_events
notion
nsw_fuel_station
nsw_rural_fire_service_feed
nuheat
nuki
numato
number
nut
nws
nx584
nzbget
octoprint
omnilogic
onboarding
oncue
ondilo_ico
onewire
onvif
open_meteo
openai_conversation
openalpr_cloud
openerz
openexchangerates
opengarage
openhardwaremonitor
opentherm_gw
openuv
openweathermap
opnsense
oralb
otbr
overkiz
ovo_energy
owntracks
p1_monitor
panasonic_viera
panel_custom
panel_iframe
peco
persistent_notification
person
philips_js
pi_hole
picnic
pilight
ping
plaato
plant
plex
plugwise
plum_lightpad
point
poolsense
powerwall
profiler
progettihwsw
prometheus
prosegur
proximity
prusalink
ps4
pure_energie
purpleair
push
pushbullet
pushover
pvoutput
pvpc_hourly_pricing
python_script
qingping
qld_bushfire
qnap_qsw
qwikswitch
rachio
radarr
radio_browser
radiotherm
rainbird
rainforest_eagle
rainmachine
random
raspberry_pi
rdw
recollect_waste
recorder
reddit
remember_the_milk
remote
renault
reolink
repairs
rest
rest_command
rflink
rfxtrx
rhasspy
ridwell
ring
risco
rituals_perfume_genie
rmvtransport
roku
roomba
roon
rpi_power
rss_feed_template
rtsp_to_webrtc
ruckus_unleashed
ruuvi_gateway
ruuvitag_ble
rympro
sabnzbd
safe_mode
samsungtv
scene
schedule
scrape
screenlogic
script
search
season
select
sense
senseme
sensibo
sensirion_ble
sensor
sensorpro
sensorpush
sentry
senz
seventeentrack
sfr_box
sharkiq
shell_command
shelly
shopping_list
sia
sigfox
sighthound
signal_messenger
simplepush
simplisafe
simulated
siren
skybell
slack
sleepiq
slimproto
sma
smappee
smart_meter_texas
smartthings
smarttub
smhi
smtp
snips
snmp
snooz
solaredge
solarlog
solax
soma
somfy_mylink
sonarr
songpal
sonos
soundtouch
spaceapi
spc
speedtestdotnet
spider
spotify
sql
squeezebox
srp_energy
ssdp
starline
starlink
startca
statistics
statsd
steam_online
steamist
stookalert
stookwijzer
stream
stt
subaru
sun
surepetcare
switch
switch_as_x
switchbee
switchbot
switcher_kis
syncthing
syncthru
synology_dsm
system_bridge
system_health
system_log
tado
tag
tailscale
tankerkoenig
tasmota
tautulli
tcp
telegram
telegram_bot
tellduslive
template
tesla_wall_connector
text
thermobeacon
thermopro
thread
threshold
tibber
tile
tilt_ble
time_date
timer
tod
todoist
tolo
tomato
tomorrowio
toon
totalconnect
tplink
tplink_omada
traccar
trace
tractive
tradfri
trafikverket_ferry
trafikverket_train
trafikverket_weatherstation
transmission
transport_nsw
trend
tts
tuya
twentemilieu
twilio
twinkly
twitch
uk_transport
ukraine_alarm
unifi
unifi_direct
unifiprotect
universal
upb
upcloud
update
upnp
uptime
uptimerobot
usb
usgs_earthquakes_feed
utility_meter
uvc
vacuum
vallox
velbus
venstar
vera
verisure
version
vesync
vicare
vilfo
vizio
vlc_telnet
voicerss
volumio
volvooncall
vulcan
vultr
wake_on_lan
wallbox
water_heater
watttime
waze_travel_time
weather
webhook
webostv
websocket_api
wemo
whirlpool
whois
wiffi
wilight
withings
wiz
wled
wolflink
workday
worldclock
ws66i
wsdot
xbox
xiaomi
xiaomi_aqara
xiaomi_ble
xiaomi_miio
yale_smart_alarm
yalexs_ble
yamaha
yamaha_musiccast
yandex_transport
yandextts
yeelight
yolink
youless
zamg
zeroconf
zerproc
zeversolar
zha
zodiac
zone
zwave_js
zwave_me
__init__.py
conftest.py
fixtures
hassfest
helpers
pylint
resources
scripts
test_util
testing_config
util
__init__.py
bandit.yaml
common.py
conftest.py
ignore_uncaught_exceptions.py
ruff.toml
test_bootstrap.py
test_config.py
test_config_entries.py
test_core.py
test_data_entry_flow.py
test_exceptions.py
test_loader.py
test_main.py
test_requirements.py
test_runner.py
test_setup.py
test_test_fixtures.py
typing.py
.core_files.yaml
.coveragerc
.dockerignore
.gitattributes
.gitignore
.hadolint.yaml
.pre-commit-config.yaml
.prettierignore
.readthedocs.yml
.strict-typing
.yamllint
CLA.md
CODEOWNERS
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile
Dockerfile.dev
LICENSE.md
MANIFEST.in
README.rst
build.yaml
codecov.yml
mypy.ini
pyproject.toml
requirements.txt
requirements_all.txt
requirements_docs.txt
requirements_test.txt
requirements_test_all.txt
requirements_test_pre_commit.txt
setup.cfg
typescript

* Adjust hass_client type hint in integration tests * Adjust hass_client_no_auth * Fix rebase
555 lines
24 KiB
Python
555 lines
24 KiB
Python
"""Test homekit_controller diagnostics."""
|
|
from unittest.mock import ANY
|
|
|
|
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, utcnow
|
|
):
|
|
"""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 == {
|
|
"config-entry": {
|
|
"title": "test",
|
|
"version": 1,
|
|
"data": {"AccessoryPairingID": "00:00:00:00:00:00"},
|
|
},
|
|
"config-num": 0,
|
|
"entity-map": [
|
|
{
|
|
"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": "Koogeek-LS1-20833F",
|
|
"description": "Name",
|
|
"maxLen": 64,
|
|
},
|
|
{
|
|
"type": "00000020-0000-1000-8000-0026BB765291",
|
|
"iid": 3,
|
|
"perms": ["pr"],
|
|
"format": "string",
|
|
"value": "Koogeek",
|
|
"description": "Manufacturer",
|
|
"maxLen": 64,
|
|
},
|
|
{
|
|
"type": "00000021-0000-1000-8000-0026BB765291",
|
|
"iid": 4,
|
|
"perms": ["pr"],
|
|
"format": "string",
|
|
"value": "LS1",
|
|
"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": 23,
|
|
"perms": ["pr"],
|
|
"format": "string",
|
|
"value": "2.2.15",
|
|
"description": "Firmware Revision",
|
|
"maxLen": 64,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
"iid": 7,
|
|
"type": "00000043-0000-1000-8000-0026BB765291",
|
|
"characteristics": [
|
|
{
|
|
"type": "00000025-0000-1000-8000-0026BB765291",
|
|
"iid": 8,
|
|
"perms": ["pr", "pw", "ev"],
|
|
"format": "bool",
|
|
"value": False,
|
|
"description": "On",
|
|
},
|
|
{
|
|
"type": "00000013-0000-1000-8000-0026BB765291",
|
|
"iid": 9,
|
|
"perms": ["pr", "pw", "ev"],
|
|
"format": "float",
|
|
"value": 44,
|
|
"description": "Hue",
|
|
"unit": "arcdegrees",
|
|
"minValue": 0,
|
|
"maxValue": 359,
|
|
"minStep": 1,
|
|
},
|
|
{
|
|
"type": "0000002F-0000-1000-8000-0026BB765291",
|
|
"iid": 10,
|
|
"perms": ["pr", "pw", "ev"],
|
|
"format": "float",
|
|
"value": 0,
|
|
"description": "Saturation",
|
|
"unit": "percentage",
|
|
"minValue": 0,
|
|
"maxValue": 100,
|
|
"minStep": 1,
|
|
},
|
|
{
|
|
"type": "00000008-0000-1000-8000-0026BB765291",
|
|
"iid": 11,
|
|
"perms": ["pr", "pw", "ev"],
|
|
"format": "int",
|
|
"value": 100,
|
|
"description": "Brightness",
|
|
"unit": "percentage",
|
|
"minValue": 0,
|
|
"maxValue": 100,
|
|
"minStep": 1,
|
|
},
|
|
{
|
|
"type": "00000023-0000-1000-8000-0026BB765291",
|
|
"iid": 12,
|
|
"perms": ["pr"],
|
|
"format": "string",
|
|
"value": "Light Strip",
|
|
"description": "Name",
|
|
"maxLen": 64,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
"iid": 13,
|
|
"type": "4AAAF940-0DEC-11E5-B939-0800200C9A66",
|
|
"characteristics": [
|
|
{
|
|
"type": "4AAAF942-0DEC-11E5-B939-0800200C9A66",
|
|
"iid": 14,
|
|
"perms": ["pr", "pw"],
|
|
"format": "tlv8",
|
|
"value": "AHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
"description": "TIMER_SETTINGS",
|
|
}
|
|
],
|
|
},
|
|
{
|
|
"iid": 15,
|
|
"type": "151909D0-3802-11E4-916C-0800200C9A66",
|
|
"characteristics": [
|
|
{
|
|
"type": "151909D2-3802-11E4-916C-0800200C9A66",
|
|
"iid": 16,
|
|
"perms": ["pr", "hd"],
|
|
"format": "string",
|
|
"value": "url,data",
|
|
"description": "FW Upgrade supported types",
|
|
"maxLen": 64,
|
|
},
|
|
{
|
|
"type": "151909D1-3802-11E4-916C-0800200C9A66",
|
|
"iid": 17,
|
|
"perms": ["pw", "hd"],
|
|
"format": "string",
|
|
"description": "FW Upgrade URL",
|
|
"maxLen": 64,
|
|
},
|
|
{
|
|
"type": "151909D6-3802-11E4-916C-0800200C9A66",
|
|
"iid": 18,
|
|
"perms": ["pr", "ev", "hd"],
|
|
"format": "int",
|
|
"value": 0,
|
|
"description": "FW Upgrade Status",
|
|
},
|
|
{
|
|
"type": "151909D7-3802-11E4-916C-0800200C9A66",
|
|
"iid": 19,
|
|
"perms": ["pw", "hd"],
|
|
"format": "data",
|
|
"description": "FW Upgrade Data",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
"iid": 20,
|
|
"type": "151909D3-3802-11E4-916C-0800200C9A66",
|
|
"characteristics": [
|
|
{
|
|
"type": "151909D5-3802-11E4-916C-0800200C9A66",
|
|
"iid": 21,
|
|
"perms": ["pr", "pw"],
|
|
"format": "int",
|
|
"value": 0,
|
|
"description": "Timezone",
|
|
},
|
|
{
|
|
"type": "151909D4-3802-11E4-916C-0800200C9A66",
|
|
"iid": 22,
|
|
"perms": ["pr", "pw"],
|
|
"format": "int",
|
|
"value": 1550348623,
|
|
"description": "Time value since Epoch",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|
|
],
|
|
"devices": [
|
|
{
|
|
"name": "Koogeek-LS1-20833F",
|
|
"model": "LS1",
|
|
"manfacturer": "Koogeek",
|
|
"sw_version": "2.2.15",
|
|
"hw_version": "",
|
|
"entities": [
|
|
{
|
|
"device_class": None,
|
|
"disabled": False,
|
|
"disabled_by": None,
|
|
"entity_category": "diagnostic",
|
|
"icon": None,
|
|
"original_device_class": None,
|
|
"original_icon": None,
|
|
"original_name": "Koogeek-LS1-20833F Identify",
|
|
"state": {
|
|
"attributes": {
|
|
"friendly_name": "Koogeek-LS1-20833F Identify"
|
|
},
|
|
"entity_id": "button.koogeek_ls1_20833f_identify",
|
|
"last_changed": ANY,
|
|
"last_updated": ANY,
|
|
"state": "unknown",
|
|
},
|
|
"unit_of_measurement": None,
|
|
},
|
|
{
|
|
"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": {
|
|
"attributes": {
|
|
"friendly_name": "Koogeek-LS1-20833F Light Strip",
|
|
"supported_color_modes": ["hs"],
|
|
"supported_features": 0,
|
|
},
|
|
"entity_id": "light.koogeek_ls1_20833f_light_strip",
|
|
"last_changed": ANY,
|
|
"last_updated": ANY,
|
|
"state": "off",
|
|
},
|
|
"unit_of_measurement": None,
|
|
},
|
|
],
|
|
}
|
|
],
|
|
}
|
|
|
|
|
|
async def test_device(hass: HomeAssistant, hass_client: ClientSessionGenerator, utcnow):
|
|
"""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_registry = dr.async_get(hass)
|
|
device = device_registry.async_get(connection.devices[1])
|
|
|
|
diag = await get_diagnostics_for_device(hass, hass_client, config_entry, device)
|
|
|
|
assert diag == {
|
|
"config-entry": {
|
|
"title": "test",
|
|
"version": 1,
|
|
"data": {"AccessoryPairingID": "00:00:00:00:00:00"},
|
|
},
|
|
"config-num": 0,
|
|
"entity-map": [
|
|
{
|
|
"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": "Koogeek-LS1-20833F",
|
|
"description": "Name",
|
|
"maxLen": 64,
|
|
},
|
|
{
|
|
"type": "00000020-0000-1000-8000-0026BB765291",
|
|
"iid": 3,
|
|
"perms": ["pr"],
|
|
"format": "string",
|
|
"value": "Koogeek",
|
|
"description": "Manufacturer",
|
|
"maxLen": 64,
|
|
},
|
|
{
|
|
"type": "00000021-0000-1000-8000-0026BB765291",
|
|
"iid": 4,
|
|
"perms": ["pr"],
|
|
"format": "string",
|
|
"value": "LS1",
|
|
"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": 23,
|
|
"perms": ["pr"],
|
|
"format": "string",
|
|
"value": "2.2.15",
|
|
"description": "Firmware Revision",
|
|
"maxLen": 64,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
"iid": 7,
|
|
"type": "00000043-0000-1000-8000-0026BB765291",
|
|
"characteristics": [
|
|
{
|
|
"type": "00000025-0000-1000-8000-0026BB765291",
|
|
"iid": 8,
|
|
"perms": ["pr", "pw", "ev"],
|
|
"format": "bool",
|
|
"value": False,
|
|
"description": "On",
|
|
},
|
|
{
|
|
"type": "00000013-0000-1000-8000-0026BB765291",
|
|
"iid": 9,
|
|
"perms": ["pr", "pw", "ev"],
|
|
"format": "float",
|
|
"value": 44,
|
|
"description": "Hue",
|
|
"unit": "arcdegrees",
|
|
"minValue": 0,
|
|
"maxValue": 359,
|
|
"minStep": 1,
|
|
},
|
|
{
|
|
"type": "0000002F-0000-1000-8000-0026BB765291",
|
|
"iid": 10,
|
|
"perms": ["pr", "pw", "ev"],
|
|
"format": "float",
|
|
"value": 0,
|
|
"description": "Saturation",
|
|
"unit": "percentage",
|
|
"minValue": 0,
|
|
"maxValue": 100,
|
|
"minStep": 1,
|
|
},
|
|
{
|
|
"type": "00000008-0000-1000-8000-0026BB765291",
|
|
"iid": 11,
|
|
"perms": ["pr", "pw", "ev"],
|
|
"format": "int",
|
|
"value": 100,
|
|
"description": "Brightness",
|
|
"unit": "percentage",
|
|
"minValue": 0,
|
|
"maxValue": 100,
|
|
"minStep": 1,
|
|
},
|
|
{
|
|
"type": "00000023-0000-1000-8000-0026BB765291",
|
|
"iid": 12,
|
|
"perms": ["pr"],
|
|
"format": "string",
|
|
"value": "Light Strip",
|
|
"description": "Name",
|
|
"maxLen": 64,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
"iid": 13,
|
|
"type": "4AAAF940-0DEC-11E5-B939-0800200C9A66",
|
|
"characteristics": [
|
|
{
|
|
"type": "4AAAF942-0DEC-11E5-B939-0800200C9A66",
|
|
"iid": 14,
|
|
"perms": ["pr", "pw"],
|
|
"format": "tlv8",
|
|
"value": "AHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
"description": "TIMER_SETTINGS",
|
|
}
|
|
],
|
|
},
|
|
{
|
|
"iid": 15,
|
|
"type": "151909D0-3802-11E4-916C-0800200C9A66",
|
|
"characteristics": [
|
|
{
|
|
"type": "151909D2-3802-11E4-916C-0800200C9A66",
|
|
"iid": 16,
|
|
"perms": ["pr", "hd"],
|
|
"format": "string",
|
|
"value": "url,data",
|
|
"description": "FW Upgrade supported types",
|
|
"maxLen": 64,
|
|
},
|
|
{
|
|
"type": "151909D1-3802-11E4-916C-0800200C9A66",
|
|
"iid": 17,
|
|
"perms": ["pw", "hd"],
|
|
"format": "string",
|
|
"description": "FW Upgrade URL",
|
|
"maxLen": 64,
|
|
},
|
|
{
|
|
"type": "151909D6-3802-11E4-916C-0800200C9A66",
|
|
"iid": 18,
|
|
"perms": ["pr", "ev", "hd"],
|
|
"format": "int",
|
|
"value": 0,
|
|
"description": "FW Upgrade Status",
|
|
},
|
|
{
|
|
"type": "151909D7-3802-11E4-916C-0800200C9A66",
|
|
"iid": 19,
|
|
"perms": ["pw", "hd"],
|
|
"format": "data",
|
|
"description": "FW Upgrade Data",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
"iid": 20,
|
|
"type": "151909D3-3802-11E4-916C-0800200C9A66",
|
|
"characteristics": [
|
|
{
|
|
"type": "151909D5-3802-11E4-916C-0800200C9A66",
|
|
"iid": 21,
|
|
"perms": ["pr", "pw"],
|
|
"format": "int",
|
|
"value": 0,
|
|
"description": "Timezone",
|
|
},
|
|
{
|
|
"type": "151909D4-3802-11E4-916C-0800200C9A66",
|
|
"iid": 22,
|
|
"perms": ["pr", "pw"],
|
|
"format": "int",
|
|
"value": 1550348623,
|
|
"description": "Time value since Epoch",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|
|
],
|
|
"device": {
|
|
"name": "Koogeek-LS1-20833F",
|
|
"model": "LS1",
|
|
"manfacturer": "Koogeek",
|
|
"sw_version": "2.2.15",
|
|
"hw_version": "",
|
|
"entities": [
|
|
{
|
|
"device_class": None,
|
|
"disabled": False,
|
|
"disabled_by": None,
|
|
"entity_category": "diagnostic",
|
|
"icon": None,
|
|
"original_device_class": None,
|
|
"original_icon": None,
|
|
"original_name": "Koogeek-LS1-20833F Identify",
|
|
"state": {
|
|
"attributes": {
|
|
"friendly_name": "Koogeek-LS1-20833F " "Identify"
|
|
},
|
|
"entity_id": "button.koogeek_ls1_20833f_identify",
|
|
"last_changed": ANY,
|
|
"last_updated": ANY,
|
|
"state": "unknown",
|
|
},
|
|
"unit_of_measurement": None,
|
|
},
|
|
{
|
|
"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": {
|
|
"attributes": {
|
|
"friendly_name": "Koogeek-LS1-20833F Light Strip",
|
|
"supported_color_modes": ["hs"],
|
|
"supported_features": 0,
|
|
},
|
|
"entity_id": "light.koogeek_ls1_20833f_light_strip",
|
|
"last_changed": ANY,
|
|
"last_updated": ANY,
|
|
"state": "off",
|
|
},
|
|
"unit_of_measurement": None,
|
|
},
|
|
],
|
|
},
|
|
}
|