Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FHEM home automation integration #675

Closed
sashsc opened this issue Jun 21, 2017 · 20 comments
Closed

FHEM home automation integration #675

sashsc opened this issue Jun 21, 2017 · 20 comments
Assignees
Milestone

Comments

@sashsc
Copy link

sashsc commented Jun 21, 2017

Hello everyone.

You have already integrated into the bridge domoticz.
Is it possible to make an integration for FHEM (like DOMOTICZ)?

Or will it be possible to retrieve a status from a device or a reading?

Thanx
Sascha

@bwssytems
Copy link
Owner

That would be an enhancement we can put on the list for FHEM integration.

You can already get device state by https://github.com/bwssytems/ha-bridge#get-light-attributes-and-state

@bwssytems
Copy link
Owner

Also, how many would like FHEM integration? Would like to know how many use this as other systems I have not yet done are more popular.

@sashsc
Copy link
Author

sashsc commented Jun 21, 2017

Thanx for answering.

I think, most of the users are in germany. And how much of them using the ha bridge, i don't know.
But i think that there are enough users. The makers of ESPEASY have integrated a connection for FHEM Tool.

@bwssytems bwssytems changed the title FHEM integration / Stauts Device Reading FHEM home automation integration Jun 22, 2017
@bwssytems
Copy link
Owner

Updated the title for the enhancement. This currently will be after a few other items.

@essera
Copy link

essera commented Jul 9, 2017

Hi,

HABridge ist e very cool Tool in Connection with Fhem and alexa. If there will be a Integration with Fhem that will be great. i know many peole using habridge instead of connect Fhem to Amazon directly.

@heikoh81
Copy link

heikoh81 commented Sep 5, 2017

I'm using HABridge to control FHEM, too.

@DuschdrBabbe
Copy link

That would be great

@docb7
Copy link

docb7 commented Dec 3, 2017

Yes, definetly. Fhem has a huge and extremely active community and I am sure we all would love to have it implemented!

@nihebe
Copy link

nihebe commented Dec 14, 2017

+1 for native FHEM support, but not a big 1...

At the moment I'm controlling it via HTTP requests of the form:
http:https://usr:pwd@FHEM-IP:FHEMWEB-Port/fhem?cmd=set%20Device%20on
http:https://usr:pwd@FHEM-IP:FHEMWEB-Port/fhem?cmd=set%20Device%20dim%20${intensity.percent}
http:https://usr:pwd@FHEM-IP:FHEMWEB-Port/fhem?cmd=set%20Device%20RGB%20${color.rgbx}

Actually, this works like a charm and maintaining is acceptable. The only condition is, that you don't control hardware directly from habridge. Otherwise the states in FHEM won't be up-to-date.

@bwssytems
Copy link
Owner

Do you know what the query for devices and or scenes call is? If I have that, it pretty much is easy from there.

@nihebe
Copy link

nihebe commented Dec 14, 2017

I think it would make sense to define a own room habridge for habridge in FHEM where the user has to add all FHEM-devices, that should be exposed to habridge. Then you could retrieve them by:
http:https://usr:pwd@FHEM-IP:PORT/fhem?cmd=jsonlist2%20room=habridge

What you're going to receive is a full HTML document. But inside the div with the id content you'll have a nice JSON, that lists all devices as single entities. There are going to be lots of parameters, but actually you don't need more than Name to build the controller URLs provided an hour ago.

Additionally you could use PossibleSets, which tells if there is e.g. on and off only or also dim (-> habridge ${intensity.percent}) and RGB (-> habridge ${color.rgbx}). Depending on PossibleSets you could either allow on/off only, or also dimming and coloring.

In Readings you could also read current status of devices in FHEM and refresh them in habridge, but at least in my setup this isn't important, as FHEM remains the leading smart home engine, that has logic depending on the device states.

Here's an example for a sample habridge room with two devices DeckenlameLinks (coloring + dimming supported) and Arbeitslicht (on off only). The JSON begins in line 152.

@bwssytems
Copy link
Owner

bwssytems commented Dec 14, 2017

Never mind I saw the example. Thanks!

@bwssytems bwssytems self-assigned this Dec 14, 2017
@bwssytems bwssytems added this to the 5.2.0 milestone Dec 14, 2017
@gvzdus
Copy link

gvzdus commented Dec 29, 2017

Just want to say "Thank you". habridge now let Alexa open my shutters (via FHEM & Homematic) and set the thermostats (via FHEM & CUL & eq3 MAX). Installation worked very charming, the 2 traps I got caught were the CSRF token and HA bridge promoting rather the dynamic IP of the Wifi LAN than the fixed IP of the Ethernet connection. Webinterface is straight forward. "I am happy". I hope, if Philips should extend the protocol e.g. for fetching values, you will be close behind...

@bwssytems
Copy link
Owner

Please go test RC version in #863

@bwssytems
Copy link
Owner

Would really like someone to test the 5.2.0RC to see if it is working. I do not have a FHEM.

@gvzdus
Copy link

gvzdus commented Jan 5, 2018 via email

@bwssytems
Copy link
Owner

@gvzdus I just put RC2 up and it is available

@gvzdus
Copy link

gvzdus commented Jan 5, 2018 via email

@bwssytems
Copy link
Owner

DEBUG is turned on in the logs tab at the bottom. Hit the "+" and then select 'show all loggers' That will expand the list of classes. for FHEM select DEBUG for com.bwssystems.HABridge.plugins.fhem and com.bwssystems.HABridge.plugins.http. That should output to your syslog or log file depending on startup and you can post a link to the file. Ue pastebin.org for that.

@bwssytems
Copy link
Owner

New Jar is out in thread #863

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants