Open ahmaddxb opened 3 years ago
If i change the MQTT topic format to anything other than %prefix%/%topic% it stop sending mqtt messages
This is what i get in the log after I click MQTT Discover
172.30.32.2 - - [22/Jul/2021:12:39:59 +0400] "GET /index.php HTTP/1.1" 200 2221 "http://192.168.1.120:8123/api/hassio_ingress/Ur7AQCIVzSrMnUmy36F5vq-6DN_qg4KLtT1t6w9R-UA/settings.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0" "192.168.1.200, 172.30.32.1" 0.001 0.001 . - [22-Jul-2021 12:40:11] WARNING: [pool www] child 1121 said into stderr: "NOTICE: PHP message: PHP Notice: fwrite(): send of 2 bytes failed with errno=32 Broken pipe in /var/www/html/lib/phpMQTT.php on line 270" [22-Jul-2021 12:40:11] WARNING: [pool www] child 1121 said into stderr: "NOTICE: PHP message: PHP Notice: fwrite(): send of 22 bytes failed with errno=32 Broken pipe in /var/www/html/lib/phpMQTT.php on line 271" [22-Jul-2021 12:40:13] WARNING: [pool www] child 1121 said into stderr: "NOTICE: PHP message: PHP Notice: fwrite(): send of 2 bytes failed with errno=32 Broken pipe in /var/www/html/lib/phpMQTT.php on line 270" [22-Jul-2021 12:40:13] WARNING: [pool www] child 1121 said into stderr: "NOTICE: PHP message: PHP Notice: fwrite(): send of 29 bytes failed with errno=32 Broken pipe in /var/www/html/lib/phpMQTT.php on line 271" [22-Jul-2021 12:40:14] WARNING: [pool www] child 1121 said into stderr: "NOTICE: PHP message: PHP Notice: fwrite(): send of 2 bytes failed with errno=32 Broken pipe in /var/www/html/lib/phpMQTT.php on line 270" [22-Jul-2021 12:40:14] WARNING: [pool www] child 1121 said into stderr: "NOTICE: PHP message: PHP Notice: fwrite(): send of 22 bytes failed with errno=32 Broken pipe in /var/www/html/lib/phpMQTT.php on line 271" [22-Jul-2021 12:40:18] WARNING: [pool www] child 1121 said into stderr: "NOTICE: PHP message: PHP Notice: fwrite(): send of 2 bytes failed with errno=32 Broken pipe in /var/www/html/lib/phpMQTT.php on line 270" [22-Jul-2021 12:40:18] WARNING: [pool www] child 1121 said into stderr: "NOTICE: PHP message: PHP Notice: fwrite(): send of 22 bytes failed with errno=32 Broken pipe in /var/www/html/lib/phpMQTT.php on line 271" [22-Jul-2021 12:40:21] WARNING: [pool www] child 1121 said into stderr: "NOTICE: PHP message: PHP Notice: fwrite(): send of 2 bytes failed with errno=32 Broken pipe in /var/www/html/lib/phpMQTT.php on line 270" [22-Jul-2021 12:40:21] WARNING: [pool www] child 1121 said into stderr: "NOTICE: PHP message: PHP Notice: fwrite(): send of 22 bytes failed with errno=32 Broken pipe in /var/www/html/lib/phpMQTT.php on line 271"
Should issue should be resolved now in 1.04.17
I too am still having trouble with this. I believe that the version of the phpMQTT library included in TasmoBackup is faulty and a newer one is required. Once I put that in place on top of v1.04.17, discovery worked again for me.
Im struggling with discovery finding devices? If I change the MQTT topic format to "%prefix%/sonoff/%topic%" it doesnt send out mqtt message anymore. Im a doing this correcly?