Hi there. Thanks for the great code. I seem to be having a problem with the config settings updating in HA. For example, if I update the distance and refresh the device page, the config box for distance will still be empty. Is that how it works?
When I look at the logs in ESPHome, it looks like it’s setting the distance. It just doesn’t show up in HA?
[23:29:15][D][number:054]: 'gym_distance' - Setting number value
[23:29:15][D][number:113]: New number value: 3.000000
[23:29:15][D][switch:017]: 'gym_mmwave_sensor' Turning OFF.
[23:29:15][D][switch:037]: 'gym_mmwave_sensor': Sending state OFF
[23:29:15][D][uart_debug:158]: >>> "sensorStop"
[23:29:15][D][uart_debug:158]: <<< "sensorStop\r\n"
[23:29:15][D][uart_debug:158]: <<< "Done\r\n"
[23:29:15][D][uart_debug:158]: <<< "leapMMW:/>"
[23:29:16][D][uart_debug:158]: >>> "setRange 0 3.00"
[23:29:16][D][uart_debug:158]: <<< "setRange 0 3.00\r\n"
[23:29:16][D][uart_debug:158]: <<< "Done\r\n"
[23:29:16][D][uart_debug:158]: <<< "leapMMW:/>"
[23:29:17][D][switch:013]: 'gym_mmwave_sensor' Turning ON.
[23:29:17][D][switch:037]: 'gym_mmwave_sensor': Sending state ON
[23:29:17][D][uart_debug:158]: >>> "setUartOutput 1 0"
[23:29:17][D][uart_debug:158]: <<< "setUartOutput 1 0\r\n"
[23:29:17][D][uart_debug:158]: <<< "Done\r\n"
[23:29:17][D][uart_debug:158]: <<< "leapMMW:/>"
[23:29:17][D][api:102]: Accepted ::FFFF:C0A8:13C
[23:29:17][W][api.connection:080]: Home Assistant 2022.9.6 (::FFFF:C0A8:13C): Connection closed
[23:29:18][D][uart_debug:158]: >>> "setUartOutput 2 1 1 2"
[23:29:18][D][uart_debug:158]: <<< "setUartOutput 2 1 1 2\r\n"
[23:29:18][D][uart_debug:158]: <<< "Done\r\n"
[23:29:18][D][uart_debug:158]: <<< "leapMMW:/>"
[23:29:19][D][uart_debug:158]: >>> "saveConfig"
[23:29:19][D][uart_debug:158]: <<< "saveConfig\r\n"
[23:29:19][D][uart_debug:158]: <<< "save cfg complete\r\n"
[23:29:19][D][uart_debug:158]: <<< "Done\r\n"
[23:29:19][D][uart_debug:158]: <<< "leapMMW:/>"
[23:29:19][D][uart_debug:158]: >>> "getSensitivity\r"
[23:29:19][D][uart_debug:158]: <<< "getSensitivity\r\n"
[23:29:19][D][uart_debug:158]: <<< "Response 4\r\n"
[23:29:19][D][uart_debug:158]: <<< "Done\r\n"
[23:29:19][D][uart_debug:158]: <<< "leapMMW:/>"
[23:29:22][D][binary_sensor:036]: 'gym-mmwave': Sending state OFF
[23:29:22][D][uart_debug:158]: >>> "sensorStartgetRange\r"
[23:29:22][D][uart_debug:158]: <<< "sensorStart\r\n"
[23:29:22][D][uart_debug:158]: <<< "Done\r\n"
[23:29:22][D][uart_debug:158]: <<< "leapMMW:/>"
[23:29:29][D][binary_sensor:036]: 'gym-mmwave': Sending state ON
[23:29:29][D][uart_debug:158]: <<< "$JYRPO,1,1,0.586, ,1.188, , *\r\n"
[23:29:31][D][uart_debug:158]: <<< "$JYRPO,1,1,0.555, ,1.469, , *\r\n"
[23:29:33][D][uart_debug:158]: <<< "$JYRPO,1,1,0.578, ,1.719, , *\r\n"
[23:29:34][D][uart_debug:158]: >>> "getLatency\r"
[23:29:34][D][uart_debug:158]: <<< "getLatency\r\n"
[23:29:35][D][uart_debug:158]: <<< "Response 0.100 12.000\r\n"
[23:29:35][D][uart_debug:158]: <<< "Done\r\n"
[23:29:35][D][uart_debug:158]: <<< "leapMMW:/>$JYRPO,1,1,0.570, ,2.250, , *\r\n"
[23:29:37][D][uart_debug:158]: <<< "$JYRPO,1,1,0.563, ,2.250, , *\r\n"
[23:29:39][D][uart_debug:158]: <<< "$JYRPO,1,1,0.555, ,1.594, , *\r\n"
[23:29:41][D][uart_debug:158]: <<< "$JYRPO,1,1,0.555, ,1.031, , *\r\n"
[23:29:43][D][uart_debug:158]: <<< "$JYRPO,1,1,0.547, ,0.719, , *\r\n"
[23:29:45][D][uart_debug:158]: <<< "$JYRPO,1,1,0.523, ,1.031, , *\r\n"
[23:29:47][D][uart_debug:158]: <<< "$JYRPO,1,1,0.555, ,1.406, , *\r\n"
Any ideas? And if this is the wrong place to ask, can you point me in the right direction?