Much simpler than the one I made last year.
very advanced flashing utilities you got there
Iām always going the low-tech/low-effort way and just ask for one or two helping hands
For the sinilink device I actually just used dupont wires and holding them while flashing (3-4 hands were included in that action).
Because āfreeingā esp based device hardly takes 60 seconds (usually much less) I virtually never solder wires or pins but just do it always āfreelyā. Even shorting wires or loosing grip while flashing never killed any of my devices. Worst case is to initiate the flashing process once again - bricking espās is simply not possible afaik.
@lmatter I was hoping the same thing. Did you ever find and interface to use to type in wi-fi creds? I canāt get mine to fully connect
I did - check out my comment a bit after that one. I used my Windows laptop to create a āhotspotā that only had 2.4GHz so I was able to get them registered with eWeLink. SONOFF Micro - 5V Wireless USB Smart Adaptor - #12 by lmatter
I wanted to keep them on the same lan so HA could use local API so didnāt want to go this route. Based on another thread I tried a tablet I had and my micros connected right away. Two different android phones didnāt work, but an android tablet worked perfect. Such a waste of time trying to get these things to connect!!!
Any chance you could share your yaml for these?
I think I got this from somewhere else, so I canāt take credit for this
Edit:
Looks like it came from here, but maybe has gotten updated since I first used it
substitutions:
devicename: weatherwifiswitch
upper_devicename: "Weather Wifi USB Relay"
esphome:
name: $devicename
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Weatherwifiswitch"
password: "xxxxxxx"
ap_timeout: 3min
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
status_led:
pin:
number: GPIO16 # Blue LED
switch:
# Relay
- platform: gpio
id: relay
pin: GPIO5
# Green LED
- platform: gpio
pin: GPIO14
id: green_led
inverted: true # start on
# Switch template to link relay and green LED states
# LED is on when relay is off
- platform: template
id: "${devicename}_relay"
name: $upper_devicename
lambda: |-
if (id(relay).state) {
return true;
} else {
return false;
}
turn_on_action:
- switch.turn_on:
id: green_led
- switch.turn_on:
id: relay
turn_off_action:
- switch.turn_off:
id: green_led
- switch.turn_off:
id: relay
# Button
binary_sensor:
- platform: gpio
id: button
pin:
number: GPIO04
mode: INPUT_PULLUP
inverted: True
on_press:
- switch.toggle: "${devicename}_relay"
Many thanks!
I wrote a short SINILINK guide a while ago.
Was anyone able to get this to pass through data / does the sinilnk pass through or control the data lines?
To my knowledge the sinilink does pass data. Check the video on those devices by the guy with the Swiss accent.
I am anticipating a problem with access to Teslaās API in the not too distant future which will knacker an automation I currently have for opening my electronic gate. I came across this device and then this thread and Iām wondering whether perhaps this might provide an alternative for triggering my automation.
At the heart of my automation is a regular 1s ping from HA to the car. If it replies, that means the ignition has been switched on or the car has arrived home, and I open the gate. With a Tesla I canāt simply rely on the ping (the car can āwake upā almost randomly and the crude approach would open the gate when I donāt want it open). After a ping, Iāve added a check through the Tesla API for the carās gear - if not in N (so R or D), then someone must be in the car and now I open the gate. However, I anticipate access to the Tesla API will be restricted or cost money in the not too distant future so Iām looking for an alternative.
I wonder if I could use this device? Could I plug it into the carās USB port and simply ping it? BUT! Unfortunately, I canāt simply rely on pinging something plugged into the Teslaās USB ports as, once again, they too can come on randomly! As well as pinging it, can I have it normally switched off and press the switch on it when I get in the car to turn it on and so open the gate?
Hopefully this makes sense.
Sure, you could also throw a BLE beacon into your car and it will not be necessery anymore to ping it because it broadcasts itselfā¦
If your car has an OBD(II) port, have a look into that because it gives real insides. So a ESP32 that actually knows what your car state is (R, D, ā¦) and that works via local push with HA instead of pinging () is probably the go-to solution.
Thanks. The OBD port sounds interesting. But to reiterate, anything that simply plugs into a USB port alone isnāt suitable because of the random wake ups.
PS Tesla uses BLE and Iām using it but it doesnāt provide the gear state so at the moment itās not quite a solution.
Anything against plugging into the OBD (On-board diagnostics) port then? You should get much more out of it than the gear state
I am aware what the OBD is and I even have something and an app for it. I did say that approach is interesting, I need to look in to how I might use it. Thanks again.
Anyway wrong thread / off topic. Feel free to open a thread if you want to go further so we donāt pollute this thread anymore