logo elektroda
logo elektroda
X
logo elektroda

How do I change the IP in Domoticz on Windows 7 for access from other devices?

mateusz196 9975 38
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17644995
    mateusz196
    Level 9  
    Hello!!!
    I have a lot of respect for the people writing on this forum. I have searched and not found what I want to do.
    I would like to help someone one day to start playing with domoticz. I have started building a house and would like to base some of the electrics on electronics. Used to on a raspberry pi now playing around on Windows.
    1. i install domoticz on Windows but i don't know how to change this IP which is 127.0.0.1:8080
    To a local IP that I can access from any other device.
    I would like to make a tutorial of such things and post on the forum. Greetings. Next step is ESP and relay :) .
    Do you have a problem with Raspberry? Ask question. Visit our forum Raspberry.
  • ADVERTISEMENT
  • #2 17645451
    kaczakat
    Level 34  
    That's a long way to go for you. Doing it on a Windows PC makes no sense at a time when electricity is getting 30% more expensive, look up how to do it on a Raspberry or something like that. The IP 127.0.0.1 stands for localhost and is used by the program to connect to the server on the same computer, on the other you enter the actual IP number of the server.
    Helpful post? Buy me a coffee.
  • #3 17645643
    Slawek K.
    Level 35  
    You want to do a tutorial and you yourself don't know what a loopback is ? As colleague @kaczakat wrote, for this you need something that does not consume a lot of power, such as a Raspberry, but with a disk and not a memory card, because sooner or later the card will die due to the number of writes. However, I think you have a long way to go.

    Best regards
  • #4 17645789
    mateusz196
    Level 9  
    But I wrote. Ze I'm starting and it can be a long way because I'm just starting the construction....
    As I wrote I want to get to know Domoticz through Windows set it up add relays and not make it, a 24 hour server.
    I will buy a Raspberry if I like it on Windows. Now it's all about learning, and since the road is long I'm starting today. I hope that, you guys will help and not just bounce off what a bad idea this is and how dark I am. Too many people have already said if I don't have money to spend on something until I have finished a project. (Recently a radio I made in a tool box with a calculated Bass Reflex, on battery and mains with Bluetooth etc) now they are asking where they will buy it....


    I would just like to set Domoticz to have an IP address like 198.5..... And not 127...so I can log onto it while at home on WiFi,with my phone. Then make it work outside the house. And then just add the relays so it's really that much and difficult?
    I bought a relay with WiFi Esp8266 I bought a USB ttl 232 uart to upload EasyEsp.But it's slow. Do you need to change anything on the router? Add a port to it or something like that?
    Please help, from your answers I will try to put together just such a short tutorial. How I did it etc.
  • #5 17645941
    mateusz196
    Level 9  
    Okay I have domoticz already on my phone :) .
    In the router settings I saw what my computer IP is. One thing solved. Now another.
    Setting up the relay uploading ESP I'll look and only write if I can't do it.

    Added after 29 [minutes]: .

    Next question. How do I connect to domoticz outside the home outside the WiFi network? Through the app.
  • #6 17646267
    Slawek K.
    Level 35  
    You must have a fixed external IP from your ISP and forwarding on the router from the external network to the internal network.

    Greetings
  • ADVERTISEMENT
  • #7 17646272
    kaczakat
    Level 34  
    You can connect from outside if your ISP allows it - you have an external IP or a forwarded port pool, you do the forwarding on your router (if you have access to it, not everyone does).

    Unrelated to the main topic I deleted //kozi966 .
    Helpful post? Buy me a coffee.
  • #8 17646636
    mateusz196
    Level 9  
    Isn't there something like sonoff? An app where you simply enter your login and password and it works?

    Added after 13 [minutes]:

    I have internet on t mobile a Huawei b525 router.
  • Helpful post
    #9 17646714
    kaczakat
    Level 34  
    If it's mobile internet then there's a poor chance of controlling it from the internet. By definition, it's a connection for clients, not servers (unless you have it otherwise specified in your contract). Or put another way, I haven't figured out how to do it, but I haven't looked too hard either. I read in a similar topic that it's not possible to connect to an FTP server on a mobile connection, and here's an analogous situation. You would have to have some kind of intermediary server, e.g. you could do on thinkspeak (or similar services) such that some system sends login data every minute (or 15s) and every minute checks what the control data is, another device reads the data from the service and sends to some field the control data. The first device when it finds a new command executes it.
    Helpful post? Buy me a coffee.
  • #10 17646800
    Slawek K.
    Level 35  
    This could possibly be done using a VPN, but there are hardly any free ones these days, and logmein (the former hamachi) works poorly.

    Best regards
  • #11 17647099
    mateusz196
    Level 9  
    I used to set up servers in virtualbox on hamachi. But he doesn't want to go in that direction. Mobile internet. That is, I don't know why people get so excited about domoticz.... Sonoff software what it is but with Croatia I could do anything....
    Openhab supla doesn't provide anything like sonoff either?
    And on rasberypi there would be the same problem as Windows it would not be possible to control from outside the house?
    How is it with fibre optic?
  • Helpful post
    #12 17647526
    Slawek K.
    Level 35  
    If you like to share access to your devices on third-party servers, that's your business. Domoticz is a local solution, of course, with possible access from the outside, only you need to have knowledge about network configuration and network devices, e.g. router. Then you can access domoticz from wherever you want, no matter whether you are abroad or not, whether you are connecting from your mobile or from a fibre-optic net or any other.

    Greetings
  • #13 17647995
    mateusz196
    Level 9  
    All in all, you are right. Access to garage gates etc share with foreign servers. A bit of a scare.
  • Helpful post
    #14 17648195
    xury
    Automation specialist
    In my opinion, putting domoticz on windows is a misunderstanding. If you don't want to do it on RPi, I recommend a small terminal with HDD or a mini pc board with Debian on board.
    You can use various devices based on Esp8266 with software like ESPEasy, Tasmota or Espurna.
    These can be popular wemos boards or ready-made sonoff modules, but the software must be changed. In addition, with sonoff you should be very careful and NEVER connect them simultaneously to the mains and via Uart to a computer as their power supplies have no galvanic separation from the mains.
  • #15 17648271
    mateusz196
    Level 9  
    If I like Domoticz, then as I wrote above I will put the server on RB. It's just that I don't want to invest in RB now because the electrical installation in the building is still a long time ahead of me, and there are several versions coming out every year and I want to buy the freshest one that will be around when I lay out the electrics.
    Now I want to learn it on Windows so that I don't get confused later. I think I'm right that programming and adding sensor relays etc on Windows domoticz is the same as on raspberry?
  • Helpful post
    #16 17648328
    xury
    Automation specialist
    If it is about virtual sensors then yes. And if it's about sensors or physical devices then it may be different. Because there is a hardware layer that the PC does not have. For example, the 1wire or I2C bus
  • #17 17648452
    Slawek K.
    Level 35  
    If you do not plan to connect the sensors directly to the GPIO of the raspberry, then all other ways of using the sensors are the same on windows and raspberry.

    Greetings
  • ADVERTISEMENT
  • #18 17648466
    mateusz196
    Level 9  
    I'm thinking of making the main computer a Rashberry then an Arduino to it and from the Arduino to relays or contactors to sockets where the Iron etc would be. Is this a good idea or would you change something along the way?

    Merry Christmas :) and thank you for such help Gentlemen :) .
  • Helpful post
    #19 17648487
    Slawek K.
    Level 35  
    I will advise you as follows :
    1. Raspberry pi 3 B+ (already has wifi and bt built in) + Domoticz
    2. sensors or esp8266 actuators, e.g. the aforementioned Wemos D1 mini with ESPEasy software

    I have a whole house system built on such a setup. I design the reading or executive devices (or both together) myself, depending on the purpose and needs, using the ready-made Wemos d1 mini, because paradoxically, they are practically at the same price as the bare esp8266 and already have a 3.3V stabiliser and usb-uart on board, which is convenient for programming and debugging. The only disadvantage is the larger size than the bare esp.
    You can connect a ready-made relay module to the Wemos (in the marketing names relay for arduino ;) ) and you already have a ready-made controller for remote switching of devices from domoticz or the Domoticz smartphone app. Add to this a simple as a wire temperature sensor e.g. DS18B20 and you have e.g. a thermostat on a single Wemos.

    That's it in a nutshell, because there are plenty of possible solutions. The above works without any problems, communicates via WiFi and I recommend this solution.

    You can also combine it with domoticz, e.g. a ready-made Sonoff if you do not want to play with your own devices.


    Best regards
  • #20 17648512
    mateusz196
    Level 9  
    1x Wemos is 1x relay or how Arduino can control a large number of relays.
    And how about physical buttons, because I will not give up this in the house even temporary ones can be.
    I would also like what I can, i.e. connections of e.g. this wemos as a colleague writes to do with a cable to the RB, the same as the RB is connected via twisted pair to the router. Does the wemos make this possible? (It would all sit in a splitter in the garage).
    Over WiFi just smartphones and some sort of tablet in a good place in the house to switch on garden watering, lights, outdoor lighting, Christmas lighting and anything else that will be in Domoticz.
    Good idea?

    Added after 5 [minutes]:

    I wouldn't want the RB to start" mucking up" after connecting 15 relays to it. I would prefer RB to control e.g. Arduino and from Arduino to relays.
    Of course, everything in one switchgear connected by cables not by WiFi.
  • #21 17648568
    Slawek K.
    Level 35  
    The Arduino is not "faster" than the esp8266. You won't get cloudy anything, even after connecting 253 devices to the RPi. Communication between RPi and Wemos is done at intervals because there is no need for them to send information non-stop, and these are short transmissions, the network traffic generated by the whole system is negligible. You can connect more devices to the Wemos, in principle you have up to 8 pins to use without combinations, but you can still increase the number of pins by switching off some hardware functions, so calculate how many relays and buttons you need. I have an underfloor heating controller which measures 6 temperatures on the return of the heating loops on the supply strip, plus 6 relays controlling the thermal actuators controlling the closing/opening of the supply valves on each loop, plus an ambient temperature and humidity sensor, and all this on one Wemos. But for this I used 6 DS18B20 sensors which run on a 1-wire bus so they are all plugged into one pin, and a DHT22 as an ambient temperature and humidity sensor on another pin, another 6 pins are relays. As you can see, the possibilities are great.

    Wemos only works over WiFi, there is no possibility to work over RJ45 without an additional module.

    Greetings
  • ADVERTISEMENT
  • #22 17648582
    mateusz196
    Level 9  
    So the Arduino is not such a necessary component? How many years has this installation been working for you?
    Now to my language : RB connected to home internet > Domoticz uploaded > added some Wemos boards > relays connected to Wemos together with buttons > set up scenes and add devices to Domoticz > devices working. Do I understand this correctly?
  • #23 17648609
    xury
    Automation specialist
    I can say that to me some of the ESPs have been working for a year.
    They don't even need domoticz to work.
  • #24 17648616
    Slawek K.
    Level 35  
    You understand exactly right, the key here is the home network, in this case WiFi.
    For 1.5 years, still expanding, today I have well over 100 IDX in Domoticz, I use events a lot (I write them in Lua) - among other things to control all the heating in the house, i.e. the central heating furnace, central heating and DHW pumps, etc., but that's only part of it. Di RPI I have a Z-wave host hooked up allowing me to operate devices running on 868MHz - in my case Danfoss Link thermostatic actuators on the radiators. I have electricity and water metered in Domoticz, not to mention light switches and lighting, in each box I have a module with Wemos and a momentary button instead of the traditional one which allows on/off also via Domoticz. This comes in handy when I'm away on holiday, then I change to a different "plan" in Domoticz and, for example, simulate presence by switching on/off different lights at different times. I won't even write about other conveniences. I have managed, by optimising the management of household appliances, to achieve real savings on electricity of ~£150 for a 2-month period and I now pay £400 for energy and not £550 as before.
    Why was my first post about the lack of sense of domoticz on windows ? Well, because of the energy consumption of such a server itself. Even if you did it on a laptop, it would be difficult to go below 20-25W consumption, and on RPi you have only 2-3W. To be safe, I have the RPi on an SSD instead of a microSD card as standard as the card has a write limit and will die sooner or later. Backup is done automatically on the flash drive once a day.

    As you can see, the possibilities are enormous. I recommend you on the web to read about this topic "Caesar's blog" - you will find on google without any problem ;) .

    Greetings
  • #25 17648630
    xury
    Automation specialist
    In addition, you can even do without an RPi or other minicomputer, because you can install Domoticz on a router with Openwrt and extroot. I used to have that too, but I wanted to have graphs on Grafan and have an InfluxDB database. On top of that, the router already has too little resources, and an RPi without a disk will quickly eat up the SD card
  • #26 17648655
    Slawek K.
    Level 35  
    As you can see, there are plenty of options, and that's cool.
  • #27 17648676
    mateusz196
    Level 9  
    and problem...
    something like this pops up when flashing esp8266
    How do I change the IP in Domoticz on Windows 7 for access from other devices? .

    Added after 7 [minutes]:

    and finally flash failed
  • #28 17648736
    Slawek K.
    Level 35  
    bare esp or in a module?
  • #29 17648742
    mateusz196
    Level 9  
    How do I change the IP in Domoticz on Windows 7 for access from other devices? .

    I have programmed both bare and in relays the same thing

    Added after 9 [minutes]:

    and finally flash failed

    Added after 8 [minutes]: .

    resistors connect I have to?
  • #30 17648908
    xury
    Automation specialist
    RX to Tx connected ? Secondly, this module requires a modified ESPEasy

