Az alapkapcsolást valósítottam meg, abban a Data (5-ös láb) fel van húzra 5V-ra egy 2.2K-s ellenállással. Annyi pluszt raktam bele, hogy egy LF33ABV táp IC-vel adok az egésznek 3.3V-ot, mert az ESP-01-nek az kell, a Wemos maga csinálja az 5V-ból. Enélkül az ESP-01 nem kapott tápot.
Az eredeti forrásban pedig az
int rxPin = 3;
int lvlPin = 5;
részt, erre írtam át:
int rxPin = 1;
int lvlPin = 2;
Vagyis a kapcsolási rajz szerinti RX pontot az ESP-01 2-es lábára kötöttem (GPIO-1), az Enable RX pontot meg a 3-as lábára (GPIO-2). Mást nem változtattam. Maga az áramkör biztosan működik, mert ha óra nélkül adok neki 5V-ot, akkor ugyan kap tápot az ESP-01, mert világít a LED rajta, de nem boot-ol be. Ha bedugom az órába, szépen beindul felmegy a WIFI-re és jön a default adat, de aztán ott vége is, utána nem jön semmi.
Ennyi jön:
Client:Connect.
received length=29
client msg: ESP_DSMR_626D67/status
----------
online
received length=32
Client:Connect.
received length=29
client msg: ESP_DSMR_626D67/status
----------
online
received length=32
client msg: =homeassistant/sensor/ESP_DSMR_626D67/power_consumption/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/consumption/status","state_topic":"ESP_DSMR_626D67/power/consumption","last_reset_topic":"ESP_DSMR_626D67/power/consumption/reset","name":"ESP_DSMR_626D67_power_consumption","unit_of_measurement":"kW","unique_id":"power_consumption","icon":"mdi:flash","device_class":"power","state_class":"measurement"}
----------
received length=551
client msg: <homeassistant/sensor/ESP_DSMR_626D67/power_production/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/production/status","state_topic":"ESP_DSMR_626D67/power/production","last_reset_topic":"ESP_DSMR_626D67/power/production/reset","name":"ESP_DSMR_626D67_power_production","unit_of_measurement":"kW","unique_id":"power_production","icon":"mdi:flash","device_class":"power","state_class":"measurement","last_reset_value_template":"1970-01-01T00:00:00+00:00"}
----------
received length=601
client msg: Fhomeassistant/sensor/ESP_DSMR_626D67/total_consumption_tariff_1/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/total_consumption_tariff_1/status","state_topic":"ESP_DSMR_626D67/power/total_consumption_tariff_1","last_reset_topic":"ESP_DSMR_626D67/power/total_consumption_tariff_1/reset","name":"ESP_DSMR_626D67_total_consumption_tariff_1","unit_of_measurement":"kWh","unique_id":"total_consumption_tariff_1","icon":"mdi:counter","device_class":"energy","state_class":"measurement","last_reset_value_template":"1970-01-01T00:00:00+00:00"}
----------
received length=683
client msg: Fhomeassistant/sensor/ESP_DSMR_626D67/total_consumption_tariff_2/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/total_consumption_tariff_2/status","state_topic":"ESP_DSMR_626D67/power/total_consumption_tariff_2","last_reset_topic":"ESP_DSMR_626D67/power/total_consumption_tariff_2/reset","name":"ESP_DSMR_626D67_total_consumption_tariff_2","unit_of_measurement":"kWh","unique_id":"total_consumption_tariff_2","icon":"mdi:counter","device_class":"energy","state_class":"measurement","last_reset_value_template":"1970-01-01T00:00:00+00:00"}
----------
received length=683
client msg: Ehomeassistant/sensor/ESP_DSMR_626D67/total_production_tariff_1/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/total_production_tariff_1/status","state_topic":"ESP_DSMR_626D67/power/total_production_tariff_1","last_reset_topic":"ESP_DSMR_626D67/power/total_production_tariff_1/reset","name":"ESP_DSMR_626D67_total_production_tariff_1","unit_of_measurement":"kWh","unique_id":"total_production_tariff_1","icon":"mdi:counter","device_class":"energy","state_class":"measurement","last_reset_value_template":"1970-01-01T00:00:00+00:00"}
----------
received length=677
client msg: Ehomeassistant/sensor/ESP_DSMR_626D67/total_production_tariff_2/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/total_production_tariff_2/status","state_topic":"ESP_DSMR_626D67/power/total_production_tariff_2","last_reset_topic":"ESP_DSMR_626D67/power/total_production_tariff_2/reset","name":"ESP_DSMR_626D67_total_production_tariff_2","unit_of_measurement":"kWh","unique_id":"total_production_tariff_2","icon":"mdi:counter","device_class":"energy","state_class":"measurement","last_reset_value_template":"1970-01-01T00:00:00+00:00"}
----------
received length=677
client msg: 8homeassistant/sensor/ESP_DSMR_626D67/power_tariff/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/power_tariff/status","state_topic":"ESP_DSMR_626D67/power/power_tariff","name":"ESP_DSMR_626D67_power_tariff","unique_id":"power_tariff"}
----------
received length=380
client msg: ?homeassistant/sensor/ESP_DSMR_626D67/short_power_outages/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/short_power_outages/status","state_topic":"ESP_DSMR_626D67/power/short_power_outages","last_reset_topic":"ESP_DSMR_626D67/power/short_power_outages/reset","name":"ESP_DSMR_626D67_short_power_outages","unique_id":"short_power_outages","icon":"mdi:flash-off"}
----------
received length=507
client msg: >homeassistant/sensor/ESP_DSMR_626D67/long_power_outages/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/long_power_outages/status","state_topic":"ESP_DSMR_626D67/power/long_power_outages","last_reset_topic":"ESP_DSMR_626D67/power/long_power_outages/reset","name":"ESP_DSMR_626D67_long_power_outages","unique_id":"long_power_outages","icon":"mdi:flash-off"}
----------
received length=501
client msg: ;homeassistant/sensor/ESP_DSMR_626D67/phase_1_current/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_1/current/status","state_topic":"ESP_DSMR_626D67/power/phase_1/current","last_reset_topic":"ESP_DSMR_626D67/power/phase_1/current/reset","name":"ESP_DSMR_626D67_phase_1_current","unit_of_measurement":"A","unique_id":"phase_1_current","icon":"mdi:flash","device_class":"current","state_class":"measurement"}
----------
received length=558
client msg: ;homeassistant/sensor/ESP_DSMR_626D67/phase_2_current/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_2/current/status","state_topic":"ESP_DSMR_626D67/power/phase_2/current","last_reset_topic":"ESP_DSMR_626D67/power/phase_2/current/reset","name":"ESP_DSMR_626D67_phase_2_current","unit_of_measurement":"A","unique_id":"phase_2_current","icon":"mdi:flash","device_class":"current","state_class":"measurement"}
----------
received length=558
client msg: ;homeassistant/sensor/ESP_DSMR_626D67/phase_3_current/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_3/current/status","state_topic":"ESP_DSMR_626D67/power/phase_3/current","last_reset_topic":"ESP_DSMR_626D67/power/phase_3/current/reset","name":"ESP_DSMR_626D67_phase_3_current","unit_of_measurement":"A","unique_id":"phase_3_current","icon":"mdi:flash","device_class":"current","state_class":"measurement"}
----------
received length=558
client msg: ?homeassistant/sensor/ESP_DSMR_626D67/phase_1_consumption/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_1/consumption/status","state_topic":"ESP_DSMR_626D67/power/phase_1/consumption","last_reset_topic":"ESP_DSMR_626D67/power/phase_1/consumption/reset","name":"ESP_DSMR_626D67_phase_1_consumption","unit_of_measurement":"kW","unique_id":"phase_1_consumption","icon":"mdi:flash","device_class":"power","state_class":"measurement"}
----------
received length=581
client msg: ?homeassistant/sensor/ESP_DSMR_626D67/phase_2_consumption/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_2/consumption/status","state_topic":"ESP_DSMR_626D67/power/phase_2/consumption","last_reset_topic":"ESP_DSMR_626D67/power/phase_2/consumption/reset","name":"ESP_DSMR_626D67_phase_2_consumption","unit_of_measurement":"kW","unique_id":"phase_2_consumption","icon":"mdi:flash","device_class":"power","state_class":"measurement"}
----------
received length=581
client msg: ?homeassistant/sensor/ESP_DSMR_626D67/phase_3_consumption/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_3/consumption/status","state_topic":"ESP_DSMR_626D67/power/phase_3/consumption","last_reset_topic":"ESP_DSMR_626D67/power/phase_3/consumption/reset","name":"ESP_DSMR_626D67_phase_3_consumption","unit_of_measurement":"kW","unique_id":"phase_3_consumption","icon":"mdi:flash","device_class":"power","state_class":"measurement"}
----------
received length=581
client msg: >homeassistant/sensor/ESP_DSMR_626D67/phase_1_production/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_1/production/status","state_topic":"ESP_DSMR_626D67/power/phase_1/production","last_reset_topic":"ESP_DSMR_626D67/power/phase_1/production/reset","name":"ESP_DSMR_626D67_phase_1_production","unit_of_measurement":"kW","unique_id":"phase_1_production","icon":"mdi:flash","device_class":"power","state_class":"measurement"}
----------
received length=575
client msg: >homeassistant/sensor/ESP_DSMR_626D67/phase_2_production/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_2/production/status","state_topic":"ESP_DSMR_626D67/power/phase_2/production","last_reset_topic":"ESP_DSMR_626D67/power/phase_2/production/reset","name":"ESP_DSMR_626D67_phase_2_production","unit_of_measurement":"kW","unique_id":"phase_2_production","icon":"mdi:flash","device_class":"power","state_class":"measurement"}
----------
received length=575
client msg: >homeassistant/sensor/ESP_DSMR_626D67/phase_3_production/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_3/production/status","state_topic":"ESP_DSMR_626D67/power/phase_3/production","last_reset_topic":"ESP_DSMR_626D67/power/phase_3/production/reset","name":"ESP_DSMR_626D67_phase_3_production","unit_of_measurement":"kW","unique_id":"phase_3_production","icon":"mdi:flash","device_class":"power","state_class":"measurement"}
----------
received length=575
client msg: 9homeassistant/sensor/ESP_DSMR_626D67/phase_1_drops/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_1/drops/status","state_topic":"ESP_DSMR_626D67/power/phase_1/drops","last_reset_topic":"ESP_DSMR_626D67/power/phase_1/drops/reset","name":"ESP_DSMR_626D67_phase_1_drops","unique_id":"phase_1_drops","icon":"mdi:chart-sankey"}
----------
received length=474
client msg: 9homeassistant/sensor/ESP_DSMR_626D67/phase_2_drops/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_2/drops/status","state_topic":"ESP_DSMR_626D67/power/phase_2/drops","last_reset_topic":"ESP_DSMR_626D67/power/phase_2/drops/reset","name":"ESP_DSMR_626D67_phase_2_drops","unique_id":"phase_2_drops","icon":"mdi:chart-sankey"}
----------
received length=474
client msg: 9homeassistant/sensor/ESP_DSMR_626D67/phase_3_drops/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_3/drops/status","state_topic":"ESP_DSMR_626D67/power/phase_3/drops","last_reset_topic":"ESP_DSMR_626D67/power/phase_3/drops/reset","name":"ESP_DSMR_626D67_phase_3_drops","unique_id":"phase_3_drops","icon":"mdi:chart-sankey"}
----------
received length=474
client msg: 9homeassistant/sensor/ESP_DSMR_626D67/phase_1_peaks/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_1/drops/peaks","state_topic":"ESP_DSMR_626D67/power/phase_1/peaks","last_reset_topic":"ESP_DSMR_626D67/power/phase_1/peaks/reset","name":"ESP_DSMR_626D67_phase_1_peaks","unique_id":"phase_1_peaks","icon":"mdi:chart-bell-curve"}
----------
received length=477
client msg: 9homeassistant/sensor/ESP_DSMR_626D67/phase_2_peaks/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_2/drops/peaks","state_topic":"ESP_DSMR_626D67/power/phase_2/peaks","last_reset_topic":"ESP_DSMR_626D67/power/phase_2/peaks/reset","name":"ESP_DSMR_626D67_phase_2_peaks","unique_id":"phase_2_peaks","icon":"mdi:chart-bell-curve"}
----------
received length=477
client msg: 9homeassistant/sensor/ESP_DSMR_626D67/phase_3_peaks/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/power/phase_3/drops/peaks","state_topic":"ESP_DSMR_626D67/power/phase_3/peaks","last_reset_topic":"ESP_DSMR_626D67/power/phase_3/peaks/reset","name":"ESP_DSMR_626D67_phase_3_peaks","unique_id":"phase_3_peaks","icon":"mdi:chart-bell-curve"}
----------
received length=477
client msg: 5homeassistant/sensor/ESP_DSMR_626D67/total_gas/config{"device":{"identifiers":["ESP_DSMR_626D67"],"manufacturer":"Bram2202","model":"ESP-DSMR","name":"ESP_DSMR_626D67","sw_version":"v1.3.1"},"availability_topic":"ESP_DSMR_626D67/gas/total/status","state_topic":"ESP_DSMR_626D67/gas/total","last_reset_topic":"ESP_DSMR_626D67/gas/total/reset","name":"ESP_DSMR_626D67_total_gas","unit_of_measurement":"m³","unique_id":"gas_total","icon":"mdi:counter","last_reset_value_template":"1970-01-01T00:00:00+00:00"}
----------
received length=511
Ezután semmi, órák elteltével sem.