Post by keshin on Jan 7, 2018 4:36:44 GMT
Hey guys im completely new to the world of home automation but im trying to get my head around it all (im more hardware than software)
I hope this is okay to post in here and hopefully someone may be able to steer me in the correct direction.
im still learning to code arduino so far i have managed to get basic things happening based purely on i/o pins
what im hoping for is if anyone can help me get over this next hurdle (iv read so much im confusing myself)
what i have so far:
*i have an arduino mega with ethernet sheild
*i have a 16 relay board
*im using a windows 7 pc and have installed openhab and mosquitto onto it
*openhab connects to ios openhab app
where i am lost
*i cannot work out what code or how to get the arduino to communicate with open hab and let me use each i/o i set as a different switch etc in openhab
is there any chance anyone has a basic sketch or something with notes that for example would allow the arduino to communicate with open hab and make a switch for led pin 13 to turn on, from that i think i would be able to understand what parts identify the arduino to openhab and what parts identify a switch and output in arduino.
please note i do plan on using esp8266's down the track but for now i wish to start with the ethernet
Thanks to any help im given
also if its okay i will compile everything i learn here and edit this first post to show the very basic noob getting started instructions to help others in the same spot i am now.
attached is a crude drawing of my basic idea i wish to start with also i am unsure if my switch idea will work or not at this stage functionally it works, however for eg if i attached a light to the relay i want to be able to have openhab understand which state the light is in, so if i push the button it turns the light on, then if i went into the app on my phone it would know its turned on and id be able to switch it off.
I hope this is okay to post in here and hopefully someone may be able to steer me in the correct direction.
im still learning to code arduino so far i have managed to get basic things happening based purely on i/o pins
what im hoping for is if anyone can help me get over this next hurdle (iv read so much im confusing myself)
what i have so far:
*i have an arduino mega with ethernet sheild
*i have a 16 relay board
*im using a windows 7 pc and have installed openhab and mosquitto onto it
*openhab connects to ios openhab app
where i am lost
*i cannot work out what code or how to get the arduino to communicate with open hab and let me use each i/o i set as a different switch etc in openhab
is there any chance anyone has a basic sketch or something with notes that for example would allow the arduino to communicate with open hab and make a switch for led pin 13 to turn on, from that i think i would be able to understand what parts identify the arduino to openhab and what parts identify a switch and output in arduino.
please note i do plan on using esp8266's down the track but for now i wish to start with the ethernet
Thanks to any help im given
also if its okay i will compile everything i learn here and edit this first post to show the very basic noob getting started instructions to help others in the same spot i am now.
attached is a crude drawing of my basic idea i wish to start with also i am unsure if my switch idea will work or not at this stage functionally it works, however for eg if i attached a light to the relay i want to be able to have openhab understand which state the light is in, so if i push the button it turns the light on, then if i went into the app on my phone it would know its turned on and id be able to switch it off.