Switch configuring takes over 10 sec?

Hi I just put my home assistant config in new raspberry PI.
i use GPIO, and Broadlink, but now when I post the previously config I can’t run HA.

Please see config below.

homeassistant:

Name of the location where Home Assistant is running

name: Home

Location required to calculate the time the sun rises and sets

latitude: 53.175
longitude: 17.6167

Impacts weather/sunrise data (altitude above sea level in meters)

elevation: 107

metric for Metric, imperial for Imperial

unit_system: metric

Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

time_zone: Europe/Warsaw
customize:
binary_sensor.motionsensor:
friendly_name: “MotionSensor”
device_class: “motion”
binary_sensor.noisesensor:
friendly_name: “NoiseSensor”
device_class: “motion”
binary_sensor.lightsensor:
friendly_name: “LightSensor”
device_class: “motion”
sensor.dht_sensor_humidity:
friendly_name: “Upstairs_Wilgotnosc”
homebridge_hidden: true
sensor.dht_sensor_temperature:
friendly_name: “Upstairs_Temperature”
homebridge_hidden: true

automation:

  • alias: Turn off kitchen light 10 minutes after last movement
    trigger:
    platform: state
    entity_id: binary_sensor.motionsensor
    to: ‘off’
    for:
    minutes: 10
    action:
    service: homeassistant.turn_on
    entity_id: switch.nc_tv_power

  • alias: Turn on kitchen light when there is movement
    trigger:
    platform: state
    entity_id: binary_sensor.motionsensor
    to: ‘on’
    action:
    service: homeassistant.turn_on
    entity_id: switch.nc_tv_power

Show links to resources in log and frontend

introduction:

Enables the frontend

frontend:

Enables configuration UI

config:

http:

Uncomment this to add a password (recommended!)

api_password: raspberry

Uncomment this if you are using SSL or running in Docker etc

base_url: example.duckdns.org:8123

Checks for available updates

updater:

Discover some devices automatically

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

binary_sensor:

  • platform: rpi_gpio
    device_class: motion
    ports:
    17: NoiseSensor
    18: MotionSensor
    26: LightSensor

sensor:

  • platform: dht
    sensor: DHT11
    pin: 4
    monitored_conditions:
    • temperature
    • humidity
  • platform: broadlink
    host: 192.168.8.127
    mac: B4:43:0D:38:48:C6
    monitored_conditions:
    • temperature

switch:
platform: broadlink
host: 192.168.8.126
mac: B4:43:0D:38:48:C6
switches:
tv_phillips:
friendly_name: ‘Tv Power’
command_on: ‘JgDaAJKTEjcTNhY0FRATEhEUERMTEhI3EzcUNBMTERQQExMTERMRExM2ExMRFBETEhISExEUETcWDhQ2EjgRNxM2EzcSNxMABfqTkxM2FDYSNxMTERMSExISEhQRNxI3EjcUEhISExIRExITEhQSNRIUEhITEhIUERISExI2FBIRNxI3EzcSNxI4EzUTAAX6lJQROBE3EjcTExEUEhISExMTETYUNRI4EhMTEhETExMSEhETEjYTExEUERMTEhETEhMTNRMTETcTNxM3EzYRNxM2EwAExQgAAlMLAA0FAAAAAAAAAAAAAAAAAAA=’
command_off: JgDaAJKTEjcTNhY0FRATEhEUERMTEhI3EzcUNBMTERQQExMTERMRExM2ExMRFBETEhISExEUETcWDhQ2EjgRNxM2EzcSNxMABfqTkxM2FDYSNxMTERMSExISEhQRNxI3EjcUEhISExIRExITEhQSNRIUEhITEhIUERISExI2FBIRNxI3EzcSNxI4EzUTAAX6lJQROBE3EjcTExEUEhISExMTETYUNRI4EhMTEhETExMSEhETEjYTExEUERMTEhETEhMTNRMTETcTNxM3EzYRNxM2EwAExQgAAlMLAA0FAAAAAAAAAAAAAAAAAAA=
nc_tv:
friendly_name: ‘NC Tv Power’
command_on: JgBQAAABLJQTNhM3FDcTExISExETEhM3ExITNhQ3FDYUOBISFDcSExMSEjcTExETEjcUEhMSExISNhYREjYUNxMUETcTOBM2FAAFAwABLEoSAA0FAAAAAAAAAAA=
command_off: JgBQAAABLJQTNhM3FDcTExISExETEhM3ExITNhQ3FDYUOBISFDcSExMSEjcTExETEjcUEhMSExISNhYREjYUNxMUETcTOBM2FAAFAwABLEoSAA0FAAAAAAAAAAA=
sony_blueray:
friendly_name: ‘BlueRay’
command_on: ‘JgCIAE4VJxEXEScVFBInExQTFBQUEhQTFBQUEicUExMoFBMAAr5PFSYTFRMmFBMTKBMUEhUTFBIVFBMSFhEoFRQRKBMUAAK/TxInFBMTKRMTFCYUFBIVEhUTFBIWERYRKRIUEycUEwACwU8TJhQTEygUEhMoFBURFhEUExQTFBUTFCcUExEpExMADQU=’
command_off: ‘JgCIAE4VJxEXEScVFBInExQTFBQUEhQTFBQUEicUExMoFBMAAr5PFSYTFRMmFBMTKBMUEhUTFBIVFBMSFhEoFRQRKBMUAAK/TxInFBMTKRMTFCYUFBIVEhUTFBIWERYRKRIUEycUEwACwU8TJhQTEygUEhMoFBURFhEUExQTFBUTFCcUExEpExMADQU=’

Use preformatted text when posting YAML. Also - if you’ve got an error in home-assistant.log, post that.

1 Like

You might want to put single quotes round all of your broadlink commands.