Aller au contenu

Messages recommandés

Posté(e)

Bonjour,

 

Voici une liste non exhaustive de l'API HTTP pour HOME CENTER 2 et HOME CENTER LITE

 

A compléter si vous en connaissez d'autres !!

 

  • - filters in /api/devices that allows for filtering out devices that meet some requirements, examples:
HC IP/api/devices?visible=true

         returns devices with visible equal to 'true'

HC IP/api/devices?property=[batteryLevel,100]

        returns devices with property batteryLevel equal to 100

HC IP/api/devices?interface=light

        returns devices with light interface
 

      Multiple filters can be used together,

       for example:

HC IP/api/devices?visible=true&interface=light

          returns devices with visible equal to 'true' and with 'light' interface

 

  • Suite à  une Mise à  jour, revenir à  un firmware précédent
http://ip_HC2/services/startUpgrade.php
  • Relancer la fin de l'installation suite à  une erreur 503
http://<IP hc2>/services/finishUpgradeAfterError.php
  • Upvote 8
Posté(e)

et moi j'avais ceci en stock

Sections
http://<IP hc2>/api/sections
http://<IP hc2>/api/sections/11

Rooms
http://<IP hc2>/api/rooms
http://<IP hc2>/api/rooms/11

Heating Panels
http://<IP hc2>/api/panels/heating
http://<IP hc2>/api/panels/heating/11

Linked Devices
http://<IP hc2>/api/linkedDevices
http://<IP hc2>/api/linkedDevices/11

Scènes
http://<IP hc2>/api/scenes
http://<IP hc2>/api/scenes/11
http://<IP hc2>/api/sceneDebugMessages/11

http://<IP hc2>/api/sceneControl/11&action=start 
http://<IP hc2>/api/sceneControl/11&action=stop

Devices
http://<IP hc2>/api/devices
http://<IP hc2>/api/devices/11
http://<IP hc2>/api/devices?type=temperature_sensor
Delete device : http://<IP hc2>/docs/#!/devices/delDevice /… (ok en v4.x)

Virtual Devices
http://<IP hc2>/api/virtualDevices
http://<IP hc2>/api/virtualDevices/11

Gobal Variables
http://<IP hc2>/api/globalVariables
http://<IP hc2>/api/globalVariables?name=Auth_TV

Weather
http://<IP hc2>/api/weather

Users
http://<IP hc2>/api/users
http://<IP hc2>/api/users/11

  • Upvote 3
Posté(e)

Merci @Nikko,

 

Récuperer Backup depuis l'API

http://IPHC2/api/settings/backups

Donne ceci chez moi

 

[

  • {
    • "id": 117,
    • "timestamp": 1467954217,
    • "devices": 67,
    • "rooms": 5,
    • "scenes": 12,
    • "description": "4.083->4.090",
    • "version": "4.083",
    • "compatible": true
    },
  • {
    • "id": 142,
    • "timestamp": 1467208500,
    • "devices": 63,
    • "rooms": 5,
    • "scenes": 11,
    • "description": "",
    • "version": "4.083",
    • "compatible": true
    },
  • {
    • "id": 141,
    • "timestamp": 1467178599,
    • "devices": 63,
    • "rooms": 5,
    • "scenes": 11,
    • "description": "4.080->4.083",
    • "version": "4.080",
    • "compatible": true
    },
  • {
    • "id": 140,
    • "timestamp": 1467178134,
    • "devices": 63,
    • "rooms": 5,
    • "scenes": 11,
    • "description": "",
    • "version": "4.080",
    • "compatible": true
    },

 

  •  
×
×
  • Créer...