Sure, I’m sure it’s way messier than need be, but it works well. It listens for hubitat_events and then parses the output via function and then checks it against the current time of day to see if it should act.
In my case, if the front door is unlocked via the “Main Code” and it’s between Sunset-3AM it will turn on some entry lights.
[{"id":"e15622bd.6a2e","type":"server-events","z":"6e8c74e9.946a4c","name":"Hubitat_Events","server":"403857dc.a507","event_type":"hubitat_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":100,"y":1380,"wires":[["6e1e7ea9.f68738"]]},{"id":"6e1e7ea9.f68738","type":"function","z":"6e8c74e9.946a4c","name":"Parse Front Door - w/Code","func":"if (msg.payload.event.value == \"Main Code\" && msg.payload.event.device_id == \"194\") {\n msg.payload = \"unlockedCode\"\n return msg;\n} else {\n return null;\n}\n\n","outputs":1,"noerr":0,"x":280,"y":1460,"wires":[["b29c7133.575ca"]]},{"id":"b29c7133.575ca","type":"switch","z":"6e8c74e9.946a4c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"unlockedCode","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":1360,"wires":[["4589adf.5527dd4"]]},{"id":"4589adf.5527dd4","type":"time-range-switch","z":"6e8c74e9.946a4c","name":"","lat":"33.838","lon":"-118.33928","startTime":"sunset","endTime":"03:00","startOffset":0,"endOffset":0,"x":520,"y":1280,"wires":[["8a813953.1bee98"],[]]},{"id":"8a813953.1bee98","type":"api-call-service","z":"6e8c74e9.946a4c","name":"","server":"403857dc.a507","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining, light.mid","data":"{\"brightness_pct\":\"55\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":650,"y":1400,"wires":[[]]},{"id":"403857dc.a507","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]