Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Discovery #59

Open
ahmaddxb opened this issue Jul 22, 2021 · 4 comments
Open

MQTT Discovery #59

ahmaddxb opened this issue Jul 22, 2021 · 4 comments

Comments

@ahmaddxb
Copy link

ahmaddxb commented Jul 22, 2021

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?

image

image

@ahmaddxb
Copy link
Author

If i change the MQTT topic format to anything other than %prefix%/%topic% it stop sending mqtt messages

@ahmaddxb
Copy link
Author

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"

@patrickdk77
Copy link
Collaborator

Should issue should be resolved now in 1.04.17

@clmcavaney
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants