Jump to content

BigByte76

Member
  • Posts

    4
  • Joined

  • Last visited

Reputation Activity

  1. Agree
    BigByte76 reacted to dcs in The "Chess problem" On the WAN show 2023-09-08   
  2. Like
    BigByte76 reacted to SansVarnic in Here's the plan.   
    Matters under legal precedent cannot be commented on in public during an official investigation as it can influence said investigation. And have legal ramifications. Any conjecture outside that is just conjecture. Opinions are still opinions, but vilifying based on conjecture and opinion is a fools errand. FYI.
  3. Agree
    BigByte76 reacted to iKingRPG in HomeAssistant Google Assistant & MyQ Integration Tutorial   
    Dear linus/jakkah/LMG,
     
    I'm glad you finally tried Home Assistant. In the end of the video I noticed linus mentioned that he wanted to keep using the original relay to avoid the 5 second closing delay. It is possible to control the Sonoff relay in Home Assistant, you could use a custom integration that lets you do so, or a much better solution that would also avoid their cloud entirely, is to flash the Sonoff with custom firmware that allows it to be controlled 100% locally, and gives you pure control over the device.
     
    Another thing is if you won't want your relays on the wall next to your buttons, you could also put them on the ceiling. Open the cover off your garage door opener, and if you see a button that opens/closes the garage door opener, that means you can run leads from there to the relay, which should allow you to control it again from the relay with no problems.
     
    Another reason why you might want to do this, is you know how you said Chamberlain is a bad company? Well, even though now you are controlling the garage door opener locally, Chamberlain will still screw you over. You see, there is no official MyQ API, this means that the way the Home Assistant integration for MyQ has to work, is by emulating the mobile app. So when you close your garage from home assistant, they think you are closing it from the app. This is bad, because this means that every time MyQ makes a change to their app or API, the integration breaks, no longer allowing you to control the opener. Normally the Home Assistant developers patch it after 1-2 days, but it's still really annoying. It breaks every few weeks randomly.
     
    Back to flashing the Sonoff. Personally the firmware I use is called ESPHome, which is open source firmware designed to run on any device using an ESP8266 microcontroller (like Sonoff wifi devices), and they connect directly to the Home Assistant local API. There is also an alternative firmware called Tasmota, but I'll explain how to use ESPHome, because it is simpler.
     
    First, you will need to buy some things if you don't already have them.
     
    USB to TTL/Serial converter: (this is the one I use)
    https://amazon.com/dp/B075N82CDL/
     
    Jumper wires: https://amazon.com/dp/B07GD2BWPY/
     
    Next, you will need to install the ESPHome Home Assistant Add-on from the Add-on Store.
     
    Open the ESPHome interface and add a node, fill out the wifi info, device name, etc. There are video tutorials that explain this.
     
    After you do that, click "edit". This is the configuration code for the firmware that you are about to flash to your Sonoff. You're going to need to add some code. The code that's there will work, but the device will just connect to your wifi network and not do anything. You need to tell the firmware that you want to control relays.
     
    From the video, the relays you use look like a Sonoff 4CH Pro. I have that too, and this is the code I use. Just copy and paste this after the line with your OTA password, the change the names of your relays to whatever you want, something like "Garage door 1".
     
    # paste into ESPhome node config after "OTA" binary_sensor: - platform: gpio on_press: then: - switch.toggle: button_1 pin: number: GPIO0 mode: INPUT_PULLUP inverted: True name: "Sonoff 4CH Button 1" - platform: gpio on_press: then: - switch.toggle: button_2 pin: number: GPIO9 mode: INPUT_PULLUP inverted: True name: "Sonoff 4CH Button 2" - platform: gpio on_press: then: - switch.toggle: button_3 pin: number: GPIO10 mode: INPUT_PULLUP inverted: True name: "Sonoff 4CH Button 3" - platform: gpio on_press: then: - switch.toggle: button_4 pin: number: GPIO14 mode: INPUT_PULLUP inverted: True name: "Sonoff 4CH Button 4" - platform: status name: "Sonoff 4CH Status" # Change the names of your switch: - platform: gpio id: button_1 name: "Sonoff 4CH Relay 1" pin: GPIO12 - platform: gpio id: button_2 name: "Sonoff 4CH Relay 2" pin: GPIO5 - platform: gpio id: button_3 name: "Sonoff 4CH Relay 3" pin: GPIO4 - platform: gpio id: button_4 name: "Sonoff 4CH Relay 4" pin: GPIO15 output: - platform: esp8266_pwm id: blue_led pin: GPIO13 inverted: True light: - platform: monochromatic id: status_led name: "Sonoff 4CH Blue LED" output: blue_led After you finish with the code, click "validate". If all goes well, click "compile". It should download a .bin file when complete (that's the firmware).
     
    We are almost done. Next, you need to install the ESPHome flasher tool on to your computer. Once that's done, open up your Sonoff. You should see pins labeled 3v3, GND, RX, and TX. You need to get your jumper wires and usb to TTL converter. Make sure the usb converter is set to 3.3v, because 5v will fry your Sonoff. You need to solder a wire from GPIO 0 to GND (ground), this will short out GPIO 0 and out the device in flashing mode. Then, connect the jumper wires from your USB to TTL converter to the correct pins on the Sonoff board. Plug the USB adapter into your computer, and open the ESPHome flasher tool. Choose the .bin file you downloaded and click flash. It will tell you when the Sonoff is done flashing. Once completed, disconnect the wires from the board and remove the wire you soldered from GPIO 0 to ground so it doesn't start in flashing mode next time. Then put it all back together.
     
    Now, power up the Sonoff. After a few seconds, it should connect to WiFi. 
     
    The last thing to do is to go in your home Assistant configuration page, and it should have discovered your Sonoff automatically. Type your password and you are good to go! Your relay is in home assistant. 
     
    And you can still connect contact sensors. 
     
    Ugh I'm out of time I'll add to this later
  4. Agree
    BigByte76 reacted to bradcool22 in We're Building a Gaming LAN Center!!   
    just found this on steam they now have Steam PC Café Program
    Commercial Site License. This allows options like a cache server and other options like analistical data. link https://support.steampowered.com/kb_article.php?ref=3303-QWRC-3436.
     
    Also if you were to do a large pc cooling loop use one of these this allows each pc to have a sub loop feeding all of the heat to a main loop. This main loop could vent the heat some were else like the warehouse for exsample. https://www.walmart.com/ip/B3-12A-40-Plate-Stainless-Steel-Heat-Exchanger-with-1-2-Male-NPT-Ports-Copper-Brazed/594353169?wmlspartner=wlpa&selectedSellerId=11660&adid=22222222227111922296&wl0=&wl1=g&wl2=c&wl3=233638596185&wl4=pla-386077031756&wl5=9030115&wl6=&wl7=&wl8=&wl9=pla&wl10=117089194&wl11=online&wl12=594353169&wl13=&veh=sem 
  5. Agree
    BigByte76 reacted to dennisliao in The Office - LTT edition for CSF   
    I am definitely not Jim
  6. Agree
    BigByte76 reacted to mr moose in Fitness App Reveal Secret Military Bases   
    It looks like someone has run the canning stock route.  Must be a machine to do that.
  7. Funny
    BigByte76 reacted to ItsMitch in Twitter erupts after man steals menstrual pads from Amazon's new cashier-less store   
    you're quoting the daily mail, sort yourself out
×