New hackable ESP gadgets in local budget store "action" !!!

Moderators: grovkillen, TD-er, Stuntteam

Message
Author
FanOfHue
Normal user
Posts: 96
Joined: 06 Oct 2018, 10:08

Re: New hackable ESP gadgets in local budget store "action" !!!

#101 Post by FanOfHue » 03 Feb 2020, 20:01

tim wrote:
02 Feb 2020, 15:05
@fanofhue: Do you have something like a roadmap for ESPCoreRules?
I recently needed JSON support within the event engine and also wanted to get the usage of uservars and timers more flexible and be able to resize limits at runtime. This looks ready by now and will be published as build nr 7.

KISS and YAGNI keep me from building features that i don't need, so no roadmap.

chib
Normal user
Posts: 3
Joined: 27 Jan 2020, 20:05

Re: New hackable ESP gadgets in local budget store "action" !!!

#102 Post by chib » 06 Feb 2020, 19:43

today my first pir battery went flat, after only 2,5 months running time.
it's at a busy spot so it's also firing a lot, but still, 2,5 months is too short i think.

@fanofhue what's the battery life you're getting out of your pir's ?

ddrmax
Normal user
Posts: 5
Joined: 20 Feb 2020, 14:25

Re: New hackable ESP gadgets in local budget store "action" !!!

#103 Post by ddrmax » 20 Feb 2020, 15:04

FanOfHue wrote:
03 Sep 2019, 08:23
Chip/Module used:

Switch Plug ESP8285-TYWE2S
Door Sensor ESP8266-TYWE3S
PIR Sensor ESP8266-TYWE3S
Hand Remote RTL8710BN-WR3
Sirene RTL8710BN-WR3
Led Strip ESP8266-TYWE3L

At least the ESP editions can be flashed with ESP Easy or similar stuff. I'm not aware of any custom firmware for the RTL modules.
The ceiling light uses the RTL8710BN-WR3 but can be easily converted with a few tools
I'm not the first one to do it I've done it today
In the end in tasmota ( I will play with ESPEasy another day)
The swap can be easily done with some tools ( hot hair station and soldering iron ) as the modulecan be removed from the lamp with no soldering and replaced with a esp01 and wires but I think it dangerous
For me I removed the WR3 from its little board with only a soldering iron and put a freshly programmed esp-12S (no pads in the bottom over the esp-12E/F that could short on the capacitors on the board)
here a link on github of someone that opened ithttps://github.com/ct-Open-Source/tuya- ... -536748421
Here the result of my mod
Image

GPIO 13 serves as Brightness and on / off switch and GPIO 5 serves as White color temperature (pwm at 0 is full warm light and pwm 255 is full cold white and in the middle, either are on
Last edited by ddrmax on 20 Feb 2020, 17:27, edited 1 time in total.

TD-er
Core team member
Posts: 2640
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: New hackable ESP gadgets in local budget store "action" !!!

#104 Post by TD-er » 20 Feb 2020, 16:28

Sadly the image is not visible. It shows a "stop sign"

ddrmax
Normal user
Posts: 5
Joined: 20 Feb 2020, 14:25

Re: New hackable ESP gadgets in local budget store "action" !!!

#105 Post by ddrmax » 20 Feb 2020, 17:27

TD-er wrote:
20 Feb 2020, 16:28
Sadly the image is not visible. It shows a "stop sign"
link corrected (posted on imgur)

ddrmax
Normal user
Posts: 5
Joined: 20 Feb 2020, 14:25

Re: New hackable ESP gadgets in local budget store "action" !!!

#106 Post by ddrmax » 24 Feb 2020, 08:37

I also bought the siren and the remote of the same brand that I already know their using the Rtl counterpart of the esp 12 thanks to your forum
When I finish to have my workshop neat and tidy I will make a video (in a livestream setup or if I can't do a livestream (internet upload is pretty poor and I have actually some heavy lag due that my workshop is only connected via a wifi repeater)) in a more standardized fashion, where I do some measurements, surgery and heart replacement with ESPEasy flashed ESP-12 on the siren, remote control and ceiling lights
Other lights having RTL8710BN daughter boards are not in my interest since opening them results in breaking them)
For best results I will do some basic reverse engineering about all the boards like ommiting most of the passives and the power supply section to better know their internals
For example the remote has the tuya mcu (little stm chip) that I will try to dump its firmware via my ST-Link V2

FanOfHue
Normal user
Posts: 96
Joined: 06 Oct 2018, 10:08

Re: New hackable ESP gadgets in local budget store "action" !!!

#107 Post by FanOfHue » 30 Mar 2020, 11:49

rola25 wrote:
27 Jan 2020, 11:23
It was indeed the serial console speed - I don't know why, but I had to set it to 74880 to get it work :o

Thanks
@rola: I've answered your PM quite late, but better late than never.
To others who are looking into building a modded sensor:
Repo for ATTiny85 is here: https://github.com/FanOfHue/Other/tree/ ... nyExtender

countcobolt
Normal user
Posts: 32
Joined: 12 Jun 2017, 11:12

Re: New hackable ESP gadgets in local budget store "action" !!!

#108 Post by countcobolt » 02 Apr 2020, 14:27

Hi all

after a few months I decided to give this project another go. Now, I was struggling to get some information so I thought I'd leave my experiences here
1. All flashing was done by soldering the cables and adding the Tasmota firmware using Esptool
2. The idea of the rules is actually very simple, but ... you need to be careful. When reading the Tuya specs and using either TuyaSend or SerialSend, do not connect you usb to serial with RX/TX. This might be common to most people, but yours truly lots a few hours trying to see the output from Tuya (basically read what tuyareceived sends back. If the serial is connected, this does nothing
3. The rules on page 2 work for the LSC version, but I also had another version from Aliexpress which used other serial commands. I simply moved the magnet closer and further to capture what Tuya sends back.
4. The rules on page 2 basically send an MQTT message. I asked in a previous post what the events were , but I focussed on making rules based on TuyaReceived.
5. Check you wifi connection. For some stupid reason, I lost time thinking the Tuya didn't work, but actually the wifi connect was having problem.
6. I have them working use both TuyaMCU with GPIO 1/3 being either tuyaRX/TuyaTX and SerialRX/SerialTX.

Will dive deeper in other modules as I get further in the Tuya story

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 13 guests