request mosquitto MQTTT hardware plugin

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

request mosquitto MQTTT hardware plugin

Post by pvklink »

Hi,

Is it possible to accept 127.0.0.1 as a MQTT connection in de MQTT hardware plugin to the localhost instead of hardcoded ipadress ?
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waltervl
Posts: 6683
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: request mosquitto MQTTT hardware plugin

Post by waltervl »

To be sure: did you try it to use 127.0.0.1 as IP address instead of localhost in the MQTT hardware configuration?
And the conclusion was that it did not work?
And what if you fill in the IP address of your Domoticz server?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: request mosquitto MQTTT hardware plugin

Post by pvklink »

localhost and 127.0.0.1 dont work.
Using an harded coded ip adres is just my point...you want to avoid that if possible..
In my cases the mqtt server is always on the same rpi (one of 5) as domoticz.
When updating my images, container and sometime volumes you dont want a lot of configure actions.
When i copy my test environment to my production environment, i want to set one variable...test or production
I am almost there!
In the past i was two days buyi to configure about 10 environments on 5 rpi's
Now i have one software stack with volumes, docker compose and dockerfiles.. some clicks in a menu, anf after 15minutes everything is working
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waltervl
Posts: 6683
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: request mosquitto MQTTT hardware plugin

Post by waltervl »

localhost used to work. Is mosquitto listening to localhost? You can check this with mosquito_pub

Edit: localhost within a Domoticz docker will only look to mosquitto in the Domoticz docker. Mosquito is on another docker...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 6683
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: request mosquitto MQTTT hardware plugin

Post by waltervl »

pvklink wrote: Wednesday 16 June 2021 21:00 localhost and 127.0.0.1 dont work (Edit: on docker.....)
Does it work now?
Edit: found this as possible solution (do not know if it is still valid (2014) )
https://stackoverflow.com/questions/243 ... f-the-mach
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Dave21w
Posts: 399
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: request mosquitto MQTTT hardware plugin

Post by Dave21w »

Not sure why yours doesn't work, I've never used anything else
hardware.jpg
hardware.jpg (88.37 KiB) Viewed 550 times
Edit: Sorry didn't realise we were talking about docker.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest