markvader / ha-rpi_rf

Home Assistant Raspberry Pi GPIO RF Integration
Apache License 2.0
31 stars 5 forks source link

Error in configuration.yaml after hacs and rpi_rf Update #32

Closed FreddyMbN closed 2 years ago

FreddyMbN commented 2 years ago

hi,

i have an issue with the configuration.yaml since i have updated homeassistant. i also updatred hacs, rpi_gpio and rpi_rf.

ERROR-Message: bad indentation of a mapping entry at line 58, column 9: gpio: 17

Has somebody any clue about a solution?


 - platform: rpi_rf
    gpio: 17
    switches:
      Stern:
    pulselength: 300
        protocol: 1
        code_on: 1394001
        code_off: 1394004
        signal_repetitions: 10
      Druckerbeleuchtung:
        protocol: 1
        pulselength: 300
        code_on: 1397073
        code_off: 1397076
        signal_repetitions: 10
      Nachtischlampe Freddy:
        protocol: 1
        pulselength: 300
        code_on: 1397841
        code_off: 1397844
        signal_repetitions: 10
      Lichterkette:
        protocol: 1
        pulselength: 300
        code_on: 4195665
        code_off: 4195668
        signal_repetitions: 10
      Nachttischlampe Jill:
        protocol: 1
        pulselength: 300
        code_on: 4198737
        code_off: 4198740
        signal_repetitions: 10
      Standlampe:
        protocol: 1
        pulselength: 300
        code_on: 4199505
        code_off: 4199508
        signal_repetitions: 10
markvader commented 2 years ago

How's this.

switch:
  - platform: rpi_rf
    gpio: 17
    switches:
      Stern:
        pulselength: 300
        protocol: 1
        code_on: 1394001
        code_off: 1394004
        signal_repetitions: 10
      Druckerbeleuchtung:
        protocol: 1
        pulselength: 300
        code_on: 1397073
        code_off: 1397076
        signal_repetitions: 10
FreddyMbN commented 2 years ago

oh, that was miformatted by pasting in.

the error occures allready by writing this


 - platform: rpi_rf
    gpio: 17
    switches:
      Stern:
        pulselength: 300
        protocol: 1
        code_on: 1394001
        code_off: 1394004
        signal_repetitions: 10
markvader commented 2 years ago

oh, that was miformatted by pasting in.

the error occures allready by writing this


 - platform: rpi_rf
    gpio: 17
    switches:
      Stern:
        pulselength: 300
        protocol: 1
        code_on: 1394001
        code_off: 1394004
        signal_repetitions: 10

gpio: and switches: need to aligned the same as platform:

Then the switch name "Stern" is set in 2 spaces, then pulselength etc are set in a further 2 spaces

FreddyMbN commented 2 years ago

omg thx i didnt think about it, cause this configuration worked for months

markvader commented 2 years ago

Glad you got sorted, let me know if you have any other issues.