I checked Fiverr to see if anyone was providing OpenHAB support, but it doesn’t look like there is really anyone there.
I find that finishing my rules is the greatest source of frustration for me, partly because of some of the idiosyncrasies of OpenHAB and partly due to me wanting to get on to the next project. It’s a classic example of the first 80% of the project being fun, and the last 20% is tedious. Then I get busy with business cycles and forget where I left off, discouraging me further.
I realize that the community is a huge help and fantastic resource, but I could use a fiverr-type relationship for some support. Anyone offering such a service?
(Stuart Hanlon, UK importer of Velbus hardware)
Exactly what kind of help do you need?
Your question is fantastic and a sentiment I fully support, however you’ve been sufficiently uninformative to not know how to help.
Technically, yes. I’ve provided little detail, but the question was more about finding people that might want to help for $5 here and $10 there… simple script stuff that makes me crazy and discouraged (like a script not working because of the difference between postupdate and sendcommand). And timers that reset when a motion detector continues to detect motion.
Or this one, where the chart below shows power consumption of a washer and a dryer, and a sensor checking the dryer for relative humidity at the exhaust. I want to trigger events when the washer is ‘done’ and turn off the dryer (a dumb dryer) when humidity hits a low level.
I think if you wanted to do that it would be best to ask here on the forum for someone with experience with X gear that wants to do some rule creation for you. Rules need to be tested, so either you would need to do testing and feed it back to the creator, or they need to have a similar setup for testing on their own setup.
It could be done with the expire binding and each time you detect power being drawn above a ‘threshold’ you just reset the expire time on a virtual switch. When the control expires the washer is off. It could be done with a slider for adjustable threshold or a hardcoded value in the rule.
Here is a simple example. I’ve spent 1/2 hour on it and am still frustrated.
rule "Post Holiday Data"
Time cron "0 8 21 * * ?"
val holiday = V_HolidayName.state.toString
holiday = holiday.replace("'", "\'")
val result = executeCommandLine("python /etc/openhab2/scripts/slack.py '#general' '" + holiday + " " + V_HolidayType.state.toString + "'", 1000)
V_HolidayName = “President’s Day” in this example.
Error: 2019-02-18 21:08:00.399 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'Post Holiday Data': Unbalanced quotes in python /etc/openhab2/scripts/slack.py '#general' 'President's Day Holiday'
Visual Studio Code & the log report the script to be in error:
2019-02-18 21:06:38.523 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'notification.rules', using it anyway:
Assignment to final variable
Skinah - thanks for the tips. I think you hit upon what I need. The slider would allow someone to put together a script and allow me to adjust it until I get the results I need.
I agree the community is awesome but:
I dislike feeling like I’m always asking stupid questions, even if I’ve spent 20 minutes with google and the search function.
I dislike trying to map my understanding to someone who may or may not have a better approach (for my situation) and sometimes trying to decipher what I’ve been told takes longer than having spent more time with google.
I like having someone who understands my thought process, technical weaknesses, environment and can provide understandable tips, or deployable code.
Just a heads up that their is talk of discontinuing the rules language (xtend) at the moment and moving to a newer format in Openhab 3. I could have that wrong, but I would not like to pay for someone to create rules and then have to pay to get them going in a newer format in 12 months time.
An issue I thought about with the washer situation is detecting if someone has paused or cancelled the washing part way through and the rule thinks the washing is done.
I don’t have the time to offer so best of luck finding someone but it is good that you are not expecting people in the forum to write rules for you for free.
Another approach may be for you to play with node red, perhaps learning a graphical way will allow you to piece together the same result without learning Xtend?