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 ?
request mosquitto MQTTT hardware plugin
Moderators: leecollings, remb0
-
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
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
Jablotron connection, Ikea
- waltervl
- Posts: 6681
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: request mosquitto MQTTT hardware plugin
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?
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
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
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
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
Jablotron connection, Ikea
- waltervl
- Posts: 6681
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: request mosquitto MQTTT hardware plugin
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...
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 6681
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: request mosquitto MQTTT hardware plugin
Does it work now?pvklink wrote: Wednesday 16 June 2021 21:00 localhost and 127.0.0.1 dont work (Edit: on docker.....)
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
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
Not sure why yours doesn't work, I've never used anything else
Edit: Sorry didn't realise we were talking about docker.
Edit: Sorry didn't realise we were talking about docker.
Who is online
Users browsing this forum: No registered users and 1 guest