Philips Hue Motion Sensors - Entity not available

I finally took the plunge and upgraded HA. I followed all the custom component instructions but for my Hue Motion sensors from here (https://github.com/robmarkcole/Hue-sensors-HASS#hue-sensors-hass) this but all I see is “Entity not available”. I’m sure it’s to do with the positioning in the config perhaps as if I move it to a different part of the config, it wipes out all my sensors - Is there anything glaringly wrong?


hue:
  bridges:
    - host: 192.168.1.xx
    - host: 192.168.1.yy

nest:
  client_id: xx
  client_secret: yy

binary_sensor:
  - platform: hikvision
    host: 192.168.1.132
    username: admin
    password: xx
    customize:
      binary_sensor.network_video_recorder_motion_1:
        delay: 0
      binary_sensor.network_video_recorder_motion_2:
        delay: 0
      binary_sensor.network_video_recorder_line_crossing_2:
        delay: 0
  - platform: huesensor

asuswrt:
  host: 192.168.1.1
  username: admin
  ssh_key: /config/ssh/ssh_asus_private_key
  sensors:
    - upload
    - download
    - upload_speed
    - download_speed

sensor:
  - platform: yr
  - platform: template
    sensors:
      cctv_triggered1:
        value_template: "{% if as_timestamp(states.binary_sensor.network_video_recorder_line_crossing_1.attributes.last_tripped_time) - as_timestamp( now() ) < 300  %}on{% else %}off{% endif %}"
  - platform: template
    sensors:
      cctv_triggered2:
        value_template: "{% if as_timestamp(states.binary_sensor.network_video_recorder_line_crossing_2.attributes.last_tripped_time) - as_timestamp( now() ) < 300  %}on{% else %}off{% endif %}"


  - platform: huesensor

  - platform: metoffice
    api_key: nn
    monitored_conditions:
      - weather
      - temperature
      - feels_like_temperature
      - wind_speed
      - wind_direction
      - wind_gust
      - visibility
      - visibility_distance
      - uv
      - precipitation
      - humidity

  - platform: template
    sensors:
      hallway_temperature:
        friendly_name: 'Hallway temperature'
        value_template: '{{state_attr("binary_sensor.hallyway_motion_sensor", "temperature")}}'
        unit_of_measurement: °C

speedtestdotnet:
  scan_interval:
    minutes: 30
  monitored_conditions:
    - ping
    - download
    - upload

hallwaysensor

Hard to say because you’ve posted an unformatted version of your configuration file. You may wish to contact the author of the custom component directly either via his GitHub repo:

or in this lengthy thread:

Yeah - the code pasting went a bit screwy for some reason - I followed all those instructions - several times - Can’t understand what i’m missing…

Put three consecutive back-ticks ``` on their own line.
Paste your configuration contents below the line with back-ticks.
Put another three consecutive back-ticks on a separate line below what you just pasted.

1 Like