Topic summary

The discussion addresses changing the default Domoticz IP address on Windows 7 from localhost (127.0.0.1:8080) to a local network IP for access from other devices. It clarifies that 127.0.0.1 is the loopback address and to access Domoticz from other devices, one must use the computer's local IP assigned by the router. For external access outside the home network, port forwarding on the router and a fixed external IP from the ISP are necessary. Mobile internet connections often lack the capability for direct external access due to client-mode restrictions. VPNs or intermediary cloud services can be alternatives but have limitations. The conversation also covers hardware setup recommendations: using Raspberry Pi 3 B+ with Domoticz and ESP8266-based devices like Wemos D1 mini running ESPEasy firmware for sensor and relay control. The Wemos boards can control multiple relays and support physical buttons for local control, communicating over WiFi with Domoticz. Relay control requires appropriate interfacing, typically using transistors (e.g., BC337) and protection diodes to switch 5V relays from 3.3V ESP outputs. Flashing ESP8266 modules may require correct wiring (RX-TX cross connections) and sometimes resistors for voltage level adjustment. The discussion highlights that Domoticz on Windows is suitable for learning and virtual sensor setup, but for production, a Raspberry Pi or Debian-based mini PC with stable storage is recommended. The use of Sonoff devices is mentioned but with caution regarding power supply isolation. Overall, the thread provides practical guidance on network configuration, hardware interfacing, and software setup for home automation with Domoticz and ESP8266 devices.
Summary generated by the language model.
ADVERTISEMENT