balcony_weather_station/event_proxy
2025-12-25 17:53:04 +01:00
..
home_assistant_configs get event proxy working on local including mqtt message sending 2025-12-25 11:33:39 +01:00
.env dockerize event proxy go app 2025-12-25 11:51:23 +01:00
build.sh dockerize event proxy go app 2025-12-25 11:51:23 +01:00
docker-compose.yml get event proxy working on local including mqtt message sending 2025-12-25 11:33:39 +01:00
Dockerfile dockerize event proxy go app 2025-12-25 11:51:23 +01:00
go.mod dockerize event proxy go app 2025-12-25 11:51:23 +01:00
go.sum get event proxy working on local including mqtt message sending 2025-12-25 11:33:39 +01:00
main.go get pm measurment working 2025-12-25 17:53:04 +01:00
main_test.go parse messages 2025-12-23 21:27:20 +01:00
mosquitto.conf get event proxy working on local including mqtt message sending 2025-12-25 11:33:39 +01:00
README.md parse messages 2025-12-23 21:27:20 +01:00

Home Assistant Event Proxy

I found getting MQTT message sending on the pico MCP to be too trickey. I built this event proxy go app to simplify things. With it in place the MCP only needs to send a very simple TCP message like "M01,25.5,60,1013". This this proxy app with convert it into a Home Assistant MQTT event.

Dev

Run dev server with:

$ go run main.go

Run unit tests with:

$ go test -v

To send a test message from the command line:

$ echo "M01,1.0,1.1,1.2" | nc 192.168.1.153 8080