fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#sonoff

1 post1 participant0 posts today

I'm using my international radio on my Home Assistant Yellow for Thread so I added a Sonoff ZigBee dongle. I really hate large USB dongles hanging out the back of things, so I took the opportunity to finally learn FreeCAD and design a new top shell that could house that dongle internally. A few painful hours of trial and error, one U-Shaped USB extension, and one short antenna extension later and it's looking much cleaner! It is a shame I don't have a resin printer or know how to use one, because it would have been nice to keep the translucent plastic aesthetic. (an atomic purple shell would be so rad!) But I'm really happy with it overall.
#HomeAssistant #Zigbee #Thread #FreeCAD #3DPrinting #Sonoff #AtomicPurple

Großer OG Raum, und Keller brauchen dann noch smarte Thermostaten.
Fehlt noch die CAN-Schaltung für die Gasheizung, und dann kann ich die automatisch nach Bedarf der Heizkörper steuern.
Easy. Bisweilen habe ich die Heizung immer an der Bedieneinheit deaktiviert, anhand der vorher vier Thermostaten.

My 2 yr old is pretty crafty.

He’s figured out how to turn our smart plugs ( S40 Lite) on and off from the button on the side. Endlessly entertaining for him, not so much for his old mom and pop.

to the rescue!

I printed out a simple vase mode sleeve that friction fits over the smart plug physically blocking the button. Adults can easily pull back the sleeve, but he lacks dexterity to move it and perception to even understand there is sleeve over it.

#Wochenende done.

✅ Leasing #eBike
✅ Geburtstag #Schwiegermutter ausgerichtet und aufgewärmten alten Geschichten gelauscht
✅ Strauchschnitt 6x Haselnuss aus #Garten entsorgt
✅ erste #Automatisierung in #HomeAssistant zur Steuerung der Monitore mit #Anwesenheitssensor #SONOFF #SNZB-06P und ein paar Shelleys implementiert
✅ drittes unabhängiges #Backup der digitalen Familienschätze
✅ #Gassigehen, #PapaSein, Admin-Aufgaben für die #Genossenschaft...

Und jetzt freue ich mich auf ein paar feine Talks der #CLT.

#SmartHome

I now replicated with #HomeAssistant what #Sonoff does with their ZBBridge Pro - without using the ZBBridge on the TRVs.

Z2M 2.1.3, and Sonoff TRV firmware 1.2.1 (firmware 1.3 isn't available yet for Z2M stable).

gist.github.com/AliveDevil/0e9

On external sensor temperature change, pass that without delay to the TRV.
If there hasn't been any change in the last 90 minutes (give or take, runs on 0, 15, 30, 45) resend last recorded value.

GistHomeAssistant Automation Blueprint for synchronizing a Temperature Sensor with the Temperature External Input-Value.HomeAssistant Automation Blueprint for synchronizing a Temperature Sensor with the Temperature External Input-Value. - sync_trv.yaml

And one more #sonoff #zigbee sensor loosing connection to my #homeassistant. It worked for more than a year, now it will only send a couple updates after reset and then go silent.

I never got the window sensors to work neither, but temperature sensors mostly work fine until they don't. Not sure if I want to keep resetting this one until it works again or just replace it.

Follow-up to this note.

Dragan had asked me to do repeated power-cycle tests with different kernel versions using the patched dtb for #RockPro64 to make sure the kernel #oops wouldn't still be an issue.

I learned that cutting the power of the device could kill the #LPDDR4 #RAM. This is documented in the specification referenced on the RockPro64 wiki page for Micron LPDDR4 Mobile LPDDR4 Datasheet as stated on page 37 in Uncontrolled Power-Off:

An uncontrolled power-off sequence can occur a maximum of 400 times over the life of the device.

I never had heard about this before! Cutting power without shutdown can kill my RAM?

show dmesg and shutdown

To get all the debugging information I needed I wanted the system after booting to print dmesg to the serial console, wait a short time and then actually shutdown.


root:~# cat /root/bin/dmesg_and_shutdown.sh
#!/bin/bash
# a small script that outputs dmesg to serial
# console, waits 20 seconds and shuts down
dmesg > /dev/ttyS2
# show a message how to stop this script and wait 20 seconds
echo "Will shutdown in 20 seconds - to stop me call 'pkill dmesg_and_shut'" > /dev/ttyS2
sleep 20
echo "shutdown -h" > /dev/ttyS2
shutdown -h now
# a cronjob that runs after each boot
root:~# crontab -l
@reboot /root/bin/dmesg_and_shutdown.sh

powercycle the board

I took the time needed for a complete cycle of booting, showing dmesg, waiting and shutting down: well below 2 minutes.

To automate the power cycle I used an #esp8266 based power switch made by #Sonoff (Powr2) running ESP Easy (mega-20210503).

#ESPeasy offers a simple scripting language I used to powercycle after 120 seconds of being switched on:


On System#Boot do
 gpio,12,0
 gpio,13,1
endon

On button#button_state do
 if [blue_led#blue_led_state]=1
  gpio,13,0
  timerSet,1,2
 else
  gpio,13,1
  gpio,12,1
  timerSet,1,0
  timerSet,2,0
 endif
endon

On Rules#Timer=1 do
  gpio,12,0
  timerSet,2,1
endon

On Rules#Timer=2 do
 gpio,12,1
 timerSet,1,2
endon

Pressing the button on the Sonoff device toggles between:

  • blue led off: timers disabled, relay on permanently
  • blue led on: timers switch the relay off for 5 seconds, on for 120 seconds and then repeat

logging

minicom logged the serial output to a file.

Further down the #RabbitHole I went when looking at the resulting logfile…

Chris Vogel's microblogNoteFollow-up to this note Meanwhile Dragans...
Continued thread
I removed the #nest base station and installed the modified #sonoff switch in its place. Tried it and, as expected, turns on and off the heating! It works!
I'll buy an enclosure tomorrow, but now it's time to setup #homeassistant to grab the temperature data from the piece of the #nest thermostat still working and use it to control the Sonoff switch.
I did some researches today and I believe it is doable with the #generic_thermostat integration.
Continued thread
One of the connections between the AC input in the #sonoff switch and the output was a black wire. I simply desoldered it.
The other was a #trace on the #pcb. So I cut it with a knife. Deeply.
But it still was connected! There was an identical trace on the other side, difficult to reach. So I grabbed the #Dremel and cut a giant hole on that poor pcb 😬
That is rough. And ugly, and unsafe... but it works perfectly! 😎
Tested the switch with the tester: not only it still works, but the two "output" terminals are disconnected from the mains and now they behaves exactly as if there was a switch between them!
Continued thread
So, I think this furnace is meant to be controlled only via an insulated relay or switch. Not the #Sonoff smart switch I was trying to use.

I could make up something with an #esp8266, #tasmota firmware and a #relay module, the ones used with the #arduino. I've everything on hand, but then I should find a box, a power supply, wire all separating the high voltage side from the rest... it's a lot of effort for a speedy project as this...