{"action":"created","issue":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/408","labels_url":"https://api.github.com/repos/balloob/home-assistant/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/balloob/home-assistant/issues/408/comments","events_url":"https://api.github.com/repos/balloob/home-assistant/issues/408/events","html_url":"https://github.com/balloob/home-assistant/issues/408","id":107354162,"number":408,"title":"Feature Request: Save and Restore Home Light State","user":{"login":"CCOSTAN","id":2160436,"avatar_url":"https://avatars.githubusercontent.com/u/2160436?v=3","gravatar_id":"","url":"https://api.github.com/users/CCOSTAN","html_url":"https://github.com/CCOSTAN","followers_url":"https://api.github.com/users/CCOSTAN/followers","following_url":"https://api.github.com/users/CCOSTAN/following{/other_user}","gists_url":"https://api.github.com/users/CCOSTAN/gists{/gist_id}","starred_url":"https://api.github.com/users/CCOSTAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCOSTAN/subscriptions","organizations_url":"https://api.github.com/users/CCOSTAN/orgs","repos_url":"https://api.github.com/users/CCOSTAN/repos","events_url":"https://api.github.com/users/CCOSTAN/events{/privacy}","received_events_url":"https://api.github.com/users/CCOSTAN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-19T20:32:48Z","updated_at":"2015-09-20T05:36:19Z","closed_at":null,"body":"I would find it useful to be able to save the state of the lights, do something (like FLASH/Blink/Party mode) them and then restore them to the previous state. Similar to the functionality of the scene but more isolated so I could use it in scripts or automations. Not sure if this is a niche thing for me or if others would find it useful.\r\n\r\nI am specifically thinking about it with the recent addition of IFTTT support. I want to use triggers on IFTTT and lights as the notifier on HA but need to be able to somehow set them BACK to whatever they were before sending the flash alert.\r\n\r\nExample: Flash a light (or THE ENTIRE HOUSE) when \r\nany IFTTT notification comes in (Mail, Tweet, Meeting, etc...)\r\nEventually when a VOIP call comes in.\r\nAlarm/timer ends on Amazon Echo\r\nz-Wave Doorbell rings, Mailbox Opens, Pool gate opens.\r\n\r\nAll of these things require a way to save the current state and then restore them. I tried to use scene but the flash:long service can't be included in the scene. (I guess it's not a state).\r\n\r\nSo the easy way might be to just add flash to scenes but a more broader solution might be to create a separate save/restore function.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/comments/141751347","html_url":"https://github.com/balloob/home-assistant/issues/408#issuecomment-141751347","issue_url":"https://api.github.com/repos/balloob/home-assistant/issues/408","id":141751347,"user":{"login":"maddox","id":260,"avatar_url":"https://avatars.githubusercontent.com/u/260?v=3","gravatar_id":"","url":"https://api.github.com/users/maddox","html_url":"https://github.com/maddox","followers_url":"https://api.github.com/users/maddox/followers","following_url":"https://api.github.com/users/maddox/following{/other_user}","gists_url":"https://api.github.com/users/maddox/gists{/gist_id}","starred_url":"https://api.github.com/users/maddox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddox/subscriptions","organizations_url":"https://api.github.com/users/maddox/orgs","repos_url":"https://api.github.com/users/maddox/repos","events_url":"https://api.github.com/users/maddox/events{/privacy}","received_events_url":"https://api.github.com/users/maddox/received_events","type":"User","site_admin":true},"created_at":"2015-09-20T05:36:19Z","updated_at":"2015-09-20T05:36:19Z","body":"I like the idea of being able to store just specific entities too :) I assume it'd store ALL state without optional params.\r\n\r\nWithout fear of everything being jacked up or manually fixing state, I think this could enable a ton of cool things you can do with your stuff."}}