sstadlberger / home

Custom Interface / API for the Busch Jäger free@home system.
Mozilla Public License 2.0
42 stars 16 forks source link

detailed Tutorial how to add device #20

Open capptn opened 5 years ago

capptn commented 5 years ago

Is there a possibility of a detailed tutorial on how to add own devices?

henry-spanka commented 5 years ago

Hi, can you please explain which devices you would like to add and how do you want to control them (API/Websocket)?

capptn commented 5 years ago

Hi, I would like to control my own switch actuator based on an esp8266 via the user interface of the free @ home system. is that even possible?

henry-spanka commented 5 years ago

Hi, it is possible but I have only tried it with switch actuators for my HomeKit project. However this method requires an empty channel (no physical devices connected) on your switch actuator (Schaltaktor).

Basically you will then be able to listen for the state (web socket or polling) with the API of the switch actuator. That's at least how I am doing it.

I have also seen notifications coming from the SysAp for buttons (Sensor/Taster) but haven't really digged into it yet. You can try to listen to the web socket setup by the API and should be able to see if a button is pressed and process this.

See: https://github.com/sstadlberger/home#websocket-api

capptn commented 5 years ago

The websocket-api I have already tried and I have seen telegrams sent by the sensor units, etc. But it is also possible to create a device with The API(Data.json?) that appears as a physical devicein the config of the free @ home?

henry-spanka commented 5 years ago

Sorry that's not possible I think. You can only use supported devices from free@home.

sstadlberger commented 5 years ago

Hi All,

I'm currently not actively working in this project. I've started using the free@home binding with openHAB. As far as I can tell it supports all the functionality of free@home and openHAB's features are way bigger than anything I've build so far.

You can check it out here: (https://github.com/ruebox/openhab2-addons/blob/feature_binding_freeathome/addons/binding/org.openhab.binding.freeathome/README.md

Cheers, Stefan