I decided to put my RPi and MQTT gateway in one box so made this. First time doing this, so it isnt that perfect. I will soon be adding LEDs to it too.
This is my very first fully functional project! Yay!! Most of the credit goes to mysensors and all the amazing people here. I thank you all.
So, I wanted to control my home appliances/lights with Voice and/or OpenHab rules. I made this relay switch outlet. May not look pretty at all but it surely works with OpenHab and "Ok Google - Turn On Switch" command from my Android phone and Android watch . It also hides behinds the couch, hehe. For right now, I just turns on/off and with commands. I will be setting it up to fully automate with iftt conditions in next few days.
Note: I have used 2 relay module because thats the one I had for now. Also I'm planning to make both female power outlets to operate separately.
Project cost: $7.5 USD including Nano V3.0, Relay, NRF transmitter, power outlet socket, and casing. (Power cable, button, 5.0V charger, AutoVoice, Auto-wear and Tasker not included, I already had them.)
I searched for cheapest required item on eBay and purchased hem.
Nano V3.0 = $2.56
NRF transmitter = $0.97
Relay module (You may use 1 relay module) = $1.3
Female powerOutlet socket + blue casing + faceplate = aprx. $3 from Home Depot.
PowerCable = n/a (used old PC power supply cable.)
Button = n/a (Already had it.)
5.0V charger = n/a (Already had it, just use old phone charger)
Tasker = n/a (Already had it.)
AutoVoice = n/a (Already had it.)
AutoWear = n/a (Already had it.)
My OpenHab & Tasker
Hope you liked my project. Please feel free to comment, post any suggests, and questions.
@raditv @AWI Thats what I thought about On/Off action. I'm trying to on/off mysensors relay actuator. My relay actuator has a physical button. Domoticz detects my relay actuator and also updates the state if I toggle the physical button. But it does not turn on / off the relay actuator from domoticz UI. Any idea why?
Here is my Domoticz log
@FotoFieber I followed the sketch that you provided in your link above called "MQTT Client Gateway". however, while compiling that sketch I'm getting following error?
Any solution or suggestion for that?
I'm trying to receive battery percentage over MQTT on openHab. So far i'm dont have any luck. I'm confused, because there is no such V_Battery or something like that.
I would really appreciate any help as i'm trying to finish my project before my final exam starts.
Here is my serial output. I was testing the battery sketch on Nano powerd via USB 5.0v. I know i'm getting incorrect reading, but thats okay for now, I just need to receive battery percentage via MQTT first.