Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Light Switch as MQTT Publisher
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Light Switch as MQTT Publisher

by Lastat77 on Fri Jun 05, 2020 1:39 pm

Essentially what I want to do is have a "light switch" which is actually just a touch screen. I would have a control/button layout as the image and based upon where/how it is touched the underlying device sends certain MQTT messages. So....

- WiFi
- Powered off (vampire) mains
- Small (fit in Decora sized wall outlet
- Touch screen
- Graphic controller (one "button" on/off and a slider (dimmer)
- Simply sends MQTTs based upon "button" slider activation

I was thinking an ESP32 with a TFT Capacitance screen.

Looking for thoughts on such. Gotchas. And any hardware recommendations.

Done a lot with PI, Python, and Node-Red but nothing with ESP and that ecosystem so I really don't know how to get started with ESP. Need an MQTT pub capability, a "dashboard" yto make the controller for the tft, need to plot regions on TFT (I assume).

so really, any pointers to learning etc. would be great.

Lastat77
 
Posts: 14
Joined: Sat Apr 18, 2020 3:10 pm

Re: Light Switch as MQTT Publisher

by dastels on Fri Jun 05, 2020 2:18 pm

Have you looked at the PyPortal Pynt? https://www.adafruit.com/product/4465

Dave

dastels
 
Posts: 3494
Joined: Tue Oct 20, 2015 3:22 pm

Re: Light Switch as MQTT Publisher

by Lastat77 on Fri Jun 05, 2020 3:03 pm

I had not. Now I have. Thank you.

These seem overly powerful for what I need... but... makes me see I could use a motion detector etc to add more functionality than I was thinking.

Thank you for the direction. Buying one now. :)

Lastat77
 
Posts: 14
Joined: Sat Apr 18, 2020 3:10 pm

Re: Light Switch as MQTT Publisher

by Lastat77 on Fri Jun 05, 2020 3:24 pm

Can the D3 and/or D4 drive a relay? I mean, can I just use them like GPIOs?

Lastat77
 
Posts: 14
Joined: Sat Apr 18, 2020 3:10 pm

Re: Light Switch as MQTT Publisher

by dastels on Fri Jun 05, 2020 3:30 pm

I doubt they can drive a replay directly, but it's just am I/O line so with the right driver it can.

Dave

dastels
 
Posts: 3494
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.