Post AhasLysSxChkF7D77A by vik@mastodon.nzoss.nz
 (DIR) More posts by vik@mastodon.nzoss.nz
 (DIR) Post #AhYsRVXUYc4sfn7E6S by vik@mastodon.nzoss.nz
       2024-05-04T22:33:19Z
       
       0 likes, 0 repeats
       
       Configured an #ESPhome #HomeAssistant device up with two buttons on it, and an 18650 battery. Battery doesn't last overnight, which is a bit disappointing. I need something I can stick on a wall that runs forever off a CR2032 (used to have those with the ancient X10 system).
       
 (DIR) Post #AhYt8rH7cS96XQ86m8 by stooovie@mas.to
       2024-05-04T22:41:02Z
       
       0 likes, 0 repeats
       
       @vik zigbee buttons last easily a year on a 2032
       
 (DIR) Post #AhYtV5PFlDQwjgX3lQ by zrail@hachyderm.io
       2024-05-04T22:45:09Z
       
       0 likes, 0 repeats
       
       @vik I wonder if the Deep Sleep component would help with that. https://esphome.io/components/deep_sleep.html
       
 (DIR) Post #AhYudhFN3OrMMpZzBA by tj@howse.social
       2024-05-04T22:53:50Z
       
       0 likes, 0 repeats
       
       @zrail @vik yep, deep sleep is what you need. I used some esp8266s and an 18650 to monitor a bee hive. Sleeping is essential.
       
 (DIR) Post #AhYudhvuVEt4UlTxU8 by vik@mastodon.nzoss.nz
       2024-05-04T22:57:54Z
       
       0 likes, 0 repeats
       
       @tj @zrail Problem here is that the thing has to reconnect to the wifi before my light turns on. Meanwhiles here's me standing in the dark...
       
 (DIR) Post #AhYvuMryAaYy2q9AwK by tj@howse.social
       2024-05-04T23:12:06Z
       
       0 likes, 0 repeats
       
       @vik @zrail using a static IP assignment can speed up the boot process a lot. Still might be too long.A ZigBee button might be more suitable in your application. IKEA tradfri stuff is all standards-compliant and works great with zigbee2mqtt into home assistant.
       
 (DIR) Post #AhYvuy79h5h9YeXKFM by zrail@hachyderm.io
       2024-05-04T23:11:57Z
       
       0 likes, 0 repeats
       
       @vik @tj yeah I think maybe wifi isn't the right tool. FWIW this is why the Amazon button didn't take off, it was astonishingly slow. Maybe use the esphome as a Bluetooth proxy with a BLE button? https://devices.esphome.io/devices/ble_itag
       
 (DIR) Post #AhYwAoJ9vCmfmFhmIC by ostueker@mast.hpc.social
       2024-05-04T23:15:05Z
       
       0 likes, 0 repeats
       
       @vik If you send your ESP to deep-sleep, it should barely use any energy. A button press could be used to trigger an interrupt to wake it up. With the right circuitry to supply it with power (low dropout voltage regulator with low quiescent current), your 18650 should last a long time. The latency won’t be all that good, because the ESP would likely reconnect to the WiFi each time.
       
 (DIR) Post #AhZ1H7EywWxK0JZqyG by vik@mastodon.nzoss.nz
       2024-05-05T00:12:17Z
       
       0 likes, 0 repeats
       
       @zrail @tj Yeah, might be doing silly things with 433MHz wireless and cheap ardweenies or pis.
       
 (DIR) Post #AhZANoWvo1ElaaF3C4 by amoose136@3dp.chat
       2024-05-05T01:34:57Z
       
       0 likes, 0 repeats
       
       @stooovie @vik Yep I picked up an Aqara zigbee button for like $18 and stuck it on the wall. Paired with ZHA integration directly to a Home Assistant Yellow. Job done.
       
 (DIR) Post #AhZANpLGmrVG6hnFei by vik@mastodon.nzoss.nz
       2024-05-05T01:54:20Z
       
       0 likes, 0 repeats
       
       @amoose136 @stooovie Ah, don't have a Yellow, just my own Pi 5. Haven't got a Zigbee dongle and as they're $75 in this neck of the woods it'll have to wait a bit 'cos I have other toys to sort out first :)
       
 (DIR) Post #AhZDXrnsn25KV2eieW by stooovie@mas.to
       2024-05-05T02:29:44Z
       
       0 likes, 0 repeats
       
       @vik @amoose136 holy shit, that's way too much :) can't Aliexpress sort it out? Should be like $12
       
 (DIR) Post #AhZE4EKAarqFc5BpTs by amoose136@3dp.chat
       2024-05-05T02:35:30Z
       
       0 likes, 0 repeats
       
       @vik @stooovie You could probably figure something similar out (battery usage wise) with 2 fm packet radios or something but then that’s ✩ ₊˚a project ‧₊˚ and not a simple solution.
       
 (DIR) Post #AhZKwibooNKgtyoI3k by vik@mastodon.nzoss.nz
       2024-05-05T03:52:41Z
       
       0 likes, 0 repeats
       
       @amoose136 @stooovie I think I'll try the 433MHz things first, and see if "red light lightens."
       
 (DIR) Post #AhZMDnUE1vXGuFxxQm by Volkershochschule@social.tchncs.de
       2024-05-05T04:06:39Z
       
       0 likes, 0 repeats
       
       @vik there's battery free components from a system called EnOcean. Their buttons gather the needed energy from pressing the button, probably by using a Piezo. I haven't implemented it myself but I was able to try it at a friend's place. It works fantastic!
       
 (DIR) Post #AhZMeLEBCgj1597NwW by vik@mastodon.nzoss.nz
       2024-05-05T04:11:11Z
       
       0 likes, 0 repeats
       
       @Volkershochschule Interesting! Light and temperature power conversion according to Wikipedia. Several companies using the standard: https://en.wikipedia.org/wiki/EnOcean
       
 (DIR) Post #Ahaq7kubseH8y2Iods by ostueker@mast.hpc.social
       2024-05-05T21:10:16Z
       
       0 likes, 0 repeats
       
       @vik In just came across the toot below. Maybe the solution to your problem is having two ESP controllers: one battery operated that’s usually in deep sleep and wakes up whenever the button is pressed. Then it sends a message via ESPnow to the other one that is plugged in and relays the message to Home Assistant. Definitely requires more work than just slapping ESPhome on one and be done with it. https://shark.distantserver.org/notes/9sxgq7zp6neu0014
       
 (DIR) Post #Ahaq7lm8fd5re3LZ4q by vik@mastodon.nzoss.nz
       2024-05-05T21:16:28Z
       
       0 likes, 0 repeats
       
       @ostueker I have a mad plan that might involve IRdA switches and an ESP32 receiver that is permanently powered up from mains nearby.
       
 (DIR) Post #AharNEbZrfVJMALRwG by ostueker@mast.hpc.social
       2024-05-05T21:30:34Z
       
       0 likes, 0 repeats
       
       @vik Or, as suggested by others, go ZigBee. Two years ago I bought a Sonoff ZigBee 3.0 dongle for $22 Canadian directly from China via eBay. You might get similar prices on AliExpress.
       
 (DIR) Post #AhasLysSxChkF7D77A by vik@mastodon.nzoss.nz
       2024-05-05T21:41:24Z
       
       0 likes, 0 repeats
       
       @ostueker Yeah, so that eventually. But I have a 433MHz transceiver pair on my bench right now, and they wire up easily.