Янв 202022
 

Схема: DipTrace Schematic – D3MG

Варианты использования: 

Нельзя одновременно подавать 5В на вход и подключать сети 220В.

Для управления WS2812 – можно использовать проект WLED.

Config для WS2812 Home-Assistant


- platform: mqtt
    name: "WS2812 LED"
    unique_id: "WS2812_LED_CTRL"
    command_topic: "cmnd/5relayNew/POWER1"
    state_topic: "stat/5relayNew/RESULT"
    state_value_template: "{{value_json.POWER1}}"
    brightness_command_topic: "cmnd/5relayNew/Dimmer"
    brightness_state_topic: "stat/5relayNew/RESULT"
    brightness_scale: 100
    brightness_value_template: "{{value_json.Dimmer}}"
    rgb_command_topic: "cmnd/5relayNew/Color"
    rgb_state_topic: "stat/5relayNew/RESULT"
    rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}"
    effect_command_topic: "cmnd/5relayNew/Scheme"
    effect_state_topic: "stat/5relayNew/RESULT"
    effect_value_template: "{{value_json.Scheme}}"
    effect_list:
      - 0
      - 1
      - 2
      - 3
      - 4
    payload_on: "ON"
    payload_off: "OFF"
    availability_topic: "tele/5relayNew/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"    
    qos: 1
    retain: false
Окт 272021
 
В Новых версия Tasmota Hash-поменяли на-Data

value_template: '{{ value_json[''IrReceived''].Data }}'

- id: '1635253773568'
  alias: ПРОВЕРКА КНОПКИ
  description: ''
  trigger:
  - platform: mqtt
    topic: tele/romikETH/RESULT
    value_template: '{{ value_json[''IrReceived''].Hash }}'
    payload: '0x3D4C1879'
  condition: []
  action:
  - service: switch.toggle
    target:
      entity_id: switch.romiketh1
  mode: single

Все можно прописать в самом Home-Assistant.

 Posted by at 10:44
Сен 202021
 

Схема Подключения BIG Tasmota (PDF)

USB

U2 GPIO15/GPIO13 = GPIO13 TASMOTA

backlog sensor29 0,2,1; sensor29 1,2,1; sensor29 2,2,1; sensor29 3,2,1
backlog sensor29 4,2,1; sensor29 5,2,1; sensor29 6,2,1; sensor29 7,2,1
backlog SetOption36 0;SetOption65 1;wificonfig 4; SetOption59 1; timezone +3

PZEM-016 RS485

PZEM-016 RS485

Схема: DipTrace Schematic – BIG-Tasmota-V1.0

Немного фоток сборки.

Июн 292021
 
Схема:DipTrace Schematic – V3-Tasmota-MQTT-Ethernet-Module-6relay

template {“NAME”:“WT32-ETH01”,“GPIO”:[1,1,1,1,1,1,0,0,1,0,1,1,3840,576,5600,0,0,0,0,5568,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,1],“FLAG”:0,“BASE”:1}

Также можно установить и просто Wi-Fi модуль ESP8266.

DipTrace Schematic – ESP-12E-replace-WT32-ETH01-V3

p.s. AIN1 – при установки WiFi модуля отсутствует.

backlog SetOption36 0;SetOption65 1;wificonfig 4; SetOption59 1

Реле

backlog sensor29 0,5,0; sensor29 1,5,0; sensor29 2,5,0; sensor29 3,5,0; sensor29 4,5,0; sensor29 5,5,0

Входы

backlog sensor29 8,2,1; sensor29 9,2,1; sensor29 10,2,1; sensor29 11,2,1
backlog sensor29 12,2,1; sensor29 13,2,1; sensor29 14,2,1; sensor29 15,2,1

rule
on event#MCPINT_D15=1 do power0 on endon on event#MCPINT_D15=0 do power0 off endon
on event#MCPINT_D14=1 do power0 on endon on event#MCPINT_D14=0 do power0 off endon
on event#MCPINT_D13=1 do power6 on endon on event#MCPINT_D13=0 do power6 off endon
on event#MCPINT_D12=1 do power5 on endon on event#MCPINT_D12=0 do power5 off endon
on event#MCPINT_D11=1 do power4 on endon on event#MCPINT_D11=0 do power4 off endon
on event#MCPINT_D10=1 do power3 on endon on event#MCPINT_D10=0 do power3 off endon
on event#MCPINT_D9=1 do power2 on endon on event#MCPINT_D9=0 do power2 off endon
on event#MCPINT_D8=1 do power1 on endon on event#MCPINT_D8=0 do power1 off endon

Включить правила.

rule 1

p.s. Перепрошивка:

  1. Замкнуть BOOT
  2. Подключить основное питание
  3. Подключить USB
  4. Залить новую прошивку.

esptool.py –chip esp32 –port /dev/ttyUSB0 –baud 115200 –before default_reset
–after hard_reset write_flash -z –flash_mode dout –flash_freq 40m
–flash_size detect 0x1000 ../bootloader_dout_40m.bin 0x8000 ../partitions.bin
0xe000 ../boot_app0.bin 0x10000 .pio/build/tasmota32/firmware.bin

 

Мар 052019
 

Получить один снимок с камеры.

avconv -i http://10.128.0.137/img/video.asf -frames 1 frame1111.jpg
apt install libav-tools

or

apt install ffmpeg
ffmpeg -i http://192.168.10.246/img/video.asf -frames 1 frame1111.jpg
 Posted by at 14:39