Integration API peripheral

Hello world !
I’m trying to integrate a peripheral that have it’s own API commands (it’s an IO card). So I can switch outputs with a simple http request. I’m sure that it’s possible to integrate it on Home Assistant but I didn’t find how … !
Can somebody help me ?

Two options would be through a rest integration

or thorugh a shell command integration

Thanks for your reply,
Which way may I have to go if I want to integrate the IO card into Home Assistant, for other user to just have to add a new peripheral to use it with ?

Your going to have to give some more detail on what you are trying to accomplish.

I’m trying to create a peripheral that we can add in configuration/integration, and when this peripheral is added to HA, user would be able to create new card with the possibility to control outputs of the IO card I’m trying to integrate.

Details please.

What is the card? Can you link to the API?

If I understand your goal correctly, you want to be able to control the card through the Home Assitant front end (someone can push a button on the front end and toggle the cards output?)

Yes that’s it.
API commands I have to use are like this :
http://IP_addr/api/device.json?key=apikey&SetR=1 (to switch on the 1st relay).

Hi,

I’m back, after some days trying to find some tutorials or documentations but I’m still lost…
I’m want to integrate the IPX800 V4 to HA.
As I said, the API is like this : http://IP_addr/api/device.json?key=apikey&SetR=1.
I want to allow to simply control the IPX800 V4 from HA.
Can anyone help me giving some links to do so ?

Hello,

If I understand well, GCE wants to integrate in HA the IPX800v4 which have his own API. He know how to do that but it’s time consuming for HA users.
I think that he wants to develop somethings in HA to make it easier for all HA users. What I propose is to be developed something in github first in order to integrate it later into the next HA realase.

Read today solution regarding IPX800 interface with HA :
Gce Electronics Forum

Hello GCE,
Are you the same guy from the GCE forum ?
Thanks

Hello,
No, I’m not the same person.
I work at GCE but for the moment, I’m looking for this integration personally.
It’s a great idea to integrate it into the further version of HA.
I think that HA is promising but for the moment, I didn’t find a way to control a relay of the IPX from HA interface…

Hello Kévin,

Did you try what tt-gce-electronics describe on the GCE forum ?

Best regards.

Hi, I didn’t try it because it need to run the code on a Raspberry. Effectively, I have one but I don’t want to add complexity to HA, I want to simplify the configuration of the IPX800 V4 inside HA…

To do what I want, I need to create a library and a custom component, right ?
Is there some links which explain how it must works ?

Dear @Gce,

Did you read the HA developpers website, it explain how home assistant platform works and how to add features. Unfortunately my knowledge is not enough to help you to develop the M2M interface.
https://developers.home-assistant.io/

I have also found a Lua code which allow us to send, read M2M commands with the IPX800.
http://www.touteladomotique.com/forum/viewtopic.php?f=48&t=7709

Dears,

I made the integration IPX800-V3 & HA
In a nutshell

1 - Create switch REST to send cmd in HTTP
2 - Send notif from IPX to HA to update switch status
3 - Retreive swithc status from IPX via status.xml to update HA switches at starting time

So need to find time to explain it in details + sharing code

ThL

Thank you very much for your support.
Very exiting that you will share one example.

Hi Thierry,
Could you share your code?
Very interested to use IPX800 V3 with HA !
Thanks