Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Piface binding #473

Closed
openhab-bot opened this issue Nov 17, 2013 · 6 comments
Closed

Piface binding #473

openhab-bot opened this issue Nov 17, 2013 · 6 comments

Comments

@openhab-bot
Copy link
Collaborator

From [email protected] on September 24, 2013 09:51:49

My request might point in direction of a generic communication binding rather than making changes to the Piface binding. Let me know what you think.

I have been looking at Ben's excelent Piface binding, and came to the conclusion that it could do what I need for 95%. My usage is a Raspberry Pi without a Piface board. On my Raspberry I am using Pi4j to monitor pin 0.
Since it is the state of a smokedetector I need some sort of watchdog mechanism on the connection.
I have also ordered a DHT22 humidity sensor. It is not a Dallas 1-Wire sensor, so it needs its own pin and its own software. There are some samples on how to read out the sensor. For transmitting data from my Raspberry to OpenHAB I there need something more flexible than a byte. I need something that will fit values between 0 and 100.

I don't know if you think this points in a completely wrong direction of the Piface binding. I can argue for both that it does and also that it doesn't.

Please let me know if the above is possible to do in the piface binding or I have to start another binding?

/Martin

Original issue: http://code.google.com/p/openhab/issues/detail?id=473

@openhab-bot
Copy link
Collaborator Author

From [email protected] on September 24, 2013 13:18:08

Besides from having something that could values in the range 0 to 100, I completely forgot about the temperature part of DHT22. So a string would be nice....

@openhab-bot
Copy link
Collaborator Author

From [email protected] on September 24, 2013 19:09:26

I would suggest doing the DHT22 monitoring in a separate script (calling the software you mentioned) and use the openHAB REST API for sending data back. No need to complicate the PiFace binding for this I don't think.

The watch dog idea is a good one however, it has been on my TODO list for a while. I will hopefully get a chance to implement this soon.

@openhab-bot
Copy link
Collaborator Author

From [email protected] on September 24, 2013 22:57:50

Using the OpenHAB REST API for more complex data sounds like a great idea. I also like to keep stuff uncomplicated ;-)

Doing the watchdog would be fine.

/Martin

@openhab-bot
Copy link
Collaborator Author

From [email protected] on September 25, 2013 16:00:21

Watchdog has been implemented and pushed to my fork ( https://github.com/sumnerboy12/openhab/commit/3b3e9fafc266436f8c818d64f4549bddf459bea9 ).

@openhab-bot
Copy link
Collaborator Author

From teichsta on November 05, 2013 14:53:56

Labels: To-Github

@teichsta teichsta reopened this Dec 8, 2013
@teichsta
Copy link
Member

watchdog implementation has been merged with PR #13

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

No branches or pull requests

2 participants