Apologies if this sounds stupid, I am still trying to figure all this out. The resources are great but I am having trouble wrapping my head around what exactly I should be looking at for what I want to do.
Say I have an Echo dot and a smart light. I want to create a skill which will run my code before Alexa accesses the smart light. I don't want to re-program the functionality that the smart light has (or even touch any of that) I just need to run my skill before Alexa interacts with the light.
I found and implemented some sample code out there for creating a smart home skill (also some other code for created an Alexa skill) but the more I look into it, it seems smart home skills are for situations where you have your own smart device and you want to program functionality for that device.
I do not want to program any functionality for any devices, I just want to be a gateway of sorts for all devices connected to Alexa. Do I want to be looking into how to make a smart home skill, or just an Alexa skill? Side note: I need to be able to discover all devices and get their capabilities in order to run my skill properly.
I hope all that makes sense, thank you so much for your help. I really appreciate it.