From f55cd17982da2dd44d180dcd33aa42edd1b2fbfb Mon Sep 17 00:00:00 2001 From: Narmishka <73436375+Narmishka@users.noreply.github.com> Date: Tue, 31 Oct 2023 16:50:17 +0100 Subject: [PATCH] Move Freebox tests to fixtures (#103128) --- tests/components/freebox/const.py | 2893 +---------------- .../freebox/fixtures/call_get_calls_log.json | 35 + .../fixtures/connection_get_status.json | 14 + .../fixtures/home_alarm_get_values.json | 5 + .../freebox/fixtures/home_get_nodes.json | 2545 +++++++++++++++ .../freebox/fixtures/home_pir_get_values.json | 14 + .../freebox/fixtures/lan_get_hosts_list.json | 274 ++ .../freebox/fixtures/storage_get_disks.json | 109 + .../freebox/fixtures/storage_get_raids.json | 64 + .../freebox/fixtures/system_get_config.json | 57 + .../fixtures/wifi_get_global_config.json | 4 + 11 files changed, 3145 insertions(+), 2869 deletions(-) create mode 100644 tests/components/freebox/fixtures/call_get_calls_log.json create mode 100644 tests/components/freebox/fixtures/connection_get_status.json create mode 100644 tests/components/freebox/fixtures/home_alarm_get_values.json create mode 100644 tests/components/freebox/fixtures/home_get_nodes.json create mode 100644 tests/components/freebox/fixtures/home_pir_get_values.json create mode 100644 tests/components/freebox/fixtures/lan_get_hosts_list.json create mode 100644 tests/components/freebox/fixtures/storage_get_disks.json create mode 100644 tests/components/freebox/fixtures/storage_get_raids.json create mode 100644 tests/components/freebox/fixtures/system_get_config.json create mode 100644 tests/components/freebox/fixtures/wifi_get_global_config.json diff --git a/tests/components/freebox/const.py b/tests/components/freebox/const.py index 0cd854b22bf..c2951edf8bb 100644 --- a/tests/components/freebox/const.py +++ b/tests/components/freebox/const.py @@ -1,2888 +1,43 @@ """Test constants.""" +from homeassistant.components.freebox.const import DOMAIN + +from tests.common import load_json_object_fixture + MOCK_HOST = "myrouter.freeboxos.fr" MOCK_PORT = 1234 # router -DATA_SYSTEM_GET_CONFIG = { - "mac": "68:A3:78:00:00:00", - "model_info": { - "has_ext_telephony": True, - "has_speakers_jack": True, - "wifi_type": "2d4_5g", - "pretty_name": "Freebox Server (r2)", - "customer_hdd_slots": 0, - "name": "fbxgw-r2/full", - "has_speakers": True, - "internal_hdd_size": 250, - "has_femtocell_exp": True, - "has_internal_hdd": True, - "has_dect": True, - }, - "fans": [{"id": "fan0_speed", "name": "Ventilateur 1", "value": 2130}], - "sensors": [ - {"id": "temp_hdd", "name": "Disque dur", "value": 40}, - {"id": "temp_hdd2", "name": "Disque dur 2"}, - {"id": "temp_sw", "name": "Température Switch", "value": 50}, - {"id": "temp_cpum", "name": "Température CPU M", "value": 60}, - {"id": "temp_cpub", "name": "Température CPU B", "value": 56}, - ], - "board_name": "fbxgw2r", - "disk_status": "active", - "uptime": "156 jours 19 heures 56 minutes 16 secondes", - "uptime_val": 13550176, - "user_main_storage": "Disque dur", - "box_authenticated": True, - "serial": "762601T190510709", - "firmware_version": "4.2.5", -} +DATA_SYSTEM_GET_CONFIG = load_json_object_fixture("system_get_config.json", DOMAIN) # sensors -DATA_CONNECTION_GET_STATUS = { - "type": "ethernet", - "rate_down": 198900, - "bytes_up": 12035728872949, - "ipv4_port_range": [0, 65535], - "rate_up": 1440000, - "bandwidth_up": 700000000, - "ipv6": "2a01:e35:ffff:ffff::1", - "bandwidth_down": 1000000000, - "media": "ftth", - "state": "up", - "bytes_down": 2355966141297, - "ipv4": "82.67.00.00", -} +DATA_CONNECTION_GET_STATUS = load_json_object_fixture( + "connection_get_status.json", DOMAIN +) -DATA_CALL_GET_CALLS_LOG = [ - { - "number": "0988290475", - "type": "missed", - "id": 94, - "duration": 15, - "datetime": 1613752718, - "contact_id": 0, - "line_id": 0, - "name": "0988290475", - "new": True, - }, - { - "number": "0367250217", - "type": "missed", - "id": 93, - "duration": 25, - "datetime": 1613662328, - "contact_id": 0, - "line_id": 0, - "name": "0367250217", - "new": True, - }, - { - "number": "0184726018", - "type": "missed", - "id": 92, - "duration": 25, - "datetime": 1613225098, - "contact_id": 0, - "line_id": 0, - "name": "0184726018", - "new": True, - }, -] +DATA_CALL_GET_CALLS_LOG = load_json_object_fixture("call_get_calls_log.json", DOMAIN) -DATA_STORAGE_GET_DISKS = [ - { - "idle_duration": 0, - "read_error_requests": 0, - "read_requests": 1815106, - "spinning": True, - "table_type": "raid", - "firmware": "0001", - "type": "sata", - "idle": True, - "connector": 2, - "id": 1000, - "write_error_requests": 0, - "time_before_spindown": 600, - "state": "disabled", - "write_requests": 80386151, - "total_bytes": 2000000000000, - "model": "ST2000LM015-2E8174", - "active_duration": 0, - "temp": 30, - "serial": "ZDZLBFHC", - "partitions": [ - { - "fstype": "raid", - "total_bytes": 0, - "label": "Volume 2000Go", - "id": 1000, - "internal": False, - "fsck_result": "no_run_yet", - "state": "umounted", - "disk_id": 1000, - "free_bytes": 0, - "used_bytes": 0, - "path": "L1ZvbHVtZSAyMDAwR28=", - } - ], - }, - { - "idle_duration": 0, - "read_error_requests": 0, - "read_requests": 3622038, - "spinning": True, - "table_type": "raid", - "firmware": "0001", - "type": "sata", - "idle": True, - "connector": 0, - "id": 2000, - "write_error_requests": 0, - "time_before_spindown": 600, - "state": "disabled", - "write_requests": 80386151, - "total_bytes": 2000000000000, - "model": "ST2000LM015-2E8174", - "active_duration": 0, - "temp": 31, - "serial": "ZDZLEJXE", - "partitions": [ - { - "fstype": "raid", - "total_bytes": 0, - "label": "Volume 2000Go 1", - "id": 2000, - "internal": False, - "fsck_result": "no_run_yet", - "state": "umounted", - "disk_id": 2000, - "free_bytes": 0, - "used_bytes": 0, - "path": "L1ZvbHVtZSAyMDAwR28gMQ==", - } - ], - }, - { - "idle_duration": 0, - "read_error_requests": 0, - "read_requests": 0, - "spinning": False, - "table_type": "superfloppy", - "firmware": "", - "type": "raid", - "idle": False, - "connector": 0, - "id": 3000, - "write_error_requests": 0, - "state": "enabled", - "write_requests": 0, - "total_bytes": 2000000000000, - "model": "", - "active_duration": 0, - "temp": 0, - "serial": "", - "partitions": [ - { - "fstype": "ext4", - "total_bytes": 1960000000000, - "label": "Freebox", - "id": 3000, - "internal": False, - "fsck_result": "no_run_yet", - "state": "mounted", - "disk_id": 3000, - "free_bytes": 1730000000000, - "used_bytes": 236910000000, - "path": "L0ZyZWVib3g=", - } - ], - }, -] +DATA_STORAGE_GET_DISKS = load_json_object_fixture("storage_get_disks.json", DOMAIN) -DATA_STORAGE_GET_RAIDS = [ - { - "degraded": False, - "raid_disks": 2, # Number of members that should be in this array - "next_check": 0, # Unix timestamp of next check in seconds. Might be 0 if check_interval is 0 - "sync_action": "idle", # values: idle, resync, recover, check, repair, reshape, frozen - "level": "raid1", # values: basic, raid0, raid1, raid5, raid10 - "uuid": "dc8679f8-13f9-11ee-9106-38d547790df8", - "sysfs_state": "clear", # values: clear, inactive, suspended, readonly, read_auto, clean, active, write_pending, active_idle - "id": 0, - "sync_completed_pos": 0, # Current position of sync process - "members": [ - { - "total_bytes": 2000000000000, - "active_device": 1, - "id": 1000, - "corrected_read_errors": 0, - "array_id": 0, - "disk": { - "firmware": "0001", - "temp": 29, - "serial": "ZDZLBFHC", - "model": "ST2000LM015-2E8174", - }, - "role": "active", # values: active, faulty, spare, missing - "sct_erc_supported": False, - "sct_erc_enabled": False, - "dev_uuid": "fca8720e-13f9-11ee-9106-38d547790df8", - "device_location": "sata-internal-p2", - "set_name": "Freebox", - "set_uuid": "dc8679f8-13f9-11ee-9106-38d547790df8", - }, - { - "total_bytes": 2000000000000, - "active_device": 0, - "id": 2000, - "corrected_read_errors": 0, - "array_id": 0, - "disk": { - "firmware": "0001", - "temp": 30, - "serial": "ZDZLEJXE", - "model": "ST2000LM015-2E8174", - }, - "role": "active", - "sct_erc_supported": False, - "sct_erc_enabled": False, - "dev_uuid": "16bf00d6-13fa-11ee-9106-38d547790df8", - "device_location": "sata-internal-p0", - "set_name": "Freebox", - "set_uuid": "dc8679f8-13f9-11ee-9106-38d547790df8", - }, - ], - "array_size": 2000000000000, # Size of array in bytes - "state": "running", # stopped, running, error - "sync_speed": 0, # Sync speed in bytes per second - "name": "Freebox", - "check_interval": 0, # Check interval in seconds - "disk_id": 3000, - "last_check": 1682884357, # Unix timestamp of last check in seconds - "sync_completed_end": 0, # End position of sync process: total of bytes to sync - "sync_completed_percent": 0, # Percentage of sync completion - } -] +DATA_STORAGE_GET_RAIDS = load_json_object_fixture("storage_get_raids.json", DOMAIN) # switch -WIFI_GET_GLOBAL_CONFIG = {"enabled": True, "mac_filter_state": "disabled"} +WIFI_GET_GLOBAL_CONFIG = load_json_object_fixture("wifi_get_global_config.json", DOMAIN) # device_tracker -DATA_LAN_GET_HOSTS_LIST = [ - { - "l2ident": {"id": "8C:97:EA:00:00:00", "type": "mac_address"}, - "active": True, - "persistent": False, - "names": [ - {"name": "d633d0c8-958c-43cc-e807-d881b076924b", "source": "mdns"}, - {"name": "Freebox Player POP", "source": "mdns_srv"}, - ], - "vendor_name": "Freebox SAS", - "host_type": "smartphone", - "interface": "pub", - "id": "ether-8c:97:ea:00:00:00", - "last_time_reachable": 1614107652, - "primary_name_manual": False, - "l3connectivities": [ - { - "addr": "192.168.1.180", - "active": True, - "reachable": True, - "last_activity": 1614107614, - "af": "ipv4", - "last_time_reachable": 1614104242, - }, - { - "addr": "fe80::dcef:dbba:6604:31d1", - "active": True, - "reachable": True, - "last_activity": 1614107645, - "af": "ipv6", - "last_time_reachable": 1614107645, - }, - { - "addr": "2a01:e34:eda1:eb40:8102:4704:7ce0:2ace", - "active": False, - "reachable": False, - "last_activity": 1611574428, - "af": "ipv6", - "last_time_reachable": 1611574428, - }, - { - "addr": "2a01:e34:eda1:eb40:c8e5:c524:c96d:5f5e", - "active": False, - "reachable": False, - "last_activity": 1612475101, - "af": "ipv6", - "last_time_reachable": 1612475101, - }, - { - "addr": "2a01:e34:eda1:eb40:583a:49df:1df0:c2df", - "active": True, - "reachable": True, - "last_activity": 1614107652, - "af": "ipv6", - "last_time_reachable": 1614107652, - }, - { - "addr": "2a01:e34:eda1:eb40:147e:3569:86ab:6aaa", - "active": False, - "reachable": False, - "last_activity": 1612486752, - "af": "ipv6", - "last_time_reachable": 1612486752, - }, - ], - "default_name": "Freebox Player POP", - "model": "fbx8am", - "reachable": True, - "last_activity": 1614107652, - "primary_name": "Freebox Player POP", - }, - { - "l2ident": {"id": "DE:00:B0:00:00:00", "type": "mac_address"}, - "active": False, - "persistent": False, - "vendor_name": "", - "host_type": "workstation", - "interface": "pub", - "id": "ether-de:00:b0:00:00:00", - "last_time_reachable": 1607125599, - "primary_name_manual": False, - "default_name": "", - "l3connectivities": [ - { - "addr": "192.168.1.181", - "active": False, - "reachable": False, - "last_activity": 1607125599, - "af": "ipv4", - "last_time_reachable": 1607125599, - }, - { - "addr": "192.168.1.182", - "active": False, - "reachable": False, - "last_activity": 1605958758, - "af": "ipv4", - "last_time_reachable": 1605958758, - }, - { - "addr": "2a01:e34:eda1:eb40:dc00:b0ff:fedf:e30", - "active": False, - "reachable": False, - "last_activity": 1607125594, - "af": "ipv6", - "last_time_reachable": 1607125594, - }, - ], - "reachable": False, - "last_activity": 1607125599, - "primary_name": "", - }, - { - "l2ident": {"id": "DC:00:B0:00:00:00", "type": "mac_address"}, - "active": True, - "persistent": False, - "names": [ - {"name": "Repeteur-Wifi-Freebox", "source": "mdns"}, - {"name": "Repeteur Wifi Freebox", "source": "mdns_srv"}, - ], - "vendor_name": "", - "host_type": "freebox_wifi", - "interface": "pub", - "id": "ether-dc:00:b0:00:00:00", - "last_time_reachable": 1614107678, - "primary_name_manual": False, - "l3connectivities": [ - { - "addr": "192.168.1.145", - "active": True, - "reachable": True, - "last_activity": 1614107678, - "af": "ipv4", - "last_time_reachable": 1614107678, - }, - { - "addr": "fe80::de00:b0ff:fe52:6ef6", - "active": True, - "reachable": True, - "last_activity": 1614107608, - "af": "ipv6", - "last_time_reachable": 1614107603, - }, - { - "addr": "2a01:e34:eda1:eb40:de00:b0ff:fe52:6ef6", - "active": True, - "reachable": True, - "last_activity": 1614107618, - "af": "ipv6", - "last_time_reachable": 1614107618, - }, - ], - "default_name": "Repeteur Wifi Freebox", - "model": "fbxwmr", - "reachable": True, - "last_activity": 1614107678, - "primary_name": "Repeteur Wifi Freebox", - }, - { - "l2ident": {"id": "5E:65:55:00:00:00", "type": "mac_address"}, - "active": False, - "persistent": False, - "names": [ - {"name": "iPhoneofQuentin", "source": "dhcp"}, - {"name": "iPhone-of-Quentin", "source": "mdns"}, - ], - "vendor_name": "", - "host_type": "smartphone", - "interface": "pub", - "id": "ether-5e:65:55:00:00:00", - "last_time_reachable": 1612611982, - "primary_name_manual": False, - "default_name": "iPhonedeQuentin", - "l3connectivities": [ - { - "addr": "192.168.1.148", - "active": False, - "reachable": False, - "last_activity": 1612611973, - "af": "ipv4", - "last_time_reachable": 1612611973, - }, - { - "addr": "fe80::14ca:6c30:938b:e281", - "active": False, - "reachable": False, - "last_activity": 1609693223, - "af": "ipv6", - "last_time_reachable": 1609693223, - }, - { - "addr": "fe80::1c90:2b94:1ba2:bd8b", - "active": False, - "reachable": False, - "last_activity": 1610797303, - "af": "ipv6", - "last_time_reachable": 1610797303, - }, - { - "addr": "fe80::8c8:e58b:838e:6785", - "active": False, - "reachable": False, - "last_activity": 1612611951, - "af": "ipv6", - "last_time_reachable": 1612611946, - }, - { - "addr": "2a01:e34:eda1:eb40:f0e7:e198:3a69:58", - "active": False, - "reachable": False, - "last_activity": 1609693245, - "af": "ipv6", - "last_time_reachable": 1609693245, - }, - { - "addr": "2a01:e34:eda1:eb40:1dc4:c6f8:aa20:c83b", - "active": False, - "reachable": False, - "last_activity": 1610797176, - "af": "ipv6", - "last_time_reachable": 1610797176, - }, - { - "addr": "2a01:e34:eda1:eb40:6cf6:5811:1770:c662", - "active": False, - "reachable": False, - "last_activity": 1612611982, - "af": "ipv6", - "last_time_reachable": 1612611982, - }, - { - "addr": "2a01:e34:eda1:eb40:438:9b2c:4f8f:f48a", - "active": False, - "reachable": False, - "last_activity": 1612611946, - "af": "ipv6", - "last_time_reachable": 1612611946, - }, - ], - "reachable": False, - "last_activity": 1612611982, - "primary_name": "iPhoneofQuentin", - }, -] - -# Home -# PIR node id 26, endpoint id 6 -DATA_HOME_PIR_GET_VALUES = { - "category": "", - "ep_type": "signal", - "id": 6, - "label": "Détection", - "name": "trigger", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", -} - -# Home -# ALARM node id 7, endpoint id 11 -DATA_HOME_ALARM_GET_VALUES = { - "refresh": 2000, - "value": "alarm2_armed", - "value_type": "string", -} +DATA_LAN_GET_HOSTS_LIST = load_json_object_fixture("lan_get_hosts_list.json", DOMAIN) # Home # ALL -DATA_HOME_GET_NODES = [ - { - "adapter": 2, - "area": 38, - "category": "camera", - "group": {"label": "Salon"}, - "id": 16, - "label": "Caméra II", - "name": "node_16", - "props": { - "Ip": "192.169.0.2", - "Login": "camfreebox", - "Mac": "34:2d:f2:e5:9d:ff", - "Pass": "xxxxx", - "Stream": "http://freeboxcam:mv...tream.m3u8", - }, - "show_endpoints": [ - { - "category": "", - "ep_type": "slot", - "id": 0, - "label": "Détection", - "name": "detection", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 1, - "label": "Activé avec l'alarme", - "name": "activation", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 2, - "label": "Haute qualité vidéo", - "name": "quality", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 3, - "label": "Sensibilité", - "name": "sensitivity", - "ui": {"access": "rw", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 4, - "label": "Seuil", - "name": "threshold", - "ui": {"access": "rw", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 5, - "label": "Retourner verticalement", - "name": "flip", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 6, - "label": "Horodatage", - "name": "timestamp", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 7, - "label": "Volume du micro", - "name": "volume", - "ui": {"access": "w", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 9, - "label": "Détection de bruit", - "name": "sound_detection", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 10, - "label": "Sensibilité du micro", - "name": "sound_trigger", - "ui": {"access": "w", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 11, - "label": "Flux rtsp", - "name": "rtsp", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 12, - "label": "Emplacement des vidéos", - "name": "disk", - "ui": {"access": "rw", "display": "disk"}, - "value": "", - "value_type": "string", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 13, - "label": "Détection ", - "name": "detection", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/xxxx.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 14, - "label": "Activé avec l'alarme", - "name": "activation", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Ce réglage permet d'activer l'enregistrement de la caméra uniquement quand l'alarme est activée.", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/alert_toggle.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 15, - "label": "Haute qualité vidéo", - "name": "quality", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Les vidéos seront enregistrées en 720p en haute qualité et 480p en qualité réduite.\r\n\r\nNous vous recommandons de laisser cette option désactivée si vous avez des difficultés de lecture des fichiers à distance.", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Flux.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 16, - "label": "Sensibilité", - "name": "sensitivity", - "refresh": 2000, - "ui": { - "access": "r", - "description": "La sensibilité définit la faculté d'un pixel à être sensible aux changements.\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute, plus les déclenchements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 3, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 17, - "label": "Seuil", - "name": "threshold", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Le seuil définit le nombre de pixels devant changer pour déclencher la détection .\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute moins les déclenchements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 2, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 18, - "label": "Retourner verticalement", - "name": "flip", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Retour.png", - }, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 19, - "label": "Horodatage", - "name": "timestamp", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Horloge.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 20, - "label": "Volume du micro", - "name": "volume", - "refresh": 2000, - "ui": { - "access": "r", - "display": "slider", - "icon_url": "/resources/images/home/pictos/commande_vocale.png", - "range": [...], - }, - "value": 100, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 22, - "label": "Détection de bruit", - "name": "sound_detection", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/commande_vocale.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 23, - "label": "Sensibilité du micro", - "name": "sound_trigger", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Quatre réglages sont disponibles pour la sensibilité du micro (1-4).\r\n\r\nPlus cette valeur est haute, plus les enregistrements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 3, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 24, - "label": "Flux rtsp", - "name": "rtsp", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Active le flux RTSP à l'adresse rtsp://ip_camera/live", - "display": "toggle", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 25, - "label": "Niveau de réception", - "name": "rssi", - "refresh": 2000, - "ui": { - "access": "r", - "display": "icon", - "icon_range": [...], - "icon_url": "/resources/images/home/pictos/reception_%.png", - "range": [...], - "status_text_range": [...], - "unit": "dB", - }, - "value": -75, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 26, - "label": "Emplacement des vidéos", - "name": "disk", - "refresh": 2000, - "ui": { - "access": "r", - "display": "disk", - "icon_url": "/resources/images/home/pictos/directory.png", - }, - "value": "Freebox", - "value_type": "string", - "visibility": "normal", - }, - ], - "signal_links": [], - "slot_links": [{...}], - "status": "active", - "type": { - "abstract": False, - "endpoints": [ - { - "category": "", - "ep_type": "slot", - "id": 0, - "label": "Détection ", - "name": "detection", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 1, - "label": "Activé avec l'alarme", - "name": "activation", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 2, - "label": "Haute qualité vidéo", - "name": "quality", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 3, - "label": "Sensibilité", - "name": "sensitivity", - "ui": {"access": "rw", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 4, - "label": "Seuil", - "name": "threshold", - "ui": {"access": "rw", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 5, - "label": "Retourner verticalement", - "name": "flip", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 6, - "label": "Horodatage", - "name": "timestamp", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 7, - "label": "Volume du micro", - "name": "volume", - "ui": {"access": "w", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 9, - "label": "Détection de bruit", - "name": "sound_detection", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 10, - "label": "Sensibilité du micro", - "name": "sound_trigger", - "ui": {"access": "w", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 11, - "label": "Flux rtsp", - "name": "rtsp", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 12, - "label": "Emplacement des vidéos", - "name": "disk", - "ui": {"access": "rw", "display": "disk"}, - "value": "", - "value_type": "string", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 13, - "label": "Détection ", - "name": "detection", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/xxxx.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 14, - "label": "Activé avec l'alarme", - "name": "activation", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Ce réglage permet d'activer l'enregistrement de la caméra uniquement quand l'alarme est activée.", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/alert_toggle.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 15, - "label": "Haute qualité vidéo", - "name": "quality", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Les vidéos seront enregistrées en 720p en haute qualité et 480p en qualité réduite.\r\n\r\nNous vous recommandons de laisser cette option désactivée si vous avez des difficultés de lecture des fichiers à distance.", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Flux.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 16, - "label": "Sensibilité", - "name": "sensitivity", - "refresh": 2000, - "ui": { - "access": "r", - "description": "La sensibilité définit la faculté d'un pixel à être sensible aux changements.\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute, plus les déclenchements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 3, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 17, - "label": "Seuil", - "name": "threshold", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Le seuil définit le nombre de pixels devant changer pour déclencher la détection .\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute moins les déclenchements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 2, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 18, - "label": "Retourner verticalement", - "name": "flip", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Retour.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 19, - "label": "Horodatage", - "name": "timestamp", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Horloge.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 20, - "label": "Volume du micro", - "name": "volume", - "refresh": 2000, - "ui": { - "access": "r", - "display": "slider", - "icon_url": "/resources/images/home/pictos/commande_vocale.png", - "range": [...], - }, - "value": 80, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 22, - "label": "Détection de bruit", - "name": "sound_detection", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/commande_vocale.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 23, - "label": "Sensibilité du micro", - "name": "sound_trigger", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Quatre réglages sont disponibles pour la sensibilité du micro (1-4).\r\n\r\nPlus cette valeur est haute, plus les enregistrements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 3, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 24, - "label": "Flux rtsp", - "name": "rtsp", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Active le flux RTSP à l'adresse rtsp://ip_camera/live", - "display": "toggle", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 25, - "label": "Niveau de réception", - "name": "rssi", - "refresh": 2000, - "ui": { - "access": "r", - "display": "icon", - "icon_range": [...], - "icon_url": "/resources/images/home/pictos/reception_%.png", - "range": [...], - "status_text_range": [...], - "unit": "dB", - }, - "value": -49, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 26, - "label": "Emplacement des vidéos", - "name": "disk", - "refresh": 2000, - "ui": { - "access": "r", - "display": "disk", - "icon_url": "/resources/images/home/pictos/directory.png", - }, - "value": "Freebox", - "value_type": "string", - "visibility": "normal", - }, - ], - "generic": False, - "icon": "/resources/images/ho...camera.png", - "inherit": "node::cam", - "label": "Caméra Freebox", - "name": "node::cam::freebox", - "params": {}, - "physical": True, - }, - }, - { - "adapter": 1, - "area": 38, - "category": "camera", - "group": {"label": "Salon"}, - "id": 15, - "label": "Caméra I", - "name": "node_15", - "props": { - "Ip": "192.169.0.2", - "Login": "camfreebox", - "Mac": "34:2d:f2:e5:9d:ff", - "Pass": "xxxxx", - "Stream": "http://freeboxcam:mv...tream.m3u8", - }, - "show_endpoints": [ - { - "category": "", - "ep_type": "slot", - "id": 0, - "label": "Détection ", - "name": "detection", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 1, - "label": "Activé avec l'alarme", - "name": "activation", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 2, - "label": "Haute qualité vidéo", - "name": "quality", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 3, - "label": "Sensibilité", - "name": "sensitivity", - "ui": {"access": "rw", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 4, - "label": "Seuil", - "name": "threshold", - "ui": {"access": "rw", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 5, - "label": "Retourner verticalement", - "name": "flip", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 6, - "label": "Horodatage", - "name": "timestamp", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 7, - "label": "Volume du micro", - "name": "volume", - "ui": {"access": "w", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 9, - "label": "Détection de bruit", - "name": "sound_detection", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 10, - "label": "Sensibilité du micro", - "name": "sound_trigger", - "ui": {"access": "w", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 11, - "label": "Flux rtsp", - "name": "rtsp", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 12, - "label": "Emplacement des vidéos", - "name": "disk", - "ui": {"access": "rw", "display": "disk"}, - "value": "", - "value_type": "string", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 13, - "label": "Détection ", - "name": "detection", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/xxxx.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 14, - "label": "Activé avec l'alarme", - "name": "activation", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Ce réglage permet d'activer l'enregistrement de la caméra uniquement quand l'alarme est activée.", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/alert_toggle.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 15, - "label": "Haute qualité vidéo", - "name": "quality", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Les vidéos seront enregistrées en 720p en haute qualité et 480p en qualité réduite.\r\n\r\nNous vous recommandons de laisser cette option désactivée si vous avez des difficultés de lecture des fichiers à distance.", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Flux.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 16, - "label": "Sensibilité", - "name": "sensitivity", - "refresh": 2000, - "ui": { - "access": "r", - "description": "La sensibilité définit la faculté d'un pixel à être sensible aux changements.\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute, plus les déclenchements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 3, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 17, - "label": "Seuil", - "name": "threshold", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Le seuil définit le nombre de pixels devant changer pour déclencher la détection .\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute moins les déclenchements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 2, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 18, - "label": "Retourner verticalement", - "name": "flip", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Retour.png", - }, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 19, - "label": "Horodatage", - "name": "timestamp", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Horloge.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 20, - "label": "Volume du micro", - "name": "volume", - "refresh": 2000, - "ui": { - "access": "r", - "display": "slider", - "icon_url": "/resources/images/home/pictos/commande_vocale.png", - "range": [...], - }, - "value": 100, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 22, - "label": "Détection de bruit", - "name": "sound_detection", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/commande_vocale.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 23, - "label": "Sensibilité du micro", - "name": "sound_trigger", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Quatre réglages sont disponibles pour la sensibilité du micro (1-4).\r\n\r\nPlus cette valeur est haute, plus les enregistrements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 3, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 24, - "label": "Flux rtsp", - "name": "rtsp", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Active le flux RTSP à l'adresse rtsp://ip_camera/live", - "display": "toggle", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 25, - "label": "Niveau de réception", - "name": "rssi", - "refresh": 2000, - "ui": { - "access": "r", - "display": "icon", - "icon_range": [...], - "icon_url": "/resources/images/home/pictos/reception_%.png", - "range": [...], - "status_text_range": [...], - "unit": "dB", - }, - "value": -75, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 26, - "label": "Emplacement des vidéos", - "name": "disk", - "refresh": 2000, - "ui": { - "access": "r", - "display": "disk", - "icon_url": "/resources/images/home/pictos/directory.png", - }, - "value": "Freebox", - "value_type": "string", - "visibility": "normal", - }, - ], - "signal_links": [], - "slot_links": [{...}], - "status": "active", - "type": { - "abstract": False, - "endpoints": [ - { - "category": "", - "ep_type": "slot", - "id": 0, - "label": "Détection ", - "name": "detection", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 1, - "label": "Activé avec l'alarme", - "name": "activation", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 2, - "label": "Haute qualité vidéo", - "name": "quality", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 3, - "label": "Sensibilité", - "name": "sensitivity", - "ui": {"access": "rw", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 4, - "label": "Seuil", - "name": "threshold", - "ui": {"access": "rw", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 5, - "label": "Retourner verticalement", - "name": "flip", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 6, - "label": "Horodatage", - "name": "timestamp", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 7, - "label": "Volume du micro", - "name": "volume", - "ui": {"access": "w", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 9, - "label": "Détection de bruit", - "name": "sound_detection", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 10, - "label": "Sensibilité du micro", - "name": "sound_trigger", - "ui": {"access": "w", "display": "slider", "range": [...]}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 11, - "label": "Flux rtsp", - "name": "rtsp", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 12, - "label": "Emplacement des vidéos", - "name": "disk", - "ui": {"access": "rw", "display": "disk"}, - "value": "", - "value_type": "string", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 13, - "label": "Détection ", - "name": "detection", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/xxxx.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 14, - "label": "Activé avec l'alarme", - "name": "activation", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Ce réglage permet d'activer l'enregistrement de la caméra uniquement quand l'alarme est activée.", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/alert_toggle.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 15, - "label": "Haute qualité vidéo", - "name": "quality", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Les vidéos seront enregistrées en 720p en haute qualité et 480p en qualité réduite.\r\n\r\nNous vous recommandons de laisser cette option désactivée si vous avez des difficultés de lecture des fichiers à distance.", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Flux.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 16, - "label": "Sensibilité", - "name": "sensitivity", - "refresh": 2000, - "ui": { - "access": "r", - "description": "La sensibilité définit la faculté d'un pixel à être sensible aux changements.\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute, plus les déclenchements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 3, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 17, - "label": "Seuil", - "name": "threshold", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Le seuil définit le nombre de pixels devant changer pour déclencher la détection .\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute moins les déclenchements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 2, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 18, - "label": "Retourner verticalement", - "name": "flip", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Retour.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 19, - "label": "Horodatage", - "name": "timestamp", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/Horloge.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 20, - "label": "Volume du micro", - "name": "volume", - "refresh": 2000, - "ui": { - "access": "r", - "display": "slider", - "icon_url": "/resources/images/home/pictos/commande_vocale.png", - "range": [...], - }, - "value": 80, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 22, - "label": "Détection de bruit", - "name": "sound_detection", - "refresh": 2000, - "ui": { - "access": "r", - "display": "toggle", - "icon_url": "/resources/images/home/pictos/commande_vocale.png", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 23, - "label": "Sensibilité du micro", - "name": "sound_trigger", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Quatre réglages sont disponibles pour la sensibilité du micro (1-4).\r\n\r\nPlus cette valeur est haute, plus les enregistrements seront fréquents.", - "display": "slider", - "range": [...], - }, - "value": 3, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 24, - "label": "Flux rtsp", - "name": "rtsp", - "refresh": 2000, - "ui": { - "access": "r", - "description": "Active le flux RTSP à l'adresse rtsp://ip_camera/live", - "display": "toggle", - }, - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 25, - "label": "Niveau de réception", - "name": "rssi", - "refresh": 2000, - "ui": { - "access": "r", - "display": "icon", - "icon_range": [...], - "icon_url": "/resources/images/home/pictos/reception_%.png", - "range": [...], - "status_text_range": [...], - "unit": "dB", - }, - "value": -49, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 26, - "label": "Emplacement des vidéos", - "name": "disk", - "refresh": 2000, - "ui": { - "access": "r", - "display": "disk", - "icon_url": "/resources/images/home/pictos/directory.png", - }, - "value": "Freebox", - "value_type": "string", - "visibility": "normal", - }, - ], - "generic": False, - "icon": "/resources/images/ho...camera.png", - "inherit": "node::cam", - "label": "Caméra Freebox", - "name": "node::cam::freebox", - "params": {}, - "physical": True, - }, - }, - { - "adapter": 5, - "category": "kfb", - "group": {"label": ""}, - "id": 9, - "label": "Télécommande", - "name": "node_9", - "props": { - "Address": 5, - "Challenge": "65ae6b4def41f3e3a5a77ec63e988", - "FwVersion": 29798318, - "Gateway": 1, - "ItemId": "e76c2b75a4a6e2", - }, - "show_endpoints": [ - { - "category": "", - "ep_type": "slot", - "id": 0, - "label": "Activé", - "name": "enable", - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 1, - "label": "Activé", - "name": "enable", - "value": True, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 2, - "label": "Bouton appuyé", - "name": "pushed", - "value": None, - "value_type": "int", - }, - { - "category": "", - "ep_type": "signal", - "id": 3, - "label": "Niveau de Batterie", - "name": "battery", - "refresh": 2000, - "value": 100, - "value_type": "int", - }, - ], - "signal_links": [ - { - "adapter": 5, - "category": "alarm", - "id": 7, - "label": "Système d alarme", - "link_id": 10, - "name": "node_7", - "status": "active", - }, - ], - "slot_links": [], - "status": "active", - "type": { - "abstract": False, - "endpoints": [...], - "generic": False, - "icon": "/resources/images/home/pictos/telecommande.png", - "inherit": "node::domus", - "label": "Télécommande pour alarme", - "name": "node::domus::sercomm::keyfob", - "params": {}, - "physical": True, - }, - }, - { - "adapter": 5, - "area": 40, - "category": "dws", - "group": {"label": "Entrée"}, - "id": 11, - "label": "Ouverture porte", - "name": "node_11", - "props": { - "Address": 6, - "Challenge": "964a2dddf2c40c3e2384f66d2", - "FwVersion": 29798220, - "Gateway": 1, - "ItemId": "9eff759dd553de7", - }, - "show_endpoints": [ - { - "category": "", - "ep_type": "slot", - "id": 0, - "label": "Alarme principale", - "name": "alarm1", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 1, - "label": "Alarme secondaire", - "name": "alarm2", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 2, - "label": "Zone temporisée", - "name": "timed", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 7, - "label": "Couvercle", - "name": "cover", - "refresh": 2000, - "ui": { - "access": "r", - "display": "warning", - "icon_url": "/resources/images/home/pictos/warning.png", - }, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 8, - "label": "Niveau de Batterie", - "name": "battery", - "refresh": 2000, - "ui": { - "access": "r", - "display": "icon", - "icon_range": [...], - "icon_url": "/resources/images/home/pictos/batt_%.png", - "range": [...], - "status_text_range": [...], - "unit": "%", - }, - "value": 100, - "value_type": "int", - "visibility": "normal", - }, - ], - "signal_links": [ - { - "adapter": 5, - "category": "alarm", - "id": 7, - "label": "Système d alarme", - "link_id": 12, - "name": "node_7", - "status": "active", - } - ], - "slot_links": [], - "status": "active", - "type": { - "abstract": False, - "endpoints": [ - { - "ep_type": "slot", - "id": 0, - "label": "Alarme principale", - "name": "alarm1", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "slot", - "id": 1, - "label": "Alarme secondaire", - "name": "alarm2", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "slot", - "id": 2, - "label": "Zone temporisée", - "name": "timed", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 3, - "label": "Alarme principale", - "name": "alarm1", - "param_type": "void", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 4, - "label": "Alarme secondaire", - "name": "alarm2", - "param_type": "void", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 5, - "label": "Zone temporisée", - "name": "timed", - "param_type": "void", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 6, - "label": "Détection", - "name": "trigger", - "param_type": "void", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 7, - "label": "Couvercle", - "name": "cover", - "param_type": "void", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 8, - "label": "Niveau de Batterie", - "name": "1battery", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 9, - "label": "Batterie faible", - "name": "battery_warning", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 10, - "label": "Alarme", - "name": "alarm", - "param_type": "void", - "value_type": "void", - "visibility": "internal", - }, - ], - "generic": False, - "icon": "/resources/images/home/pictos/detecteur_ouverture.png", - "inherit": "node::domus", - "label": "Détecteur d'ouverture de porte", - "name": "node::domus::sercomm::doorswitch", - "params": {}, - "physical": True, - }, - }, - { - "adapter": 5, - "area": 38, - "category": "pir", - "group": {"label": "Salon"}, - "id": 26, - "label": "Détecteur", - "name": "node_26", - "props": { - "Address": 9, - "Challenge": "ed2cc17f179862f5242256b3f597c367", - "FwVersion": 29871925, - "Gateway": 1, - "ItemId": "240d000f9fefe576", - }, - "show_endpoints": [ - { - "category": "", - "ep_type": "slot", - "id": 0, - "label": "Alarme principale", - "name": "alarm1", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 1, - "label": "Alarme secondaire", - "name": "alarm2", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 2, - "label": "Zone temporisée", - "name": "timed", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 6, - "label": "Détection", - "name": "trigger", - "ui": {"access": "w", "display": "toggle"}, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 7, - "label": "Couvercle", - "name": "cover", - "refresh": 2000, - "ui": { - "access": "r", - "display": "warning", - "icon_url": "/resources/images/home/pictos/warning.png", - }, - "value": False, - "value_type": "bool", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 8, - "label": "Niveau de Batterie", - "name": "battery", - "refresh": 2000, - "ui": { - "access": "r", - "display": "icon", - "icon_range": [...], - "icon_url": "/resources/images/home/pictos/batt_x.png", - "status_text_range": [...], - "unit": "%", - }, - "value": 100, - "value_type": "int", - "visibility": "normal", - }, - ], - "signal_links": [ - { - "adapter": 5, - "category": "alarm", - "id": 7, - "label": "Système d alarme", - "link_id": 12, - "name": "node_7", - "status": "active", - } - ], - "slot_links": [], - "status": "active", - "type": { - "abstract": False, - "endpoints": [ - { - "ep_type": "slot", - "id": 0, - "label": "Alarme principale", - "name": "alarm1", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "slot", - "id": 1, - "label": "Alarme secondaire", - "name": "alarm2", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "slot", - "id": 2, - "label": "Zone temporisée", - "name": "timed", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 3, - "label": "Alarme principale", - "name": "alarm1", - "param_type": "void", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 4, - "label": "Alarme secondaire", - "name": "alarm2", - "param_type": "void", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 5, - "label": "Zone temporisée", - "name": "timed", - "param_type": "void", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 6, - "label": "Détection", - "name": "trigger", - "param_type": "void", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 7, - "label": "Couvercle", - "name": "cover", - "param_type": "void", - "value_type": "bool", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 8, - "label": "Niveau de Batterie", - "name": "battery", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 9, - "label": "Batterie faible", - "name": "battery_warning", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 10, - "label": "Alarme", - "name": "alarm", - "param_type": "void", - "value_type": "void", - "visibility": "internal", - }, - ], - "generic": False, - "icon": "/resources/images/home/pictos/detecteur_xxxx.png", - "inherit": "node::domus", - "label": "Détecteur infrarouge", - "name": "node::domus::sercomm::pir", - "params": {}, - "physical": True, - }, - }, - { - "adapter": 10, - "area": 38, - "category": "shutter", - "group": {"label": "Salon"}, - "id": 150, - "label": "Shutter 1", - "name": "node_150", - "type": { - "inherit": "node::trs", - }, - }, - { - "adapter": 11, - "area": 38, - "category": "shutter", - "group": {"label": "Salon"}, - "id": 151, - "label": "Shutter 2", - "name": "node_151", - "type": { - "inherit": "node::ios", - }, - }, - { - "adapter": 5, - "category": "alarm", - "group": {"label": ""}, - "id": 7, - "label": "Système d'alarme", - "name": "node_7", - "props": { - "Address": 3, - "Challenge": "447599f5cab8620122b913e55faf8e1d", - "FwVersion": 47396239, - "Gateway": 1, - "ItemId": "e515a55b04f32e6d", - }, - "show_endpoints": [ - { - "category": "", - "ep_type": "slot", - "id": 5, - "label": "Code PIN", - "name": "pin", - "ui": {...}, - "value": "", - "value_type": "string", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 6, - "label": "Puissance des bips", - "name": "sound", - "ui": {...}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "slot", - "id": 7, - "label": "Puissance de la sirène", - "name": "volume", - "ui": {...}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "alarm", - "ep_type": "slot", - "id": 8, - "label": "Délai avant armement", - "name": "timeout1", - "ui": {...}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "alarm", - "ep_type": "slot", - "id": 9, - "label": "Délai avant sirène", - "name": "timeout2", - "ui": {...}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "alarm", - "ep_type": "slot", - "id": 10, - "label": "Durée de la sirène", - "name": "timeout3", - "ui": {...}, - "value": 0, - "value_type": "int", - "visibility": "normal", - }, - { - "category": "", - "ep_type": "signal", - "id": 12, - "label": "Code PIN", - "name": "pin", - "refresh": 2000, - "ui": {...}, - "value": "0000", - "value_type": "string", - }, - { - "category": "", - "ep_type": "signal", - "id": 14, - "label": "Puissance des bips", - "name": "sound", - "refresh": 2000, - "ui": {...}, - "value": 1, - "value_type": "int", - }, - { - "category": "", - "ep_type": "signal", - "id": 15, - "label": "Puissance de la sirène", - "name": "volume", - "refresh": 2000, - "ui": {...}, - "value": 100, - "value_type": "int", - }, - { - "category": "alarm", - "ep_type": "signal", - "id": 16, - "label": "Délai avant armement", - "name": "timeout1", - "refresh": 2000, - "ui": {...}, - "value": 15, - "value_type": "int", - }, - { - "category": "alarm", - "ep_type": "signal", - "id": 17, - "label": "Délai avant sirène", - "name": "timeout2", - "refresh": 2000, - "ui": {...}, - "value": 15, - "value_type": "int", - }, - { - "category": "alarm", - "ep_type": "signal", - "id": 18, - "label": "Durée de la sirène", - "name": "timeout3", - "refresh": 2000, - "ui": {...}, - "value": 300, - "value_type": "int", - }, - { - "category": "", - "ep_type": "signal", - "id": 19, - "label": "Niveau de Batterie", - "name": "battery", - "refresh": 2000, - "ui": {...}, - "value": 85, - "value_type": "int", - }, - ], - "type": { - "abstract": False, - "endpoints": [ - { - "ep_type": "slot", - "id": 0, - "label": "Trigger", - "name": "trigger", - "value_type": "void", - "visibility": "internal", - }, - { - "ep_type": "slot", - "id": 1, - "label": "Alarme principale", - "name": "alarm1", - "value_type": "void", - "visibility": "normal", - }, - { - "ep_type": "slot", - "id": 2, - "label": "Alarme secondaire", - "name": "alarm2", - "value_type": "void", - "visibility": "internal", - }, - { - "ep_type": "slot", - "id": 3, - "label": "Passer le délai", - "name": "skip", - "value_type": "void", - "visibility": "internal", - }, - { - "ep_type": "slot", - "id": 4, - "label": "Désactiver l'alarme", - "name": "off", - "value_type": "void", - "visibility": "internal", - }, - { - "ep_type": "slot", - "id": 5, - "label": "Code PIN", - "name": "pin", - "value_type": "string", - "visibility": "normal", - }, - { - "ep_type": "slot", - "id": 6, - "label": "Puissance des bips", - "name": "sound", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "slot", - "id": 7, - "label": "Puissance de la sirène", - "name": "volume", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "slot", - "id": 8, - "label": "Délai avant armement", - "name": "timeout1", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "slot", - "id": 9, - "label": "Délai avant sirène", - "name": "timeout2", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "slot", - "id": 10, - "label": "Durée de la sirène", - "name": "timeout3", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 11, - "label": "État de l'alarme", - "name": "state", - "param_type": "void", - "value_type": "string", - "visibility": "internal", - }, - { - "ep_type": "signal", - "id": 12, - "label": "Code PIN", - "name": "pin", - "param_type": "void", - "value_type": "string", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 13, - "label": "Erreur", - "name": "error", - "param_type": "void", - "value_type": "string", - "visibility": "internal", - }, - { - "ep_type": "signal", - "id": 14, - "label": "Puissance des bips", - "name": "sound", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 15, - "label": "Puissance de la sirène", - "name": "volume", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 16, - "label": "Délai avant armement", - "name": "timeout1", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 17, - "label": "Délai avant sirène", - "name": "timeout2", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 18, - "label": "Durée de la sirène", - "name": "timeout3", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 19, - "label": "Niveau de Batterie", - "name": "battery", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - { - "ep_type": "signal", - "id": 20, - "label": "Batterie faible", - "name": "battery_warning", - "param_type": "void", - "value_type": "int", - "visibility": "normal", - }, - ], - "generic": False, - "icon": "/resources/images/home/pictos/alarm_system.png", - "inherit": "node::domus", - "label": "Système d'alarme", - "name": "node::domus::freebox::secmod", - "params": {}, - "physical": True, - }, - }, -] +DATA_HOME_GET_NODES = load_json_object_fixture("home_get_nodes.json", DOMAIN) + +# Home +# PIR node id 26, endpoint id 6 +DATA_HOME_PIR_GET_VALUES = load_json_object_fixture("home_pir_get_values.json", DOMAIN) + +# Home +# ALARM node id 7, endpoint id 11 +DATA_HOME_ALARM_GET_VALUES = load_json_object_fixture( + "home_alarm_get_values.json", DOMAIN +) diff --git a/tests/components/freebox/fixtures/call_get_calls_log.json b/tests/components/freebox/fixtures/call_get_calls_log.json new file mode 100644 index 00000000000..4ee641dc0c5 --- /dev/null +++ b/tests/components/freebox/fixtures/call_get_calls_log.json @@ -0,0 +1,35 @@ +[ + { + "number": "0988290475", + "type": "missed", + "id": 94, + "duration": 15, + "datetime": 1613752718, + "contact_id": 0, + "line_id": 0, + "name": "0988290475", + "new": true + }, + { + "number": "0367250217", + "type": "missed", + "id": 93, + "duration": 25, + "datetime": 1613662328, + "contact_id": 0, + "line_id": 0, + "name": "0367250217", + "new": true + }, + { + "number": "0184726018", + "type": "missed", + "id": 92, + "duration": 25, + "datetime": 1613225098, + "contact_id": 0, + "line_id": 0, + "name": "0184726018", + "new": true + } +] diff --git a/tests/components/freebox/fixtures/connection_get_status.json b/tests/components/freebox/fixtures/connection_get_status.json new file mode 100644 index 00000000000..362ac71edf0 --- /dev/null +++ b/tests/components/freebox/fixtures/connection_get_status.json @@ -0,0 +1,14 @@ +{ + "type": "ethernet", + "rate_down": 198900, + "bytes_up": 12035728872949, + "ipv4_port_range": [0, 65535], + "rate_up": 1440000, + "bandwidth_up": 700000000, + "ipv6": "2a01:e35:ffff:ffff::1", + "bandwidth_down": 1000000000, + "media": "ftth", + "state": "up", + "bytes_down": 2355966141297, + "ipv4": "82.67.00.00" +} diff --git a/tests/components/freebox/fixtures/home_alarm_get_values.json b/tests/components/freebox/fixtures/home_alarm_get_values.json new file mode 100644 index 00000000000..1e43a428296 --- /dev/null +++ b/tests/components/freebox/fixtures/home_alarm_get_values.json @@ -0,0 +1,5 @@ +{ + "refresh": 2000, + "value": "alarm2_armed", + "value_type": "string" +} diff --git a/tests/components/freebox/fixtures/home_get_nodes.json b/tests/components/freebox/fixtures/home_get_nodes.json new file mode 100644 index 00000000000..b72505279b2 --- /dev/null +++ b/tests/components/freebox/fixtures/home_get_nodes.json @@ -0,0 +1,2545 @@ +[ + { + "adapter": 2, + "area": 38, + "category": "camera", + "group": { + "label": "Salon" + }, + "id": 16, + "label": "Caméra II", + "name": "node_16", + "props": { + "Ip": "192.169.0.2", + "Login": "camfreebox", + "Mac": "34:2d:f2:e5:9d:ff", + "Pass": "xxxxx", + "Stream": "http://freeboxcam:mv...tream.m3u8" + }, + "show_endpoints": [ + { + "category": "", + "ep_type": "slot", + "id": 0, + "label": "Détection", + "name": "detection", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 1, + "label": "Activé avec l'alarme", + "name": "activation", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 2, + "label": "Haute qualité vidéo", + "name": "quality", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 3, + "label": "Sensibilité", + "name": "sensitivity", + "ui": { + "access": "rw", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 4, + "label": "Seuil", + "name": "threshold", + "ui": { + "access": "rw", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 5, + "label": "Retourner verticalement", + "name": "flip", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 6, + "label": "Horodatage", + "name": "timestamp", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 7, + "label": "Volume du micro", + "name": "volume", + "ui": { + "access": "w", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 9, + "label": "Détection de bruit", + "name": "sound_detection", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 10, + "label": "Sensibilité du micro", + "name": "sound_trigger", + "ui": { + "access": "w", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 11, + "label": "Flux rtsp", + "name": "rtsp", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 12, + "label": "Emplacement des vidéos", + "name": "disk", + "ui": { + "access": "rw", + "display": "disk" + }, + "value": "", + "value_type": "string", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 13, + "label": "Détection ", + "name": "detection", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/xxxx.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 14, + "label": "Activé avec l'alarme", + "name": "activation", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Ce réglage permet d'activer l'enregistrement de la caméra uniquement quand l'alarme est activée.", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/alert_toggle.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 15, + "label": "Haute qualité vidéo", + "name": "quality", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Les vidéos seront enregistrées en 720p en haute qualité et 480p en qualité réduite.\r\n\r\nNous vous recommandons de laisser cette option désactivée si vous avez des difficultés de lecture des fichiers à distance.", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Flux.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 16, + "label": "Sensibilité", + "name": "sensitivity", + "refresh": 2000, + "ui": { + "access": "r", + "description": "La sensibilité définit la faculté d'un pixel à être sensible aux changements.\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute, plus les déclenchements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 3, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 17, + "label": "Seuil", + "name": "threshold", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Le seuil définit le nombre de pixels devant changer pour déclencher la détection .\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute moins les déclenchements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 2, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 18, + "label": "Retourner verticalement", + "name": "flip", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Retour.png" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 19, + "label": "Horodatage", + "name": "timestamp", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Horloge.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 20, + "label": "Volume du micro", + "name": "volume", + "refresh": 2000, + "ui": { + "access": "r", + "display": "slider", + "icon_url": "/resources/images/home/pictos/commande_vocale.png", + "range": [] + }, + "value": 100, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 22, + "label": "Détection de bruit", + "name": "sound_detection", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/commande_vocale.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 23, + "label": "Sensibilité du micro", + "name": "sound_trigger", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Quatre réglages sont disponibles pour la sensibilité du micro (1-4).\r\n\r\nPlus cette valeur est haute, plus les enregistrements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 3, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 24, + "label": "Flux rtsp", + "name": "rtsp", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Active le flux RTSP à l'adresse rtsp://ip_camera/live", + "display": "toggle" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 25, + "label": "Niveau de réception", + "name": "rssi", + "refresh": 2000, + "ui": { + "access": "r", + "display": "icon", + "icon_range": [], + "icon_url": "/resources/images/home/pictos/reception_%.png", + "range": [], + "status_text_range": [], + "unit": "dB" + }, + "value": -75, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 26, + "label": "Emplacement des vidéos", + "name": "disk", + "refresh": 2000, + "ui": { + "access": "r", + "display": "disk", + "icon_url": "/resources/images/home/pictos/directory.png" + }, + "value": "Freebox", + "value_type": "string", + "visibility": "normal" + } + ], + "signal_links": [], + "slot_links": [{}], + "status": "active", + "type": { + "abstract": false, + "endpoints": [ + { + "category": "", + "ep_type": "slot", + "id": 0, + "label": "Détection ", + "name": "detection", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 1, + "label": "Activé avec l'alarme", + "name": "activation", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 2, + "label": "Haute qualité vidéo", + "name": "quality", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 3, + "label": "Sensibilité", + "name": "sensitivity", + "ui": { + "access": "rw", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 4, + "label": "Seuil", + "name": "threshold", + "ui": { + "access": "rw", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 5, + "label": "Retourner verticalement", + "name": "flip", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 6, + "label": "Horodatage", + "name": "timestamp", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 7, + "label": "Volume du micro", + "name": "volume", + "ui": { + "access": "w", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 9, + "label": "Détection de bruit", + "name": "sound_detection", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 10, + "label": "Sensibilité du micro", + "name": "sound_trigger", + "ui": { + "access": "w", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 11, + "label": "Flux rtsp", + "name": "rtsp", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 12, + "label": "Emplacement des vidéos", + "name": "disk", + "ui": { + "access": "rw", + "display": "disk" + }, + "value": "", + "value_type": "string", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 13, + "label": "Détection ", + "name": "detection", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/xxxx.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 14, + "label": "Activé avec l'alarme", + "name": "activation", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Ce réglage permet d'activer l'enregistrement de la caméra uniquement quand l'alarme est activée.", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/alert_toggle.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 15, + "label": "Haute qualité vidéo", + "name": "quality", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Les vidéos seront enregistrées en 720p en haute qualité et 480p en qualité réduite.\r\n\r\nNous vous recommandons de laisser cette option désactivée si vous avez des difficultés de lecture des fichiers à distance.", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Flux.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 16, + "label": "Sensibilité", + "name": "sensitivity", + "refresh": 2000, + "ui": { + "access": "r", + "description": "La sensibilité définit la faculté d'un pixel à être sensible aux changements.\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute, plus les déclenchements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 3, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 17, + "label": "Seuil", + "name": "threshold", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Le seuil définit le nombre de pixels devant changer pour déclencher la détection .\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute moins les déclenchements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 2, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 18, + "label": "Retourner verticalement", + "name": "flip", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Retour.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 19, + "label": "Horodatage", + "name": "timestamp", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Horloge.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 20, + "label": "Volume du micro", + "name": "volume", + "refresh": 2000, + "ui": { + "access": "r", + "display": "slider", + "icon_url": "/resources/images/home/pictos/commande_vocale.png", + "range": [] + }, + "value": 80, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 22, + "label": "Détection de bruit", + "name": "sound_detection", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/commande_vocale.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 23, + "label": "Sensibilité du micro", + "name": "sound_trigger", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Quatre réglages sont disponibles pour la sensibilité du micro (1-4).\r\n\r\nPlus cette valeur est haute, plus les enregistrements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 3, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 24, + "label": "Flux rtsp", + "name": "rtsp", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Active le flux RTSP à l'adresse rtsp://ip_camera/live", + "display": "toggle" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 25, + "label": "Niveau de réception", + "name": "rssi", + "refresh": 2000, + "ui": { + "access": "r", + "display": "icon", + "icon_range": [], + "icon_url": "/resources/images/home/pictos/reception_%.png", + "range": [], + "status_text_range": [], + "unit": "dB" + }, + "value": -49, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 26, + "label": "Emplacement des vidéos", + "name": "disk", + "refresh": 2000, + "ui": { + "access": "r", + "display": "disk", + "icon_url": "/resources/images/home/pictos/directory.png" + }, + "value": "Freebox", + "value_type": "string", + "visibility": "normal" + } + ], + "generic": false, + "icon": "/resources/images/ho...camera.png", + "inherit": "node::cam", + "label": "Caméra Freebox", + "name": "node::cam::freebox", + "params": {}, + "physical": true + } + }, + { + "adapter": 1, + "area": 38, + "category": "camera", + "group": { + "label": "Salon" + }, + "id": 15, + "label": "Caméra I", + "name": "node_15", + "props": { + "Ip": "192.169.0.2", + "Login": "camfreebox", + "Mac": "34:2d:f2:e5:9d:ff", + "Pass": "xxxxx", + "Stream": "http://freeboxcam:mv...tream.m3u8" + }, + "show_endpoints": [ + { + "category": "", + "ep_type": "slot", + "id": 0, + "label": "Détection ", + "name": "detection", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 1, + "label": "Activé avec l'alarme", + "name": "activation", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 2, + "label": "Haute qualité vidéo", + "name": "quality", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 3, + "label": "Sensibilité", + "name": "sensitivity", + "ui": { + "access": "rw", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 4, + "label": "Seuil", + "name": "threshold", + "ui": { + "access": "rw", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 5, + "label": "Retourner verticalement", + "name": "flip", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 6, + "label": "Horodatage", + "name": "timestamp", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 7, + "label": "Volume du micro", + "name": "volume", + "ui": { + "access": "w", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 9, + "label": "Détection de bruit", + "name": "sound_detection", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 10, + "label": "Sensibilité du micro", + "name": "sound_trigger", + "ui": { + "access": "w", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 11, + "label": "Flux rtsp", + "name": "rtsp", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 12, + "label": "Emplacement des vidéos", + "name": "disk", + "ui": { + "access": "rw", + "display": "disk" + }, + "value": "", + "value_type": "string", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 13, + "label": "Détection ", + "name": "detection", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/xxxx.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 14, + "label": "Activé avec l'alarme", + "name": "activation", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Ce réglage permet d'activer l'enregistrement de la caméra uniquement quand l'alarme est activée.", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/alert_toggle.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 15, + "label": "Haute qualité vidéo", + "name": "quality", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Les vidéos seront enregistrées en 720p en haute qualité et 480p en qualité réduite.\r\n\r\nNous vous recommandons de laisser cette option désactivée si vous avez des difficultés de lecture des fichiers à distance.", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Flux.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 16, + "label": "Sensibilité", + "name": "sensitivity", + "refresh": 2000, + "ui": { + "access": "r", + "description": "La sensibilité définit la faculté d'un pixel à être sensible aux changements.\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute, plus les déclenchements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 3, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 17, + "label": "Seuil", + "name": "threshold", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Le seuil définit le nombre de pixels devant changer pour déclencher la détection .\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute moins les déclenchements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 2, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 18, + "label": "Retourner verticalement", + "name": "flip", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Retour.png" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 19, + "label": "Horodatage", + "name": "timestamp", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Horloge.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 20, + "label": "Volume du micro", + "name": "volume", + "refresh": 2000, + "ui": { + "access": "r", + "display": "slider", + "icon_url": "/resources/images/home/pictos/commande_vocale.png", + "range": [] + }, + "value": 100, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 22, + "label": "Détection de bruit", + "name": "sound_detection", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/commande_vocale.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 23, + "label": "Sensibilité du micro", + "name": "sound_trigger", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Quatre réglages sont disponibles pour la sensibilité du micro (1-4).\r\n\r\nPlus cette valeur est haute, plus les enregistrements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 3, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 24, + "label": "Flux rtsp", + "name": "rtsp", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Active le flux RTSP à l'adresse rtsp://ip_camera/live", + "display": "toggle" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 25, + "label": "Niveau de réception", + "name": "rssi", + "refresh": 2000, + "ui": { + "access": "r", + "display": "icon", + "icon_range": [], + "icon_url": "/resources/images/home/pictos/reception_%.png", + "range": [], + "status_text_range": [], + "unit": "dB" + }, + "value": -75, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 26, + "label": "Emplacement des vidéos", + "name": "disk", + "refresh": 2000, + "ui": { + "access": "r", + "display": "disk", + "icon_url": "/resources/images/home/pictos/directory.png" + }, + "value": "Freebox", + "value_type": "string", + "visibility": "normal" + } + ], + "signal_links": [], + "slot_links": [{}], + "status": "active", + "type": { + "abstract": false, + "endpoints": [ + { + "category": "", + "ep_type": "slot", + "id": 0, + "label": "Détection ", + "name": "detection", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 1, + "label": "Activé avec l'alarme", + "name": "activation", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 2, + "label": "Haute qualité vidéo", + "name": "quality", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 3, + "label": "Sensibilité", + "name": "sensitivity", + "ui": { + "access": "rw", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 4, + "label": "Seuil", + "name": "threshold", + "ui": { + "access": "rw", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 5, + "label": "Retourner verticalement", + "name": "flip", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 6, + "label": "Horodatage", + "name": "timestamp", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 7, + "label": "Volume du micro", + "name": "volume", + "ui": { + "access": "w", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 9, + "label": "Détection de bruit", + "name": "sound_detection", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 10, + "label": "Sensibilité du micro", + "name": "sound_trigger", + "ui": { + "access": "w", + "display": "slider", + "range": [] + }, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 11, + "label": "Flux rtsp", + "name": "rtsp", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 12, + "label": "Emplacement des vidéos", + "name": "disk", + "ui": { + "access": "rw", + "display": "disk" + }, + "value": "", + "value_type": "string", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 13, + "label": "Détection ", + "name": "detection", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/xxxx.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 14, + "label": "Activé avec l'alarme", + "name": "activation", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Ce réglage permet d'activer l'enregistrement de la caméra uniquement quand l'alarme est activée.", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/alert_toggle.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 15, + "label": "Haute qualité vidéo", + "name": "quality", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Les vidéos seront enregistrées en 720p en haute qualité et 480p en qualité réduite.\r\n\r\nNous vous recommandons de laisser cette option désactivée si vous avez des difficultés de lecture des fichiers à distance.", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Flux.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 16, + "label": "Sensibilité", + "name": "sensitivity", + "refresh": 2000, + "ui": { + "access": "r", + "description": "La sensibilité définit la faculté d'un pixel à être sensible aux changements.\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute, plus les déclenchements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 3, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 17, + "label": "Seuil", + "name": "threshold", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Le seuil définit le nombre de pixels devant changer pour déclencher la détection .\r\n\r\nQuatre réglages sont disponibles (1-4). Plus cette valeur est haute moins les déclenchements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 2, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 18, + "label": "Retourner verticalement", + "name": "flip", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Retour.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 19, + "label": "Horodatage", + "name": "timestamp", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/Horloge.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 20, + "label": "Volume du micro", + "name": "volume", + "refresh": 2000, + "ui": { + "access": "r", + "display": "slider", + "icon_url": "/resources/images/home/pictos/commande_vocale.png", + "range": [] + }, + "value": 80, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 22, + "label": "Détection de bruit", + "name": "sound_detection", + "refresh": 2000, + "ui": { + "access": "r", + "display": "toggle", + "icon_url": "/resources/images/home/pictos/commande_vocale.png" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 23, + "label": "Sensibilité du micro", + "name": "sound_trigger", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Quatre réglages sont disponibles pour la sensibilité du micro (1-4).\r\n\r\nPlus cette valeur est haute, plus les enregistrements seront fréquents.", + "display": "slider", + "range": [] + }, + "value": 3, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 24, + "label": "Flux rtsp", + "name": "rtsp", + "refresh": 2000, + "ui": { + "access": "r", + "description": "Active le flux RTSP à l'adresse rtsp://ip_camera/live", + "display": "toggle" + }, + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 25, + "label": "Niveau de réception", + "name": "rssi", + "refresh": 2000, + "ui": { + "access": "r", + "display": "icon", + "icon_range": [], + "icon_url": "/resources/images/home/pictos/reception_%.png", + "range": [], + "status_text_range": [], + "unit": "dB" + }, + "value": -49, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 26, + "label": "Emplacement des vidéos", + "name": "disk", + "refresh": 2000, + "ui": { + "access": "r", + "display": "disk", + "icon_url": "/resources/images/home/pictos/directory.png" + }, + "value": "Freebox", + "value_type": "string", + "visibility": "normal" + } + ], + "generic": false, + "icon": "/resources/images/ho...camera.png", + "inherit": "node::cam", + "label": "Caméra Freebox", + "name": "node::cam::freebox", + "params": {}, + "physical": true + } + }, + { + "adapter": 5, + "category": "kfb", + "group": { + "label": "" + }, + "id": 9, + "label": "Télécommande", + "name": "node_9", + "props": { + "Address": 5, + "Challenge": "65ae6b4def41f3e3a5a77ec63e988", + "FwVersion": 29798318, + "Gateway": 1, + "ItemId": "e76c2b75a4a6e2" + }, + "show_endpoints": [ + { + "category": "", + "ep_type": "slot", + "id": 0, + "label": "Activé", + "name": "enable", + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 1, + "label": "Activé", + "name": "enable", + "value": true, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 2, + "label": "Bouton appuyé", + "name": "pushed", + "value": null, + "value_type": "int" + }, + { + "category": "", + "ep_type": "signal", + "id": 3, + "label": "Niveau de Batterie", + "name": "battery", + "refresh": 2000, + "value": 100, + "value_type": "int" + } + ], + "signal_links": [ + { + "adapter": 5, + "category": "alarm", + "id": 7, + "label": "Système d alarme", + "link_id": 10, + "name": "node_7", + "status": "active" + } + ], + "slot_links": [], + "status": "active", + "type": { + "abstract": false, + "endpoints": [], + "generic": false, + "icon": "/resources/images/home/pictos/telecommande.png", + "inherit": "node::domus", + "label": "Télécommande pour alarme", + "name": "node::domus::sercomm::keyfob", + "params": {}, + "physical": true + } + }, + { + "adapter": 5, + "area": 40, + "category": "dws", + "group": { + "label": "Entrée" + }, + "id": 11, + "label": "Ouverture porte", + "name": "node_11", + "props": { + "Address": 6, + "Challenge": "964a2dddf2c40c3e2384f66d2", + "FwVersion": 29798220, + "Gateway": 1, + "ItemId": "9eff759dd553de7" + }, + "show_endpoints": [ + { + "category": "", + "ep_type": "slot", + "id": 0, + "label": "Alarme principale", + "name": "alarm1", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 1, + "label": "Alarme secondaire", + "name": "alarm2", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 2, + "label": "Zone temporisée", + "name": "timed", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 7, + "label": "Couvercle", + "name": "cover", + "refresh": 2000, + "ui": { + "access": "r", + "display": "warning", + "icon_url": "/resources/images/home/pictos/warning.png" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 8, + "label": "Niveau de Batterie", + "name": "battery", + "refresh": 2000, + "ui": { + "access": "r", + "display": "icon", + "icon_range": [], + "icon_url": "/resources/images/home/pictos/batt_%.png", + "range": [], + "status_text_range": [], + "unit": "%" + }, + "value": 100, + "value_type": "int", + "visibility": "normal" + } + ], + "signal_links": [ + { + "adapter": 5, + "category": "alarm", + "id": 7, + "label": "Système d alarme", + "link_id": 12, + "name": "node_7", + "status": "active" + } + ], + "slot_links": [], + "status": "active", + "type": { + "abstract": false, + "endpoints": [ + { + "ep_type": "slot", + "id": 0, + "label": "Alarme principale", + "name": "alarm1", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "slot", + "id": 1, + "label": "Alarme secondaire", + "name": "alarm2", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "slot", + "id": 2, + "label": "Zone temporisée", + "name": "timed", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 3, + "label": "Alarme principale", + "name": "alarm1", + "param_type": "void", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 4, + "label": "Alarme secondaire", + "name": "alarm2", + "param_type": "void", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 5, + "label": "Zone temporisée", + "name": "timed", + "param_type": "void", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 6, + "label": "Détection", + "name": "trigger", + "param_type": "void", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 7, + "label": "Couvercle", + "name": "cover", + "param_type": "void", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 8, + "label": "Niveau de Batterie", + "name": "1battery", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 9, + "label": "Batterie faible", + "name": "battery_warning", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 10, + "label": "Alarme", + "name": "alarm", + "param_type": "void", + "value_type": "void", + "visibility": "internal" + } + ], + "generic": false, + "icon": "/resources/images/home/pictos/detecteur_ouverture.png", + "inherit": "node::domus", + "label": "Détecteur d'ouverture de porte", + "name": "node::domus::sercomm::doorswitch", + "params": {}, + "physical": true + } + }, + { + "adapter": 5, + "area": 38, + "category": "pir", + "group": { + "label": "Salon" + }, + "id": 26, + "label": "Détecteur", + "name": "node_26", + "props": { + "Address": 9, + "Challenge": "ed2cc17f179862f5242256b3f597c367", + "FwVersion": 29871925, + "Gateway": 1, + "ItemId": "240d000f9fefe576" + }, + "show_endpoints": [ + { + "category": "", + "ep_type": "slot", + "id": 0, + "label": "Alarme principale", + "name": "alarm1", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 1, + "label": "Alarme secondaire", + "name": "alarm2", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 2, + "label": "Zone temporisée", + "name": "timed", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 6, + "label": "Détection", + "name": "trigger", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 7, + "label": "Couvercle", + "name": "cover", + "refresh": 2000, + "ui": { + "access": "r", + "display": "warning", + "icon_url": "/resources/images/home/pictos/warning.png" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 8, + "label": "Niveau de Batterie", + "name": "battery", + "refresh": 2000, + "ui": { + "access": "r", + "display": "icon", + "icon_range": [], + "icon_url": "/resources/images/home/pictos/batt_x.png", + "status_text_range": [], + "unit": "%" + }, + "value": 100, + "value_type": "int", + "visibility": "normal" + } + ], + "signal_links": [ + { + "adapter": 5, + "category": "alarm", + "id": 7, + "label": "Système d alarme", + "link_id": 12, + "name": "node_7", + "status": "active" + } + ], + "slot_links": [], + "status": "active", + "type": { + "abstract": false, + "endpoints": [ + { + "ep_type": "slot", + "id": 0, + "label": "Alarme principale", + "name": "alarm1", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "slot", + "id": 1, + "label": "Alarme secondaire", + "name": "alarm2", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "slot", + "id": 2, + "label": "Zone temporisée", + "name": "timed", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 3, + "label": "Alarme principale", + "name": "alarm1", + "param_type": "void", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 4, + "label": "Alarme secondaire", + "name": "alarm2", + "param_type": "void", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 5, + "label": "Zone temporisée", + "name": "timed", + "param_type": "void", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 6, + "label": "Détection", + "name": "trigger", + "param_type": "void", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 7, + "label": "Couvercle", + "name": "cover", + "param_type": "void", + "value_type": "bool", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 8, + "label": "Niveau de Batterie", + "name": "battery", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 9, + "label": "Batterie faible", + "name": "battery_warning", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 10, + "label": "Alarme", + "name": "alarm", + "param_type": "void", + "value_type": "void", + "visibility": "internal" + } + ], + "generic": false, + "icon": "/resources/images/home/pictos/detecteur_xxxx.png", + "inherit": "node::domus", + "label": "Détecteur infrarouge", + "name": "node::domus::sercomm::pir", + "params": {}, + "physical": true + } + }, + { + "adapter": 10, + "area": 38, + "category": "shutter", + "group": { + "label": "Salon" + }, + "id": 150, + "label": "Shutter 1", + "name": "node_150", + "type": { + "inherit": "node::trs" + } + }, + { + "adapter": 11, + "area": 38, + "category": "shutter", + "group": { + "label": "Salon" + }, + "id": 151, + "label": "Shutter 2", + "name": "node_151", + "type": { + "inherit": "node::ios" + } + }, + { + "adapter": 5, + "category": "alarm", + "group": { + "label": "" + }, + "id": 7, + "label": "Système d'alarme", + "name": "node_7", + "props": { + "Address": 3, + "Challenge": "447599f5cab8620122b913e55faf8e1d", + "FwVersion": 47396239, + "Gateway": 1, + "ItemId": "e515a55b04f32e6d" + }, + "show_endpoints": [ + { + "category": "", + "ep_type": "slot", + "id": 5, + "label": "Code PIN", + "name": "pin", + "ui": {}, + "value": "", + "value_type": "string", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 6, + "label": "Puissance des bips", + "name": "sound", + "ui": {}, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "slot", + "id": 7, + "label": "Puissance de la sirène", + "name": "volume", + "ui": {}, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "alarm", + "ep_type": "slot", + "id": 8, + "label": "Délai avant armement", + "name": "timeout1", + "ui": {}, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "alarm", + "ep_type": "slot", + "id": 9, + "label": "Délai avant sirène", + "name": "timeout2", + "ui": {}, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "alarm", + "ep_type": "slot", + "id": 10, + "label": "Durée de la sirène", + "name": "timeout3", + "ui": {}, + "value": 0, + "value_type": "int", + "visibility": "normal" + }, + { + "category": "", + "ep_type": "signal", + "id": 12, + "label": "Code PIN", + "name": "pin", + "refresh": 2000, + "ui": {}, + "value": "0000", + "value_type": "string" + }, + { + "category": "", + "ep_type": "signal", + "id": 14, + "label": "Puissance des bips", + "name": "sound", + "refresh": 2000, + "ui": {}, + "value": 1, + "value_type": "int" + }, + { + "category": "", + "ep_type": "signal", + "id": 15, + "label": "Puissance de la sirène", + "name": "volume", + "refresh": 2000, + "ui": {}, + "value": 100, + "value_type": "int" + }, + { + "category": "alarm", + "ep_type": "signal", + "id": 16, + "label": "Délai avant armement", + "name": "timeout1", + "refresh": 2000, + "ui": {}, + "value": 15, + "value_type": "int" + }, + { + "category": "alarm", + "ep_type": "signal", + "id": 17, + "label": "Délai avant sirène", + "name": "timeout2", + "refresh": 2000, + "ui": {}, + "value": 15, + "value_type": "int" + }, + { + "category": "alarm", + "ep_type": "signal", + "id": 18, + "label": "Durée de la sirène", + "name": "timeout3", + "refresh": 2000, + "ui": {}, + "value": 300, + "value_type": "int" + }, + { + "category": "", + "ep_type": "signal", + "id": 19, + "label": "Niveau de Batterie", + "name": "battery", + "refresh": 2000, + "ui": {}, + "value": 85, + "value_type": "int" + } + ], + "type": { + "abstract": false, + "endpoints": [ + { + "ep_type": "slot", + "id": 0, + "label": "Trigger", + "name": "trigger", + "value_type": "void", + "visibility": "internal" + }, + { + "ep_type": "slot", + "id": 1, + "label": "Alarme principale", + "name": "alarm1", + "value_type": "void", + "visibility": "normal" + }, + { + "ep_type": "slot", + "id": 2, + "label": "Alarme secondaire", + "name": "alarm2", + "value_type": "void", + "visibility": "internal" + }, + { + "ep_type": "slot", + "id": 3, + "label": "Passer le délai", + "name": "skip", + "value_type": "void", + "visibility": "internal" + }, + { + "ep_type": "slot", + "id": 4, + "label": "Désactiver l'alarme", + "name": "off", + "value_type": "void", + "visibility": "internal" + }, + { + "ep_type": "slot", + "id": 5, + "label": "Code PIN", + "name": "pin", + "value_type": "string", + "visibility": "normal" + }, + { + "ep_type": "slot", + "id": 6, + "label": "Puissance des bips", + "name": "sound", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "slot", + "id": 7, + "label": "Puissance de la sirène", + "name": "volume", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "slot", + "id": 8, + "label": "Délai avant armement", + "name": "timeout1", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "slot", + "id": 9, + "label": "Délai avant sirène", + "name": "timeout2", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "slot", + "id": 10, + "label": "Durée de la sirène", + "name": "timeout3", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 11, + "label": "État de l'alarme", + "name": "state", + "param_type": "void", + "value_type": "string", + "visibility": "internal" + }, + { + "ep_type": "signal", + "id": 12, + "label": "Code PIN", + "name": "pin", + "param_type": "void", + "value_type": "string", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 13, + "label": "Erreur", + "name": "error", + "param_type": "void", + "value_type": "string", + "visibility": "internal" + }, + { + "ep_type": "signal", + "id": 14, + "label": "Puissance des bips", + "name": "sound", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 15, + "label": "Puissance de la sirène", + "name": "volume", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 16, + "label": "Délai avant armement", + "name": "timeout1", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 17, + "label": "Délai avant sirène", + "name": "timeout2", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 18, + "label": "Durée de la sirène", + "name": "timeout3", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 19, + "label": "Niveau de Batterie", + "name": "battery", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + }, + { + "ep_type": "signal", + "id": 20, + "label": "Batterie faible", + "name": "battery_warning", + "param_type": "void", + "value_type": "int", + "visibility": "normal" + } + ], + "generic": false, + "icon": "/resources/images/home/pictos/alarm_system.png", + "inherit": "node::domus", + "label": "Système d'alarme", + "name": "node::domus::freebox::secmod", + "params": {}, + "physical": true + } + } +] diff --git a/tests/components/freebox/fixtures/home_pir_get_values.json b/tests/components/freebox/fixtures/home_pir_get_values.json new file mode 100644 index 00000000000..a76fdd66286 --- /dev/null +++ b/tests/components/freebox/fixtures/home_pir_get_values.json @@ -0,0 +1,14 @@ +{ + "category": "", + "ep_type": "signal", + "id": 6, + "label": "Détection", + "name": "trigger", + "ui": { + "access": "w", + "display": "toggle" + }, + "value": false, + "value_type": "bool", + "visibility": "normal" +} diff --git a/tests/components/freebox/fixtures/lan_get_hosts_list.json b/tests/components/freebox/fixtures/lan_get_hosts_list.json new file mode 100644 index 00000000000..dccf6acee4a --- /dev/null +++ b/tests/components/freebox/fixtures/lan_get_hosts_list.json @@ -0,0 +1,274 @@ +[ + { + "l2ident": { + "id": "8C:97:EA:00:00:00", + "type": "mac_address" + }, + "active": true, + "persistent": false, + "names": [ + { + "name": "d633d0c8-958c-43cc-e807-d881b076924b", + "source": "mdns" + }, + { + "name": "Freebox Player POP", + "source": "mdns_srv" + } + ], + "vendor_name": "Freebox SAS", + "host_type": "smartphone", + "interface": "pub", + "id": "ether-8c:97:ea:00:00:00", + "last_time_reachable": 1614107652, + "primary_name_manual": false, + "l3connectivities": [ + { + "addr": "192.168.1.180", + "active": true, + "reachable": true, + "last_activity": 1614107614, + "af": "ipv4", + "last_time_reachable": 1614104242 + }, + { + "addr": "fe80::dcef:dbba:6604:31d1", + "active": true, + "reachable": true, + "last_activity": 1614107645, + "af": "ipv6", + "last_time_reachable": 1614107645 + }, + { + "addr": "2a01:e34:eda1:eb40:8102:4704:7ce0:2ace", + "active": false, + "reachable": false, + "last_activity": 1611574428, + "af": "ipv6", + "last_time_reachable": 1611574428 + }, + { + "addr": "2a01:e34:eda1:eb40:c8e5:c524:c96d:5f5e", + "active": false, + "reachable": false, + "last_activity": 1612475101, + "af": "ipv6", + "last_time_reachable": 1612475101 + }, + { + "addr": "2a01:e34:eda1:eb40:583a:49df:1df0:c2df", + "active": true, + "reachable": true, + "last_activity": 1614107652, + "af": "ipv6", + "last_time_reachable": 1614107652 + }, + { + "addr": "2a01:e34:eda1:eb40:147e:3569:86ab:6aaa", + "active": false, + "reachable": false, + "last_activity": 1612486752, + "af": "ipv6", + "last_time_reachable": 1612486752 + } + ], + "default_name": "Freebox Player POP", + "model": "fbx8am", + "reachable": true, + "last_activity": 1614107652, + "primary_name": "Freebox Player POP" + }, + { + "l2ident": { + "id": "DE:00:B0:00:00:00", + "type": "mac_address" + }, + "active": false, + "persistent": false, + "vendor_name": "", + "host_type": "workstation", + "interface": "pub", + "id": "ether-de:00:b0:00:00:00", + "last_time_reachable": 1607125599, + "primary_name_manual": false, + "default_name": "", + "l3connectivities": [ + { + "addr": "192.168.1.181", + "active": false, + "reachable": false, + "last_activity": 1607125599, + "af": "ipv4", + "last_time_reachable": 1607125599 + }, + { + "addr": "192.168.1.182", + "active": false, + "reachable": false, + "last_activity": 1605958758, + "af": "ipv4", + "last_time_reachable": 1605958758 + }, + { + "addr": "2a01:e34:eda1:eb40:dc00:b0ff:fedf:e30", + "active": false, + "reachable": false, + "last_activity": 1607125594, + "af": "ipv6", + "last_time_reachable": 1607125594 + } + ], + "reachable": false, + "last_activity": 1607125599, + "primary_name": "" + }, + { + "l2ident": { + "id": "DC:00:B0:00:00:00", + "type": "mac_address" + }, + "active": true, + "persistent": false, + "names": [ + { + "name": "Repeteur-Wifi-Freebox", + "source": "mdns" + }, + { + "name": "Repeteur Wifi Freebox", + "source": "mdns_srv" + } + ], + "vendor_name": "", + "host_type": "freebox_wifi", + "interface": "pub", + "id": "ether-dc:00:b0:00:00:00", + "last_time_reachable": 1614107678, + "primary_name_manual": false, + "l3connectivities": [ + { + "addr": "192.168.1.145", + "active": true, + "reachable": true, + "last_activity": 1614107678, + "af": "ipv4", + "last_time_reachable": 1614107678 + }, + { + "addr": "fe80::de00:b0ff:fe52:6ef6", + "active": true, + "reachable": true, + "last_activity": 1614107608, + "af": "ipv6", + "last_time_reachable": 1614107603 + }, + { + "addr": "2a01:e34:eda1:eb40:de00:b0ff:fe52:6ef6", + "active": true, + "reachable": true, + "last_activity": 1614107618, + "af": "ipv6", + "last_time_reachable": 1614107618 + } + ], + "default_name": "Repeteur Wifi Freebox", + "model": "fbxwmr", + "reachable": true, + "last_activity": 1614107678, + "primary_name": "Repeteur Wifi Freebox" + }, + { + "l2ident": { + "id": "5E:65:55:00:00:00", + "type": "mac_address" + }, + "active": false, + "persistent": false, + "names": [ + { + "name": "iPhoneofQuentin", + "source": "dhcp" + }, + { + "name": "iPhone-of-Quentin", + "source": "mdns" + } + ], + "vendor_name": "", + "host_type": "smartphone", + "interface": "pub", + "id": "ether-5e:65:55:00:00:00", + "last_time_reachable": 1612611982, + "primary_name_manual": false, + "default_name": "iPhonedeQuentin", + "l3connectivities": [ + { + "addr": "192.168.1.148", + "active": false, + "reachable": false, + "last_activity": 1612611973, + "af": "ipv4", + "last_time_reachable": 1612611973 + }, + { + "addr": "fe80::14ca:6c30:938b:e281", + "active": false, + "reachable": false, + "last_activity": 1609693223, + "af": "ipv6", + "last_time_reachable": 1609693223 + }, + { + "addr": "fe80::1c90:2b94:1ba2:bd8b", + "active": false, + "reachable": false, + "last_activity": 1610797303, + "af": "ipv6", + "last_time_reachable": 1610797303 + }, + { + "addr": "fe80::8c8:e58b:838e:6785", + "active": false, + "reachable": false, + "last_activity": 1612611951, + "af": "ipv6", + "last_time_reachable": 1612611946 + }, + { + "addr": "2a01:e34:eda1:eb40:f0e7:e198:3a69:58", + "active": false, + "reachable": false, + "last_activity": 1609693245, + "af": "ipv6", + "last_time_reachable": 1609693245 + }, + { + "addr": "2a01:e34:eda1:eb40:1dc4:c6f8:aa20:c83b", + "active": false, + "reachable": false, + "last_activity": 1610797176, + "af": "ipv6", + "last_time_reachable": 1610797176 + }, + { + "addr": "2a01:e34:eda1:eb40:6cf6:5811:1770:c662", + "active": false, + "reachable": false, + "last_activity": 1612611982, + "af": "ipv6", + "last_time_reachable": 1612611982 + }, + { + "addr": "2a01:e34:eda1:eb40:438:9b2c:4f8f:f48a", + "active": false, + "reachable": false, + "last_activity": 1612611946, + "af": "ipv6", + "last_time_reachable": 1612611946 + } + ], + "reachable": false, + "last_activity": 1612611982, + "primary_name": "iPhoneofQuentin" + } +] diff --git a/tests/components/freebox/fixtures/storage_get_disks.json b/tests/components/freebox/fixtures/storage_get_disks.json new file mode 100644 index 00000000000..befeb592faf --- /dev/null +++ b/tests/components/freebox/fixtures/storage_get_disks.json @@ -0,0 +1,109 @@ +[ + { + "idle_duration": 0, + "read_error_requests": 0, + "read_requests": 1815106, + "spinning": true, + "table_type": "raid", + "firmware": "0001", + "type": "sata", + "idle": true, + "connector": 2, + "id": 1000, + "write_error_requests": 0, + "time_before_spindown": 600, + "state": "disabled", + "write_requests": 80386151, + "total_bytes": 2000000000000, + "model": "ST2000LM015-2E8174", + "active_duration": 0, + "temp": 30, + "serial": "ZDZLBFHC", + "partitions": [ + { + "fstype": "raid", + "total_bytes": 0, + "label": "Volume 2000Go", + "id": 1000, + "internal": false, + "fsck_result": "no_run_yet", + "state": "umounted", + "disk_id": 1000, + "free_bytes": 0, + "used_bytes": 0, + "path": "L1ZvbHVtZSAyMDAwR28=" + } + ] + }, + { + "idle_duration": 0, + "read_error_requests": 0, + "read_requests": 3622038, + "spinning": true, + "table_type": "raid", + "firmware": "0001", + "type": "sata", + "idle": true, + "connector": 0, + "id": 2000, + "write_error_requests": 0, + "time_before_spindown": 600, + "state": "disabled", + "write_requests": 80386151, + "total_bytes": 2000000000000, + "model": "ST2000LM015-2E8174", + "active_duration": 0, + "temp": 31, + "serial": "ZDZLEJXE", + "partitions": [ + { + "fstype": "raid", + "total_bytes": 0, + "label": "Volume 2000Go 1", + "id": 2000, + "internal": false, + "fsck_result": "no_run_yet", + "state": "umounted", + "disk_id": 2000, + "free_bytes": 0, + "used_bytes": 0, + "path": "L1ZvbHVtZSAyMDAwR28gMQ==" + } + ] + }, + { + "idle_duration": 0, + "read_error_requests": 0, + "read_requests": 0, + "spinning": false, + "table_type": "superfloppy", + "firmware": "", + "type": "raid", + "idle": false, + "connector": 0, + "id": 3000, + "write_error_requests": 0, + "state": "enabled", + "write_requests": 0, + "total_bytes": 2000000000000, + "model": "", + "active_duration": 0, + "temp": 0, + "serial": "", + "partitions": [ + { + "fstype": "ext4", + "total_bytes": 1960000000000, + "label": "Freebox", + "id": 3000, + "internal": false, + "fsck_result": "no_run_yet", + "state": "mounted", + "disk_id": 3000, + "free_bytes": 1730000000000, + "used_bytes": 236910000000, + "path": "L0ZyZWVib3g=" + } + ] + } +] diff --git a/tests/components/freebox/fixtures/storage_get_raids.json b/tests/components/freebox/fixtures/storage_get_raids.json new file mode 100644 index 00000000000..eb4e3c36681 --- /dev/null +++ b/tests/components/freebox/fixtures/storage_get_raids.json @@ -0,0 +1,64 @@ +[ + { + "degraded": false, + "raid_disks": 2, + "next_check": 0, + "sync_action": "idle", + "level": "raid1", + "uuid": "dc8679f8-13f9-11ee-9106-38d547790df8", + "sysfs_state": "clear", + "id": 0, + "sync_completed_pos": 0, + "members": [ + { + "total_bytes": 2000000000000, + "active_device": 1, + "id": 1000, + "corrected_read_errors": 0, + "array_id": 0, + "disk": { + "firmware": "0001", + "temp": 29, + "serial": "ZDZLBFHC", + "model": "ST2000LM015-2E8174" + }, + "role": "active", + "sct_erc_supported": false, + "sct_erc_enabled": false, + "dev_uuid": "fca8720e-13f9-11ee-9106-38d547790df8", + "device_location": "sata-internal-p2", + "set_name": "Freebox", + "set_uuid": "dc8679f8-13f9-11ee-9106-38d547790df8" + }, + { + "total_bytes": 2000000000000, + "active_device": 0, + "id": 2000, + "corrected_read_errors": 0, + "array_id": 0, + "disk": { + "firmware": "0001", + "temp": 30, + "serial": "ZDZLEJXE", + "model": "ST2000LM015-2E8174" + }, + "role": "active", + "sct_erc_supported": false, + "sct_erc_enabled": false, + "dev_uuid": "16bf00d6-13fa-11ee-9106-38d547790df8", + "device_location": "sata-internal-p0", + "set_name": "Freebox", + "set_uuid": "dc8679f8-13f9-11ee-9106-38d547790df8" + } + ], + "array_size": 2000000000000, + "state": "running", + "sync_speed": 0, + "name": "Freebox", + "check_interval": 0, + "disk_id": 3000, + "last_check": 1682884357, + "sync_completed_end": 0, + "sync_completed_percent": 0 + } +] diff --git a/tests/components/freebox/fixtures/system_get_config.json b/tests/components/freebox/fixtures/system_get_config.json new file mode 100644 index 00000000000..5dd72dcb4e3 --- /dev/null +++ b/tests/components/freebox/fixtures/system_get_config.json @@ -0,0 +1,57 @@ +{ + "mac": "68:A3:78:00:00:00", + "model_info": { + "has_ext_telephony": true, + "has_speakers_jack": true, + "wifi_type": "2d4_5g", + "pretty_name": "Freebox Server (r2)", + "customer_hdd_slots": 0, + "name": "fbxgw-r2/full", + "has_speakers": true, + "internal_hdd_size": 250, + "has_femtocell_exp": true, + "has_internal_hdd": true, + "has_dect": true + }, + "fans": [ + { + "id": "fan0_speed", + "name": "Ventilateur 1", + "value": 2130 + } + ], + "sensors": [ + { + "id": "temp_hdd", + "name": "Disque dur", + "value": 40 + }, + { + "id": "temp_hdd2", + "name": "Disque dur 2" + }, + { + "id": "temp_sw", + "name": "Température Switch", + "value": 50 + }, + { + "id": "temp_cpum", + "name": "Température CPU M", + "value": 60 + }, + { + "id": "temp_cpub", + "name": "Température CPU B", + "value": 56 + } + ], + "board_name": "fbxgw2r", + "disk_status": "active", + "uptime": "156 jours 19 heures 56 minutes 16 secondes", + "uptime_val": 13550176, + "user_main_storage": "Disque dur", + "box_authenticated": true, + "serial": "762601T190510709", + "firmware_version": "4.2.5" +} diff --git a/tests/components/freebox/fixtures/wifi_get_global_config.json b/tests/components/freebox/fixtures/wifi_get_global_config.json new file mode 100644 index 00000000000..189a039a69f --- /dev/null +++ b/tests/components/freebox/fixtures/wifi_get_global_config.json @@ -0,0 +1,4 @@ +{ + "enabled": true, + "mac_filter_state": "disabled" +}