RF switches code NEED HELP!

I have been using this video as a guide https://www.youtube.com/watch?v=5UUazFbK-Hg

Everything seems ok until I try to edit the configuration.yaml file. This is my code:


I saved the code, and I know I need to restart Home Assistant. So I go to hassbian.local:8123/ and then go to Config. When I try to Restart, I see this red error message in the bottom left window: http://i.imgur.com/rsbS3RI.png

Also in the video, if you go to the 6:31 mark in the video, you’ll see that he has an interface on his phone with his devices. How do I get mine to look like that? What do I need to do? I have an iPhone.

What am I doing wrong??? This has frustrated me beyond belief, and I am to the point of just throwing everything away. Please help me!!

I saved the code, and I know I need to restart Home Assistant. So I go to hassbian.local:8123/ and then go to Config. When I try to Restart, I see this red error message in the bottom left window: Imgur: The magic of the Internet

Hopefully you have more than just those few lines in your configuration.yaml file. The configuration you have listed above is not enough to run the whole Home Assistant package. It is only the section that you need to use the RF portion. Have you tried clicking the Check Config button? The restart won’t take place if the config is invalid. An invalid config can be the result of many things. From what you’ve posted above, it doesn’t look like your code has invalid spacing (read: that’s a big deal in the YAML language). The Check Config button should guide you in the right direction as far as coding, etc.

Also in the video, if you go to the 6:31 mark in the video, you’ll see that he has an interface on his phone with his devices. How do I get mine to look like that? What do I need to do? I have an iPhone.

That’s the mobile version of the Home Assistant interface. It is baked in your existing Home Assistant installation, so nothing else is required. Simply use your phone’s web browser to access your Home Assistant interface just like you would on a computer and you’ll see something similar.

What am I doing wrong??? This has frustrated me beyond belief, and I am to the point of just throwing everything away. Please help me!!

Patience is definitely required as you learn the in’s and out’s of Home Assistant. The forums are your friend, as well as the search feature of it. Many of us have posted examples of our configurations, problems, fixes, etc. Just take your time and understand that you WILL get frustrated. It’s because you did something wrong, whether big or small, and you sometimes need to take a break from it for a few minutes to clear your head, then try again.

1 Like

Assuming that you’ve done nothing else but add this RF module, your configuration.yaml file should look similar to this:

homeassistant:

  # Name of the location where Home Assistant is running
  name: Home

  # Location required to calculate the time the sun rises and sets
  latitude: 40.741895
  longitude: -73.989308

  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 12

  # metric for Metric, imperial for Imperial
  unit_system: imperial

  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: America/New_York

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

http:
  # Uncomment this to add a password (recommended!)
  # api_password: password

# Checks for available updates
updater:

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time.
history:

# View all events in a logbook
logbook:

# Track the sun
sun:

# Weather Prediction
sensor:
  platform: yr

# Switches
switch:
  platform: rpi_rf
  gpio: 17
  switches:
    outlet_5:
      protocol: 1
      pulselength: 186
      code_on: 1389827
      code_off: 1389836

Jeremy,

I will have to get back to you in a bit. I ended up erasing the SD card out of frustration and am going to start over.

When I used Terminal to open (or at least, what I thought to be) the configuration.yaml file, I didn’t see any other lines of code there. Nothing. I suspect I didn’t use the right command, since there wasn’t anything there to begin with.

I will post back after I try again.

Ok, so I restarted everything, but this time installed samba so I could edit the actual file on my Mac. Once I did this, I saw the rest of that code from your post, so thanks! I added what I needed and saved, and then attempted to restart the Pi from hassbian.local - I got the same error message again. I forgot to check the config first. What is odd though, is that after this was done, I unplugged the Pi to manually restart it, turned it back on, and now hassbian.local:8123 is not working! It says the server cannot be found. Could this be due to me editing the .yaml file before checking the config? I don’t get it!

I would also like to add that when going through the initial installation and setting everything up, every time I used the sudo command, I would get this line of code:

sudo: unable to resolve host hassbian

Also, if I have a monitor, keyboard, and mouse plugged into the Pi when I start it up, it asks for a user name and password. I’ve tried “pi” (no quotes) as the user name, and the default password as well as my password that I changed, and nothing works!

Thanks for the continued help! I don’t understand why all of a sudden I can’t access the Home Assistant page from my computer now.

I’ve seen this before when your PI is not connected to the network. Since you have a keyboard and monitor attached, check the output of ifconfig and make sure you there’s an IP address. This could explain too why you get [quote=“shredmasta, post:5, topic:14588”]
hassbian.local:8123 is not working!
[/quote]

Almost all Linux distributions don’t echo back the password on the command line, so though it doesn’t seem to work it probably is.