on movement the device wakes up with power off and blast the “55AA000000010101” message, then it goes back to sleep after 2 minutes.
home assistant never get a power off message. should i give it a timeout or something? or should it be done on tasmota side?
blackadder says:
“With a static IP set and connected to Homeassistant, it takes 6 seconds to register motion. Recommend setting Homeassistant to activate on PIR connect. Waiting for the actual message takes longer.”
if anyone is interested my half-assed solution was a poweronstate 1, so the state turns to ON as soon as it wakes up.
then pulsetime 160 to reset it to OFF after 60 seconds.
the downside to this is the sensor will not transmit an ON state until it will go to sleep again, if there is still movement keeping it up the state will still be OFF.
but if you just need to get 1 notification then it’s ok.
So
I connecy RX --> RX
TX–>TX
VCC --> VCC
GND+IO2 --> GND
And get the premission denied error
what i missing ?
Using 'COM5' as serial port.
Connecting........_____....._____....._____....._____....._____....._____....._____
Unexpected error: ESP Chip Auto-Detection failed: Failed to connect to Espressif device: Invalid head of packet (0x83)
Man! I flashed one of these the other week. What a pain!
Is there a way around the issue where the sensor wants to turn off after being on for one minute? One minute isn’t a lot of time to make changes in Tasmota.
Something else to note, if you have this particular sensor, the chip is flipped on this board. So if you’re looking at a schematic, you need to flip the pins. And I almost forgot… I had to pull the reset pin on the SGM8139 low for the flash to take.
How did you get this thing to stay on long enough to configure it? Every time I try to feed it the template, it times out and turns off before it accepts it and reboots.
Possible solution. When you have received the power on, then use an automation to sent the retain option to a fake topic (i.e. tuyapirOff) to put it in HomeAss in off state ff after x-time… In your config.yaml you can use that fake topic for for topicOff in homeassistant.
I have already successfully flash this motion detector with tasmota via ota tuya-convert and so far also configured with the template.
everything works so far and I can also switch on a lamp with the detector.
the problem is until the detector reacts and the movement to the switching process it takes around 6 seconds
is it possible to speed up this time to for example 1s (keep the ESP8266 awake) and also change sleep time significantly from 2 minutes to 1 or so? perhaps with a console command in Tasmota?!
@Nordic,would you mind posting your final Tasmota config and your Home Assistant config for switch.tuyapir? I’m having trouble bridging that gap. It keeps showing up as a binary_sensor, rather than a switch.
Thank you for the awesome info on flashing this device. I was able to get tasmota-battery.bin on them with very little trouble thanks to you!
i have tried it several times, you have to push the device into the pairing mode and after that press the reset button again and again to keep the ESP8622 awake… for me this way works…