Hi, I am trying to work on a core piston which turns on my lights at sunset and sets them to warm white and another one which sets my lights to daylight when good morning routine is invoked.
I am using hue and lifx bulbs. I see if I just select the lifx bulb, I get a color temperature setting option, but if I select any of the hue bulbs or lightify bulbs connected to hue hub, they don’t give me a colour temperature option to change. Can you please help me resolve this? I am sure there will be many of you who are using Hue lights with CoRE. I have 1 lifx bulb, 2 tunable white hue buls, 2 warm white hue bulbs and 3 lightify tunable white bulbs.
I have tried Hue Advanced Connect app, which gives me the options to set colour temperature, but it has a problem where it reports few lights are on even after turning off and vice versa. This is a bit unusuable as I am having to go to the hue app again to confirm if the lights are really off.
OK, got it working when any slider is open the lights go 100% for 2 minutes then dim back down to 15%. I used 2 basic pistons, one for turning the lights on at 15% from 5pm to 7am and a 2nd piston for the sliders on at 100%. No I have to incorporate my motion sensor to trigger 100% if it sees motion.
I’m glad to see you making progress. I’ve yet to add any motion sensors to my setup, so I don’t have a clue how those function in CoRE.
Another thing that helped me in wrapping my head around this was to first build multiple very simple pistons like you have done and then to write a new more complex piston that does everything the basic ones did. Doing them piecemeal and later combining them helped me keep everything straight in my head. I’m now more confident in starting with the more complex pistons… well, complex for me! Just don’t forget to go back and remove all the simple parts once you have a bigger piston written to handle it.
Actually, combining all the little ones into a bigger piston also help me keep things sorted out. When I open up CoRE and see tons of different pistons, I have to mentally wade through them to remember which ones interact with each other. By combining as much of a use case into a single piston as possible, I cut down on the number of dependent pistons.
I setup a piston that will unlock my front door when my presence sensor changes to present. It waits 30 sec, unlocks the door, waits 2 minutes then relocks the door (as a safety measure). However, what was happening was that if I left the door open for the 2 minutes the lock would lock even with the door open. So I wanted to add a step to make sure the door contact sensor was closed before the 2 minute wait to lock the lock occurred. This is what I wrote, it doesn’t work. I would appreciate any suggestions.
I use a variable for that, there might be other ways…
The variable buttonPushed needs to be initialized first with value of false. Give this a try.
IF
Button changes to on
AND
Variable buttonPushed is false
Using location...
> Set boolean variable buttonPushed = true
> Wait 45 minutes
> Send text
> Set boolean variable buttonPushed = false
Is anyone using NFC tags and IFTTT to trigger pistons? I’m trying to make a “mood cube” of sorts using an old phone and NFC tags. I have a IFTTT web request written to the NFC tag, which triggers a CoRE piston when scanned. Problem is… every time I scan the tag it brings open a new tab in Chrome.
Does anyone know if there is a way to trigger a web request (or CoRE piston) via a NFC tag and not have it open a new Chrome tab every time? Thanks!