OpenHab Questions
-
I've recently started building mysensor network and using openhab (and a MQTT gateway) to interface with them.
Currently I only have a sleep light but I have the parts for ~10 sensors on order.
I'm stuck on the openhab side of things now through.
I want to be able to send 2 things and I'm not sure the best way to do that.
-
I want to send the current time so that the sensor can update the RTC.
I believe I can do this with a cron job and the NTP plugin and then just handle it via the node. -
I want to send a start/end time for the sleep light or send a start/end command at certain times. For both of these options I'd need a way to select the time from openhab and I can't figure that part out. I believe once I get the openhab part working It will be easy enough to handle it in the arduino but I want to know how the data is going to come in before I do that.
-
-
Hello Chaotic,
You can trigger openhab rules and commands based on time conditions. Look at https://github.com/openhab/openhab/wiki/Rules#time-based-triggers for more details.
As an example, I am using it to turn on outdoor lights in the evening and turn then off in the morning.
Hope this helps.
Suggested Topics
-
OpenHab mqtt binding only one topic
OpenHAB • 27 Jan 2015, 17:46 • mothpaul 28 Jan 2015, 15:37 -
MQTT getting data from database - New Domotic Project
Development • 31 May 2017, 18:05 • achumpitazc 31 May 2017, 19:21 -
MQTT unsure of relay state
Troubleshooting • 16 Jul 2016, 13:23 • Samuel235 16 Jul 2016, 13:23 -
Can't get message from OpenHab to MySensor
OpenHAB • 26 Jul 2016, 05:30 • A Former User 27 Jul 2016, 04:58 -
Problem with connecting serial gateway to openhab2
OpenHAB • 7 Jan 2020, 19:52 • Marcin Szyda 8 Jan 2020, 18:01 -
Universal gateway for 315/433Mhz devices
OpenHAB • 16 Jun 2015, 04:50 • static418 25 Jun 2015, 14:35 -
Adding sensors and relays to serial gateway
Development • 8 Dec 2015, 16:09 • Tino 9 Dec 2015, 16:19