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.
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.
Thanks!
@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
I'm getting following error while compiling, any solution?
@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?
@FotoFieber I'm using THIS MQTT Gateway. Is there a better MQTT gateway solution available? Sorry i'm new to all this.
@gadu How did you implement V_Var1 ? and assign it to child ID 1 ?
Like this? if so, what did you use for gw.present(CHILD_ID, S_XXX) ?
#define CHILD_ID 1
myMessage msg(CHILD_ID, V_VAR1);
Thanks alot @gadu . I will give this a try and get back to you!
@gadu Can you post your working battery level send sketch for openhab? I would really appreciate it. I'm facing the same issue. Thanks!
Hello
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.
@hek Thats right, I only get one way communication. Domoticz doesn't send cmd via Ethernet for some reason.