Hello All,
I have lot of errors in log. For me it is looking like DB problem. Anyone have a clue what is going on?
Try restarting your hub to see if that solves it. If not try a soft reset which is essentially replacing the database with a backup copy but all your paired devices remain. Instructions can be found here:
https://docs.hubitat.com/index.php?title=Soft_Reset
Before restart and soft reset, download all current backups and make a new backup and download that one as well.
Timeouts aren't necessarily a reset situation. Timeouts can indicate something is waiting or blocking something else from happening. The hub may be overloaded (too much automation, poorly written automation) or it may be waiting (internet is down, weak mesh, bad device, bad device driver) on a device.
What was happening before and during this occurrence? Have you noticed any slowdowns?
Thank You, that solved my problem.
I had power outage and this errors started to appear. After power goes back hub started to hanging after 2-3 hrs up (network panel was unavailable). After few reboots situation was coming back . Now after soft reset all is working fine (4hrs now and no errors in log).
When it comes to automate stuff, can we just write automation? This web buttons are the worst... I'm lost after few simple steps. Free automation software are much better than this. Pleas do something about it, (I know this is offtop but I'm frustrated.....)
Do you use any cloud integrations? Some of the OOTB ones (like Google Home) aren't written in a way that they behave when the internet goes away. A lot of devices that depend on the cloud don't behave when the internet goes away though.
I'm not sure what you mean. We can write apps or use the built-in apps to do whatever automation we want.
I don't work for Hubitat. Some of us have "Developer" tags but that just means we're community developers.
I did not have any integration, never mind....
Indeed i tough You are working for hubitat.
I just like to write automation scripts for rule machine, not to use this buttons. Can You give me advice how to start and where? (I have only experience with c++ but I believe I can handle it )
We have the ability to add Groovy (Java based) scripts to the hub. You can do it here:
Here are some official examples:
GitHub - hubitat/HubitatPublic
There are many community examples as well. One of the most prolific developers is bptworld whose repository is here.
GitHub - bptworld/Hubitat: Apps for use with Hubitat Elevation
To add to the above, you can't "write" a script for Rule Machine; you can only build one using the GUI. The original (and current) intent of the app is to let you create custom automations without having to create an actual custom app (no real coding, just a similar thought process). However, I would not think of Rule Machine as my first go-to for any automation need, just something that is there if you want something the built-in apps can't provide. Hubitat has lots of built-in apps to handle common automations, many of which have lots of options for configuration/customization: https://docs.hubitat.com/index.php?title=Hubitat_Elevation_Documentation#App_Documentation
Custom apps--the above--are an option if you don't want to use Rule Machine and don't want to use built-in apps to accomplish your goal. Hubitat's developer docs are lacking in many respects, but the "classic" SmartThings developer docs (the Groovy sandbox they run in is very similar) are a good start, along with the above examples (and Hubitat's docs, which I'd check regardless for method signatures and whatnot that may be different from ST). These apps are not related to Rule Machine, though if you start writing them and learn Hubitat's app UI model (of which RM pushes the boundaries--native apps were written using more or less what we have available to us, too), you may understand why RM was written in the click-happy way it was.