Great Job! I’ve had one of these PIR sensors in the drawer for a couple of months now, having given up on it as a lost cause when it seemed that there was no way of making it work with Tasmota. Anyways, I’ve managed to implement the updated device template, and I guess from what I am seeing that it’s functioning correctly. Yay! Now i’m stuck. I’ve entered the Sensor information as per your post, and I am getting the following feedback when I check the Config file…
Configuration invalid
Invalid config for [sensor.mqtt]: [payload_on] is an invalid option for [sensor.mqtt]. Check: sensor.mqtt->payload_on. (See ?, line ?).
I can’t really tell where I went wrong (did I miss any precursor steps?, etc). I believe that I followed the details of both the template and the config.yaml info to the letter, and as this is my first implementation of this kind of device I’m sorta flying blind… so any and all advice would be appreciated.
Post your config making sure you tag it for formatting. Maybe it’s just a typo.
I’m having issues with the tamper sensor in these causing false triggers, it’s vibration based and the metal wall I have it on must vibrate in the strong winds we are having at the moment, it’s been going off all day.
Ah - I see the issue. It should be a binary sensor - sensor implies an analogue or other value, binary_sensor is for things like light switches, reed sensors and motion sensors. Anything that’s either on or off.
Let me know if you start getting false readings. The original article was a bit vague about the returned values so I might have to capture some logs off the device if mine continues to play up.
Just changed to “binary_sensor” and perfect! No issues with the config file - so it’s fixed!
Will have a look at it again in a sec and see how it implements into the UI.
Great Job, and again thanks for the super fast reply… I love this learning journey and all the folk that are along for the ride!
And as for sensor behavior, will do. I have it sitting on my desk at the moment, and this one is likely to be mounted on the wall near the desk, so it’ll have minimal external influence on the sensing operation. But, will test it, and see what happens!
Has anyone tried to flash ESPHOME to a Genio RGBW globe they bought from Woolies?
I tried to flash ESPHOME to the Woolies version and had nothing but issues with even turning it on and off. Could not get any colour at all other than half a second flicker of yellowish green.
I bought a kmart version today, flashed fine first go with the same yaml and binary as I used for the woolies version. All up and running first go in home assistant.
The version you buy in boxes at woolies seem to be different to the kmart versions in packets. They have different part numbers and both weigh slightly different amounts… enough for me to notice picking them both up anyway… I decided to weigh them…
Kmart - 1002339 - 69gm
Woolies - 1002608 - 64gm
So either the Woolies one I bought was faulty to start with (I never tried it with the genio app before flashing it) or they may be internally different. I haven’t opened it up to confirm though.
@aogorman - if you already have a 433 MHz bridge they are good value at $9 US + delivery. Last for ages on battery, less false positives than the Genio, but that may be because of how I have the Genio configured.
Don’t buy the Sonoff reed switches, they only have open notification not open/closed. I use the GS-WDS07 because you can pull them apart and do cool things:
Only issue with 433 MHz is that building penetration compared to wifi is not as good, mainly due to lower transmit power. This however translates to longer battery life.
Regarding the Mirabella Window and Door sensor. Did you use Tuya-convert OTA? if so could you explain your method? My attempts to flash it have been unsuccessful. While tailing the smarthack-wifi.log file I can see the sensor connect to the WIFI AP however once it is in ez pairing mode it disconnects.
There were some comments about not converting while on battery power for the PIR sensor - causing the same behaviour. Does the door sensor have an external power option?
Not that I can see. I made sure to activate the reed switch while trying as I have seen people mention that keeps the sensor from sleeping.
I think the crux of the issue is it disconnects from the AP while in EZ pair mode, as soon as the red light stops flashing, I can see it connect to the AP again.
I manage to get the door sensor flashed OTA today and don’t know how it happened but it took a lot of resetting and activating the reed switch now I just need a template for it.
I bricked mine now trying to work out how to make a template for it and not sure if it is soft or hard brick but it doesn’t seem to work with serial reflash but will keep trying.