Iâll run you through my test setup and itâs output.
I use this docker-compose
stack to spin up ecowitt2mqtt
and an MQTT broker â note that the ecowitt2mqtt
configuration uses DEBUG
-level logging and HASS Discovery:
---
version: "3"
services:
ecowitt2mqtt:
container_name: ecowitt2mqtt
environment:
LOG_LEVEL: DEBUG
ENDPOINT: /data/report
HASS_DISCOVERY: "true"
PORT: 8080
MQTT_BROKER: vernemq
MQTT_PORT: 1883
MQTT_PASSWORD: password
MQTT_USERNAME: ecowitt
image: "bachya/ecowitt2mqtt:dev"
ports:
- "8080:8080/tcp"
restart: always
vernemq:
container_name: vernemq
environment:
DOCKER_VERNEMQ_ACCEPT_EULA: "yes"
DOCKER_VERNEMQ_USER_ECOWITT: "password"
image: "vernemq/vernemq:1.11.0"
ports:
- "1883:1883/tcp"
restart: always
user: root
With this running, I configure the following parameters in the WS View app (per the docs):
- Server IP/Hostname: the IP of my MacBook (where Iâm testing)
- Path:
/data/report
(note that this matches the environment variable above)
- Port:
8080
(note that this matches the environment variable above)
- Upload Interval: I use 16 seconds (which seems to be the minimum allowed)
After a moment, I start to see entries in the ecowitt2mqtt
container logs. For example, each time the Ecowitt device sends a data payload to ecowitt2mqtt
, I see this block of logs:
DEBUG:ecowitt2mqtt:Using arguments: Namespace(log_level='DEBUG', mqtt_broker='vernemq', mqtt_port=1883, mqtt_username='ecowitt', mqtt_password='password', mqtt_topic='', hass_discovery=True, hass_discovery_prefix=None, endpoint='/data/report', port=8080, unit_system='imperial')
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:ecowitt2mqtt:Received data from Ecowitt device: {'PASSKEY': '6962BBC665DE6D96B0F4578A5DA5CA0D', 'stationtype': 'GW1000B_V1.6.3', 'dateutc': '2020-12-17 19:51:29', 'tempinf': '41.9', 'humidityin': '38', 'baromrelin': '24.604', 'baromabsin': '24.604', 'tempf': '47.8', 'humidity': '33', 'winddir': '177', 'windspeedmph': '1.79', 'windgustmph': '4.47', 'maxdailygust': '8.05', 'solarradiation': '147.05', 'uv': '1', 'rainratein': '0.000', 'eventrainin': '0.000', 'hourlyrainin': '0.000', 'dailyrainin': '0.000', 'weeklyrainin': '0.161', 'monthlyrainin': '0.161', 'yearlyrainin': '1.000', 'totalrainin': '1.000', 'wh65batt': '0', 'freq': '915M', 'model': 'GW1000_Pro'}
DEBUG:ecowitt2mqtt:Wind Chill Temperature is only defined for temperatures at or below 50 F and wind speeds above 3 mph. (temperature: 47.8, wind speed: 2)
DEBUG:ecowitt2mqtt:Publishing according to Home Assistant MQTT Discovery standard
DEBUG:ecowitt2mqtt:Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b''
DEBUG:ecowitt2mqtt:Received CONNACK (0, 0)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m1), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/humidityin/config'', ... (341 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m2), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/humidityin/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m3), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/humidityin/state'', ... (2 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m4), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/humidity/config'', ... (333 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m5), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/humidity/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m6), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/humidity/state'', ... (2 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m7), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/winddir/config'', ... (323 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m8), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/winddir/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m9), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/winddir/state'', ... (3 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m10), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/maxdailygust/config'', ... (351 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m11), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/maxdailygust/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m12), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/maxdailygust/state'', ... (3 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m13), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/solarradiation/config'', ... (361 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m14), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/solarradiation/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m15), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/solarradiation/state'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m16), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/uv/config'', ... (316 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m17), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/uv/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m18), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/uv/state'', ... (1 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m19), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/wh65batt/config'', ... (327 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m20), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/wh65batt/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m21), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/wh65batt/state'', ... (1 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m22), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/baromabs/config'', ... (328 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m23), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/baromabs/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m24), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/baromabs/state'', ... (2 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m25), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/baromrel/config'', ... (328 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m26), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/baromrel/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m27), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/baromrel/state'', ... (2 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m28), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/dailyrain/config'', ... (340 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m29), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/dailyrain/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m30), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/dailyrain/state'', ... (1 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m31), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/eventrain/config'', ... (340 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m32), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/eventrain/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m33), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/eventrain/state'', ... (1 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m34), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/hourlyrain/config'', ... (344 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m35), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/hourlyrain/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m36), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/hourlyrain/state'', ... (1 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m37), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/monthlyrain/config'', ... (348 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m38), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/monthlyrain/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m39), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/monthlyrain/state'', ... (1 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m40), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/rainrate/config'', ... (336 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m41), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/rainrate/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m42), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/rainrate/state'', ... (1 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m43), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/totalrain/config'', ... (340 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m44), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/totalrain/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m45), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/totalrain/state'', ... (1 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m46), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/weeklyrain/config'', ... (344 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m47), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/weeklyrain/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m48), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/weeklyrain/state'', ... (1 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m49), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/yearlyrain/config'', ... (344 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m50), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/yearlyrain/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m51), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/yearlyrain/state'', ... (1 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m52), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/temp/config'', ... (321 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m53), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/temp/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m54), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/temp/state'', ... (4 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m55), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/tempin/config'', ... (329 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m56), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/tempin/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m57), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/tempin/state'', ... (4 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m58), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/dewpoint/config'', ... (337 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m59), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/dewpoint/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m60), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/dewpoint/state'', ... (4 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m61), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/feelslike/config'', ... (341 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m62), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/feelslike/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m63), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/feelslike/state'', ... (4 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m64), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/heatindex/config'', ... (341 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m65), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/heatindex/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m66), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/heatindex/state'', ... (4 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m67), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/windchill/config'', ... (343 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m68), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/windchill/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m69), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/windchill/state'', ... (4 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m70), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/windgust/config'', ... (335 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m71), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/windgust/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m72), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/windgust/state'', ... (3 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m73), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/windspeed/config'', ... (339 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m74), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/windspeed/availability'', ... (6 bytes)
DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m75), 'b'homeassistant/sensor/6962BBC665DE6D96B0F4578A5DA5CA0D/windspeed/state'', ... (3 bytes)
DEBUG:ecowitt2mqtt:Sending DISCONNECT
INFO:ecowitt2mqtt:Published to HASS discovery: {'humidityin': '38', 'humidity': '33', 'winddir': '177', 'maxdailygust': 8.1, 'solarradiation': '147.05', 'uv': '1', 'wh65batt': '0', 'baromabs': 24, 'baromrel': 24, 'dailyrain': 0, 'eventrain': 0, 'hourlyrain': 0, 'monthlyrain': 0, 'rainrate': 0, 'totalrain': 1, 'weeklyrain': 0, 'yearlyrain': 1, 'temp': 47.8, 'tempin': 41.9, 'dewpoint': 20.1, 'feelslike': 47.8, 'heatindex': 43.8, 'windchill': None, 'windgust': 4.5, 'windspeed': 1.8}
This output is reflected in the MQTT broker itself, as well:
It almost seems like your Ecowitt device isnât sending data to ecowitt2mqtt
. I agree that Ecowitt sadly does not give much in the way of debugging, so you may have to use something like Wireshark to see if traffic is passing from the device over your LAN.