Scene Capture - Use webCoRE and Action Tiles to capture and store your current lighting scene


#1

Hey everyone,

I’ve used this little tool for a little while and finally had some time to finalize it so I could share it with the community.

This is a tool that let’s you capture your current scene (lights) and store it so you can reference to it later. It’s a great tool to use if you are playing around with setting up different light scenes in webCoRE.

For example:
I was setting up 3 different light modes, day, evening and night. The easiest way was to go around the house and adjust every light until I found the perfect mode and then save it (using this tool) so could later set up the desired webCoRE piston to call that scene.

I also found this tool to be super helpful when dealing with my friends and smart home clients. I could set it up on their Action Tiles and just tell them when ever they have a light scene they love they can click the tile on the panel and store it with a Title/Description so I can later set it up for them.

This tool uses 2 pistons and a few php files you would have to put on your web server (no database needed, I store all scenes in txt files).

You can find the full package with how to install and set it up here:
https://github.com/mikaeltyrsen/scenecapture

Let me know if you have any questions, running in to any problems or have ideas on how to make this tool better!



#2

Nice job, I may look into this. It’s really has the essence of the old X10 scene inclusion where you would set all the devices to a level, transmit a x10 address and set scene command. And the next time you transmitted that x10 command all the lights that subscribed would turn on to their settings. I have been missing this feature for so long.


#3

This is awesome, thank you. I could have used this when I was setting up my Hue lights to match the weather forecast. I had tons of trouble getting the colors right, ultimately made a piston that emailed me the hex code for each light.

Good stuff here!


#4

If you have Hue lights, the Hue B Smart smartapp can control your Hue scenes - and each HBS scene device has a tile with which you can save current light states. From then on, its just a simple toggle of the scene device. The nice part is that all of the Hue lights in the scene turn on / turn off / adjust HSL at once.


#5

Hey whats up, So I am having some difficulties running this piston. I think I am doing something wrong when setting up the webhost. In my logs I get a access blacklisted ( I have no idea what that even means). I was wonding if you’d be able to help me get these pistons up and running! Here is my webcore log.

+1386ms ║Error executing external web request: java.lang.SecurityException: Endpoint file:///C:/inetpub/wwwroot/store-scene.php is blacklisted.
+1396ms ║Candle 1,on,100,0,0,Candle 2,on,100,0,0,Candle 3,on,100,0,0,Candle 4,on,100,0,0,Candle 5,on,100,0,0,Corner Go,on,80,252,13,Couch Lightstrip 1,on,80,223,21,Couch Lightstrip 2,on,80,309,16,Lamp 1,on,80,223,21,Lamp 2,on,80,252,13,Shelf,on,80,252,13,Stair 1,on,80,252,13,Stair 2,on,80,154,2,Stove,on,71,248,15,TV Lightstrip,on,80,252,13

#6

Are you using http or https? I had issues between this and webCoRE using http but got it to work when using https.


#7

The first problem that I had was figuring out how to upload the package to my web host, I was unable to upload it to my localhost I didn’t use any http or https I used the file:///c:/inetpub/wwwroot/store-scene.php ( it gave me a Blacklist error when using the get function) where I ended up linking it to my Google Drive ( I don’t know if that was the right solution but it stopped giving me that error). But now when you click the save scene button on actiontiles it just brings up the webpage for the create scene code on my Google Drive.

The next problem that I encountered and that I am currently stuck on is running the scene. I currently have all of my scenes set as Global variables as a list of devices and their attributes (device1, switch, saturation, hue, level, device2…). With the run scene piston it kept on giving me an error. After all of that I realized that I don’t need to use actiontiles at all and if I could just figure out how to code the lights to turn on to the desired of the attributes I would be good to go. I mean ideally I would like the two Pistons to run how they were intended to but at this point I just want it to work


#8

I’ll post the codes that I have edited and made to run the scenes when I get home