Exploring RuleBuilder for Enhanced Home Automation

I’ve been diving into the RuleBuilder lately and it’s been a fascinating journey! I’m trying to set up some basic rules to automate my home, but I’m curious if it’s possible to chain commands to items. For instance, I’d love to have the kitchen light turn on at sunset and simultaneously turn off the front door lamp. Here’s a snippet of what I’ve been working on:

javascript
rules.when().timeOfDay(“SUNSET”).then().sendOn().toItem(“KitchenLight”).and().send(“OFF”).toItem(“FrontdoorLamp”).build(“Sunset Rule”, “turn on the kitchen light at SUNSET”);

I noticed the and() method in the code, but I’m struggling to get it to work smoothly. Has anyone else encountered this or found a workaround? I’d love to hear your experiences!

Another thing I’ve been exploring is the Comfort Sleep functionality. I upgraded my Jawbone UP Move to an UP 2, and while it tracks sleep automatically, it doesn’t go into sleep mode unless triggered manually in the app. It would be amazing if I could set this up with a button or mode change. Maybe integrating it with my existing smart home setup could solve this hassle. Any ideas or similar setups you’ve tried?

Lastly, I’ve been dealing with some timestamp issues in my rules. I set up a rule to add a timestamp when a sensor updates, but I keep getting an error. The rule looks like this:

javascript
rule “sump node updated”
when Item sumpBattery received update
then postUpdate(sumpLastUpdate, new DateTimeType())
end

The error message is quite lengthy, and I’m not sure where to start troubleshooting. If anyone has encountered something similar or knows how to fix this, I’d be grateful for any guidance!

Overall, RuleBuilder has so much potential, and I’m excited to see how I can optimize my home automation setup with it. Let’s keep the conversation going and share our tips and tricks!