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 2.1 keeps showing light level as 0 with BH1750 and V_LEVEL
Troubleshooting • 9 Jul 2017, 20:52 • George Laynes 11 Jul 2017, 18:41 -
Is MQTT Necessary? or, Use Case for MQTT?
Controllers • 28 Mar 2016, 01:12 • TRS-80 9 Jan 2020, 09:01 -
Adding sensors and relays to serial gateway
Development • 8 Dec 2015, 16:09 • Tino 9 Dec 2015, 16:19 -
Data from MQTT Gateway not pushing to OpenHab
OpenHAB • 27 Feb 2015, 02:19 • Jransom2 28 Feb 2015, 04:58 -
Switching from v1.5 MQTT gateway to ESP8266 MQTT Client gateway
OpenHAB • 1 Feb 2016, 18:41 • mbj 8 Mar 2016, 22:07 -
💬 Openhab 2 Mysensors smart chicken coop
OpenHardware.io • 2 Mar 2017, 17:02 • openhardware.io 2 Mar 2017, 17:02 -
My final setup to get MySensors and OpenHab communicating via MQTT
OpenHAB • 28 Jul 2016, 04:10 • Eric Buhring 21 Jun 2017, 20:06 -
SmartSleep and multiple messages on HVAC sensor
OpenHAB • 28 Apr 2018, 14:08 • ogghst 8 May 2018, 19:36