Github Devices Community Docs Blog

Esp32dev-pilight

Hi!

I wanted to build pilight for my esp32. But in the environment choice pilight is only vailable for nodemcu. Is it possible to build pilight for my esp32?

Best regards,
M

I tried to make my own build, it builds, but it failed when using it:
[E][WiFiClient.cpp:365] write(): fail on fd 55, errno: 113, “Software caused connection abort”
failure_number
1
failed, rc=
-4
try again in 5s

I did this platformio.ini:
Added:
default_envs = esp32dev-pilight

Added env:
[env:esp32dev-pilight]
platform = ${com.esp32_platform}
board = esp32dev
lib_deps =
${com-esp.lib_deps}
${libraries.rc-switch}
build_flags =
${com-esp.build_flags}
‘-DZgatewayPilight=“Pilight”’
‘-DGateway_Name=“OpenMQTTGateway_ESP32_Pilight”’

And now its working, Problem was in the router…

Hello,

Your env definition should be :

[env:esp32dev-pilight]
platform = ${com.esp32_platform}
board = esp32dev
lib_deps =
${com-esp.lib_deps}
${libraries.pilight}
build_flags =
${com-esp.build_flags}
‘-DZgatewayPilight=“Pilight”’
‘-DGateway_Name=“OpenMQTTGateway_ESP32_Pilight”’

The library used should be pilight and not rcswitch.

1 Like

Thanks, I have my switches working but still not my Nexa NBA-001 Thermometer (Hideki). It does not seem to be supported by anything…

Have you checked/tried RFLink?