ioBroker / AdapterRequests

This Place is used to track the status of new Adapter-Requests.
249 stars 36 forks source link

Adapter für Homeseer HS3/HS4 #472

Open Joesch80 opened 4 years ago

Joesch80 commented 4 years ago

Ich würde mir einen Adapter für die amerikanische Hausautomatisierungssoftware Homeseer wünschen. Momentan frage ich den Status von einzenlen Devices so ab: Ich erstelle ein Event in Homeseer, das bei einem Status- oder Wertwechsel ein Script-Command ausführt, hier als Beispiel die Temperatur im Badezimmer: &hs.GetURL("http://192.168.0.7","/set/Datenpunkte.0.Badezimmer_Temperatur?value=Wert",FALSE,8087) Auf IObroker ist der Simple RESTful api-Adapter installiert. Ein Blockly Script parst nach Änderung von Datenpunkt Badezimmer_Temperatur den gewünschten Wert vom Homeseer-Server http://192.168.0.8/JSON?request=getstatus&ref=2077 und schreibt diesen in einen neuen Datenpunkt, der dann in Vis angezeigt werden kann. Super umständlich. In meinem Fall liefert die Seite http://192.168.0.8/JSON?request=getstatus alle informationen von allen Geräten. Damit könnte man alle Devices in IObroker abbilden.

Hier findet man die dokumentierte JSON API: https://homeseer.com/support/homeseer/HS3/hs3sdk.pdf

Gruß Joesch

teverett commented 4 years ago

Hello @Joesch80

It looks like a combination of hsMQTT and the MQTT broker in ioBroker might help. You can get hsMQTT here

https://github.com/teverett/hsmqtt

You will need to change the configuration file for hsMQTT to point to ioBroker and HomeSeer. There is an example here:

https://github.com/teverett/hsmqtt/blob/master/hsmqtt.properties.example

hsMQTT will put messages onto an MQTT bus when devices change in HomeSeer.

The MQTT support in ioBroker is documented here:

https://www.iobroker.net/#en/adapters/adapterref/iobroker.mqtt/README.md

Joesch80 commented 4 years ago

Hello Teverett,

Thank you very much for your answer and explanation. I am very excited to try it out. Could you please explain me how the software is called in Homeseer. Is it a script, a plugin or how is it installed? Once again many thanks

teverett commented 4 years ago

hsMQTT uses hsClient, which uses the JSON API you described above. Essentially hsClient is a wrapper around the JSON API. For example you posted this:`

1http://192.168.0.8/JSON?request=getstatus

hsClient has this:

Device getDevice(Integer ref) throws HSClientException;

which is a Java wrapper function around the same HTTP call.

hsMQTT uses hsClient to collect data from HomeSeer and then places JSON messages onto a MQTT bus

You don't install hsMQQT into HomeSeer. hsMQQT is a standalone executable Java jar.

teverett commented 4 years ago

FYI I have also written an OpenAPI server for the HomeSeer JSON API. It's very new but it may be of interest.

https://github.com/teverett/hsOpenAPI