Help needed to setup Static IP

I tried to edit my resin_sample file per some of the samples I found here, and I’m not able to get it to work. And in the process I screwed things up… Ughh :frowning:
Yes I edited with Notepad++ and saved with no extension.

Could someone please just give me a working resin_sample file I can paste in?

I use wired on the Pi3 (Not WiFi).
My router is 192.168.0.1
I need my Pi3 to be 192.168.0.35

Thanks so much…

Does this help?
https://docs.resin.io/reference/resinOS/network/2.x/#setting-a-static-ip

or this?

Just do it on your router like most people do.

Actually it doesn’t help me a bit. All I’m asking for is for someone to copy a working resin file that I can paste and get my new installation working as I screwed up my existing resin file.
Not interested in becoming a programmer here. Lol

Tried that already and for some reason the router still assigned a new ip address to my hasio setup. Now I’ve screwed up my working resin_sample file.
So if someone can help me out I’d be very grateful.

Sorry, I don’t run resin so all I can do is show you the way.

The official site has example files you can copy.

https://docs.resin.io/reference/resinOS/network/2.x/

Yeah already tried that and for some reason the router still assigned a new ip address to my hasio setup the next day . Now I’ve I’ve managed to screw-up my working resin_sample file.
Frustrated I didn’t think it would be so complicated to get Hasio running :frowning:
So if someone can help me out with the original resin_sample file I’d be very grateful.

Thanks anyway. I guess I don’t have the patience or desire to learn resin programming code . I just wanted to simply control several lights on a simple raspberry pi 3.
Didn’t think it would be so complicated to just add a static ip address… Ughh

You’re not programming anything. There’s no “language” to learn. It’s very simply just a configuration file. I linked you to the official website where they have the examples you can COPY and modify for your environment.

If you’re having trouble with this part, you may not be ready for home assistant yet. It’s still pretty rough around the edges and requires some reasonable competency to troubleshoot and configure

Thanks … I’ve considered that I may not presently want to take the time needed to learn to modify many of the complicated configuration files needed to adapt to my specific needs.
I have about 12 lights and several LED strip lights as well as a Home Security system that all run on simple apps, and are all programmable and working with my two Amazon Echo’s.
All the Apps run on an old retired Android Cell Phone that I keep running 24/7 to control On / Off times of the lights and interface the Security System.
So yeah I may not need Home Assistant just yet.
BTW: I did get it working HA again after some poking around with the resin_sample configuration file.
So at least I did make some progress… LOL…
It did pickup all my devices on my network, pretty cool, but I just don’t have the time at the moment to try configuring all the devices yet.
Many Thanks for your help…

[connection]
id=Ethernet
type=ethernet
interface-name=eth0
[ipv4]
method=manual
address1=192.168.2.5/24,192.168.2.1;
dns=192.168.2.1;

Change IP address, gateway address and DNS server as required.

That would not set a static IP address. Only a reservation which is not the same as a static address.

It’s effectively exactly the same thing. In what way do you think they differ?

The only way to ensure a static IP address is by setting the address on the device. 1. Router corruption/replacement due to equipment failure could result in the device getting a different IP. 2. DHCP can fail in routed networks where DHCP request broadcasts are blocked or failure of the DHCP forwarder to forward requests. 3. If the DHCP server process fails the client will exhaust the TTL (usually set to one day) and after that time client will disconnect from the network. 4. DHCP results in additional network traffic including broadcast traffic (DHCP request, DHCP renewal requests). While in most cases a DHCP reservation will work it is still not the same as a static IP address.

It is effectively and practically exactly the same. If you change your hardware you need to configure it there as well of course. Hardware failures and edge cases aside, if you can’t achieve a good result by reserving the IP address then you have other issues on your network and you should fix them!