Giter Club home page Giter Club logo

homepluscontrol's People

Contributors

chemaaa avatar fabaff avatar onkelbeh avatar vlebourl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

vlebourl

homepluscontrol's Issues

Add instant consumption

This information is available in

  • Get all plant's module status
    • plugs
    • Light
    • energymeters
    • heaters

And

Get [plug|light|energymeter|heater] status

Api

Redirect URL & First Reply Url

Hello chemaaa, first thank you for your integration!
I've no idea what to put in the Redirect URL & First Reply Url fields. Both of them are mandatory
Can you help me?
Thanks a lot

[Feature] add energy meters

Hi @chemaaa,
as requested some JSON responses coming from my LEGRAND energy meters.

Get Energy Meter's status:

Pragma: no-cache
Cache-Control: no-cache
Set-Cookie: TiPMix=xxxxxxxxxx; path=/; HttpOnly; Domain=cwn-website-prod.azurewebsites.net; Max-Age=3600; Secure,x-ms-routing-name=self; path=/; HttpOnly; Domain=cwn-website-prod.azurewebsites.net; Max-Age=3600; Secure
X-AspNet-Version: 4.0.30319
Request-Context: appId=xxxxxxxxxxxxx
Access-Control-Expose-Headers: Request-Context
Date: Sat, 17 Apr 2021 06:17:43 GMT
Content-Length: 201
Content-Type: application/json; charset=utf-8
Expires: -1

{
"energymeters": [{
"reachable": true,
"consumptions": [{
"unit": "watt",
"value": 33,
"timestamp": "2021-04-17T06:17:44+00:00"
}],
"sender": {
"plant": {
"module": {
"id": "0000000xxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
},
"fw": 54
}]
}

Get energymeter's consumptions:

Pragma: no-cache
Cache-Control: no-cache
Set-Cookie: TiPMix=xxxxx; path=/; HttpOnly; Domain=cwn-website-prod.azurewebsites.net; Max-Age=3600; Secure,x-ms-routing-name=self; path=/; HttpOnly; Domain=cwn-website-prod.azurewebsites.net; Max-Age=3600; Secure
X-AspNet-Version: 4.0.30319
Request-Context: appId=xxxxxxx
Access-Control-Expose-Headers: Request-Context
Date: Sat, 17 Apr 2021 06:24:59 GMT
Content-Length: 1749
Content-Type: application/json; charset=utf-8
Expires: -1

{
"consumptions": [{
"unit": "watt_hour",
"value": 23,
"timestamp": "2021-04-16T05:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 360,
"timestamp": "2021-04-16T06:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T07:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T08:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T09:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T10:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T11:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T12:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 15,
"timestamp": "2021-04-16T13:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 314,
"timestamp": "2021-04-16T14:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T15:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T16:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T17:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T18:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T19:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T20:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T21:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-16T22:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 17,
"timestamp": "2021-04-16T23:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 323,
"timestamp": "2021-04-17T00:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-17T01:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-17T02:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-17T03:30:00+00:00"
}, {
"unit": "watt_hour",
"value": 16,
"timestamp": "2021-04-17T04:30:00+00:00"
}]
}

Let me know if you need further info or help.

Thank you in advance.

BR,
Michele

Netatmo Connect - New API for Home + Control

The problem
Just received this email:

Home + Control API on Works with Legrand will be deprecated in the next 2 years and replaced by Home + Control API on Netatmo Connect.
The goal is to provide a unified API including more solutions and to support new devices like modules for Electrical Panel "... with Netatmo"
We advise you to migrate as soon as possible on this new API to still benefit from a continuity of service

@chemaaa, are you plan for this?

[Feature] Support iDiamant

Hi, sorry if this is already included. I'm still waiting for my Client ID and Secret so I haven't been able to check on my own...
I own an iDiamant module to control Bubendorff covers. I believe from your doc that it isn't included yet.
Here's a sample json from the get plant topology endpoint:

{
  "plant": {
    "id": "000000005d1e3bc135983300xxxxxxxx",
    "ambients": [{
      "id": "5d1e3bc1359833001709008axxxxxxxx",
      "name": "Cuisine",
      "type": "kitchen",
      "modules": [{
        "id": "000070ee503ed5d462756200xxxxxxxx",
        "name": "Volet Cuisine",
        "hw_type": "NBR",
        "device": "automation"
      }]
    }, {
      "id": "5d1e3bc1359833001709008axxxxxxxx",
      "name": "Entrée",
      "type": "lobby",
      "modules": [{
        "id": "000070ee503ed5d462756200xxxxxxxx",
        "name": "Volet Entree",
        "hw_type": "NBR",
        "device": "automation"
      }, {
        "id": "000070ee503ed5d462756200xxxxxxxx",
        "name": "Volet Salon",
        "hw_type": "NBR",
        "device": "automation"
      }]
    }, {
      "id": "5d1e3bc1359833001709008axxxxxxxx",
      "name": "Bureau",
      "type": "home_office",
      "modules": [{
        "id": "000070ee503ed5d462756200xxxxxxxx",
        "name": "Volet Bureau",
        "hw_type": "NBR",
        "device": "automation"
      }]
    }, {
      "id": "5d1e3bc1359833001709008axxxxxxxx",
      "name": "Chambre parents",
      "type": "bedroom",
      "modules": [{
        "id": "000070ee503ed5d462756200xxxxxxxx",
        "name": "Volet Parents",
        "hw_type": "NBR",
        "device": "automation"
      }]
    }, {
      "id": "5d1e3bc1359833001709008axxxxxxxx",
      "name": "Palier",
      "type": "corridor",
      "modules": []
    }, {
      "id": "5d1e3bc1359833001709008axxxxxxxx",
      "name": "Chambre Lenaic",
      "type": "bedroom",
      "modules": []
    }, {
      "id": "5d1e3bc1359833001709008xxxxxxxx",
      "name": "Terrasse",
      "type": "outdoor",
      "modules": []
    }],
    "modules": []
  }
}

Using the dev website, I've been able to get the covers state using Get automation's status:

{
  "automations": [{
    "reachable": true,
    "level": 100,
    "step": 100,
    "fw": 16,
    "sender": {
      "plant": {
        "module": {
          "id": "000070ee503ed5d462756200xxxxxxxx"
        }
      }
    }
  }]
}

And control it with Set automation's status
body:

{
  "ids": [
    "string"
  ],
  "level": 100
}

(level is limited to 0 for closed and 100 for open for my covers as they don't have state return for mid closing...).

Any chance that could be added to the API and the HA module?
I've forked and started looking at your code, but without my ID and Secret, I can't do muck yet...
Let me know if I can help in any way!

Cheers (and great job and creating this!)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.