meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| home_automation:esp8266:hw:gosund_sp111 [2020/11/12 07:55] – created niziak | home_automation:esp8266:hw:gosund_sp111 [2025/10/15 06:46] (current) – niziak | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| How to reflash with custom firmware using OTA: [[https:// | How to reflash with custom firmware using OTA: [[https:// | ||
| + | OLD method: [[https:// | ||
| + | |||
| + | I was using '' | ||
| + | <code bash> | ||
| + | pushd files | ||
| + | wget tasmota-lite.bin v9.2.0 | ||
| + | popd | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code bash> | ||
| + | ====================================================== | ||
| + | Starting smart config pairing procedure | ||
| + | Waiting for the device to install the intermediate firmware | ||
| + | Put device in EZ config mode (blinking fast) | ||
| + | Sending SSID vtrust-flash | ||
| + | Sending wifiPassword | ||
| + | Sending token | ||
| + | Sending secret | ||
| + | ................ | ||
| + | SmartConfig complete. | ||
| + | Resending SmartConfig Packets | ||
| + | .................................. | ||
| + | IoT-device is online with ip 10.42.42.42 | ||
| + | Fetching firmware backup | ||
| + | % Total % Received % Xferd Average Speed | ||
| + | | ||
| + | 100 1024k 100 1024k 0 | ||
| + | curl: Saved to filename ' | ||
| + | ====================================================== | ||
| + | Getting Info from IoT-device | ||
| + | VTRUST-FLASH 1.5 | ||
| + | (c) VTRUST GMBH https:// | ||
| + | READ FLASH: http:// | ||
| + | ChipID: 1a94dd | ||
| + | MAC: 50: | ||
| + | BootVersion: | ||
| + | BootMode: normal | ||
| + | FlashMode: 1M DOUT @ 40MHz | ||
| + | FlashChipId: | ||
| + | FlashChipRealSize: | ||
| + | Active Userspace: user2 0x81000 | ||
| + | ====================================================== | ||
| + | Ready to flash third party firmware! | ||
| + | |||
| + | For your convenience, | ||
| + | Tasmota v8.1.0.2 (wifiman) | ||
| + | ESPurna 1.13.5 (base) | ||
| + | |||
| + | You can also provide your own image by placing it in the /files directory | ||
| + | Please ensure the firmware fits the device and includes the bootloader | ||
| + | MAXIMUM SIZE IS 512KB | ||
| + | |||
| + | Available options: | ||
| + | 0) return to stock | ||
| + | 1) flash espurna.bin | ||
| + | 2) flash tasmota.bin | ||
| + | 3) flash tasmota-lite.bin | ||
| + | q) quit; do nothing | ||
| + | Please select 0-3: 2 | ||
| + | Are you sure you want to flash tasmota.bin? | ||
| + | Attempting to flash tasmota.bin, | ||
| + | Flashed http:// | ||
| + | Look for a tasmota-xxxx SSID to which you can connect and configure | ||
| + | Be sure to configure your device for proper function! | ||
| + | |||
| + | HAVE FUN! | ||
| + | ====================================================== | ||
| + | Do you want to flash another device? [y/N] y | ||
| + | ====================================================== | ||
| + | |||
| + | </ | ||
| + | |||
| + | ====== ESPHome Config ====== | ||
| + | |||
| + | [[https:// | ||
| + | [[https:// | ||
| + | |||
| + | <file yaml gosund_sp1.yaml> | ||
| + | esphome: | ||
| + | name: gosund_pralka | ||
| + | platform: ESP8266 | ||
| + | board: esp01_1m | ||
| + | esp8266_restore_from_flash: | ||
| + | |||
| + | wifi: | ||
| + | ssid: " | ||
| + | password: " | ||
| + | |||
| + | # Enable fallback hotspot (captive portal) in case wifi connection fails | ||
| + | ap: | ||
| + | ssid: " | ||
| + | password: " | ||
| + | |||
| + | captive_portal: | ||
| + | |||
| + | # Enable logging | ||
| + | logger: | ||
| + | |||
| + | # Enable Home Assistant API | ||
| + | api: | ||
| + | |||
| + | ota: | ||
| + | |||
| + | binary_sensor: | ||
| + | - platform: gpio | ||
| + | name: "Power Button" | ||
| + | pin: | ||
| + | number: GPIO13 | ||
| + | inverted: true | ||
| + | on_press: | ||
| + | - switch.toggle: | ||
| + | |||
| + | switch: | ||
| + | - platform: gpio | ||
| + | id: relay | ||
| + | name: ON/OFF | ||
| + | pin: GPIO15 | ||
| + | on_turn_on: | ||
| + | - light.turn_on: | ||
| + | on_turn_off: | ||
| + | - light.turn_off: | ||
| + | |||
| + | |||
| + | time: | ||
| + | - platform: homeassistant | ||
| + | id: homeassistant_time | ||
| + | timezone: Europe/ | ||
| + | | ||
| + | substitutions: | ||
| + | plug_name: GspBiuro | ||
| + | # Higher value gives lower watt readout | ||
| + | current_res: | ||
| + | # Lower value gives lower voltage readout | ||
| + | voltage_div: | ||
| + | |||
| + | # Enable Web server | ||
| + | web_server: | ||
| + | port: 80 | ||
| + | |||
| + | sensor: | ||
| + | - platform: wifi_signal | ||
| + | name: " | ||
| + | update_interval: | ||
| + | | ||
| + | - platform: uptime | ||
| + | name: " | ||
| + | icon: mdi: | ||
| + | update_interval: | ||
| + | | ||
| + | - platform: hlw8012 | ||
| + | sel_pin: | ||
| + | number: GPIO12 | ||
| + | inverted: True | ||
| + | cf_pin: GPIO05 | ||
| + | cf1_pin: GPIO04 | ||
| + | current_resistor: | ||
| + | voltage_divider: | ||
| + | | ||
| + | current: | ||
| + | name: " | ||
| + | unit_of_measurement: | ||
| + | accuracy_decimals: | ||
| + | icon: mdi: | ||
| + | | ||
| + | voltage: | ||
| + | name: " | ||
| + | unit_of_measurement: | ||
| + | accuracy_decimals: | ||
| + | icon: mdi: | ||
| + | | ||
| + | power: | ||
| + | name: " | ||
| + | unit_of_measurement: | ||
| + | id: " | ||
| + | icon: mdi: | ||
| + | | ||
| + | change_mode_every: | ||
| + | update_interval: | ||
| + | | ||
| + | - platform: total_daily_energy | ||
| + | name: " | ||
| + | power_id: " | ||
| + | filters: | ||
| + | # Multiplication factor from W to kW is 0.001 | ||
| + | - multiply: 0.001 | ||
| + | unit_of_measurement: | ||
| + | icon: mdi: | ||
| + | |||
| + | text_sensor: | ||
| + | - platform: version | ||
| + | name: " | ||
| + | |||
| + | output: | ||
| + | # Relay state led | ||
| + | - platform: esp8266_pwm | ||
| + | id: state_led | ||
| + | pin: | ||
| + | number: GPIO2 | ||
| + | inverted: true | ||
| + | |||
| + | light: | ||
| + | # Relay state light | ||
| + | - platform: monochromatic | ||
| + | output: state_led | ||
| + | id: led | ||
| + | |||
| + | # Uses the red LED as a ESPhome status indicator | ||
| + | status_led: | ||
| + | pin: | ||
| + | number: GPIO0 | ||
| + | inverted: true | ||
| + | | ||
| + | </ | ||
| + | |||
| + | Upgrade from Tasmota: | ||
| + | <code bash> | ||
| + | run esphome config.yaml compile | ||
| + | |||
| + | Creating BIN file " | ||
| + | </ | ||
| + | |||
| + | Or '' | ||
| + | |||
| + | |||