Hue-sensors - motions aren't showing temperature

Hahah… Yes - I can do that. I don’t really have much from what the default is.
Posting shortly.

Here it is. Thank you to both of you.

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 41.4675
  longitude: -73.2406
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # 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
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Secrets are defined in the file secrets.yaml
  # api_password: !secret http_password
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/

updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# 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:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Text to speech
tts:
  - platform: google

# Cloud
cloud:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

#Node-Red iframe
panel_iframe:
 nodered:
   title: 'Node-Red'
   icon: 'mdi:shuffle-variant'
   url: 'http://10.1.30.194:1880/'

variable:
  last_motion:
    value: 'Unknown'
    restore: true
    attributes:
      icon: mdi:map-marker
      name: "Last Motion"

emulated_hue:
  listen_port: 8300
  expose_by_default: false

# Hue-sensors
hue: 
  bridges: 
      host: "10.1.30.162"

sensor:  
    platform: hue

  - platform: template
    sensors:
      garage_sensor_temperature:
        friendly_name: 'Garage temperature'
        value_template: '{{states.sensor.basement_hallway_garage_motion_sensor.attributes.temperature}}'
        unit_of_measurement: °F

Okay, before platform: hue you need a hyphen.

I think you need single quotes around degrees Fahrenheit too.

Under hue bridge you need a hyphen before the host: ip address.

And at first glance that’s done it I think, post any errors you get.

(edit) when you put the hyphens in, delete a space so that everything lines up as it is now)

Thanks but still failing. Here is the configuration.yaml. The parts it’s complaining about

#Node-Red iframe
panel_iframe:
 nodered:
   title: 'Node-Red'
   icon: 'mdi:shuffle-variant'
   url: 'http://10.1.30.194:1880/'

variable:
  last_motion:
    value: 'Unknown'
    restore: true
    attributes:
      icon: mdi:map-marker
      name: "Last Motion"

emulated_hue:
  listen_port: 8300
  expose_by_default: false

# Hue-sensors
hue: 
  bridges: 
  - host: "10.1.30.162"
sensor: 
  - platform: hue

 - platform: template
    sensors:
     garage_sensor_temperature:
       friendly_name: 'Garage temperature'
       value_template: '{{states.sensor.basement_hallway_garage_motion_sensor.attributes.temperature}}'
       unit_of_measurement: '°F'

Here is the error message:
Configuration invalid.

Testing configuration at /config
2018-01-24 20:37:20 ERROR (SyncWorker_0) [homeassistant.util.yaml] while parsing a block mapping
in “/config/configuration.yaml”, line 1, column 1
expected , but found ‘’
in “/config/configuration.yaml”, line 96, column 2
2018-01-24 20:37:20 ERROR (MainThread) [homeassistant.bootstrap] Error loading /config/configuration.yaml: while parsing a block mapping
in “/config/configuration.yaml”, line 1, column 1
expected , but found ‘’
in “/config/configuration.yaml”, line 96, column 2

Yeah, your spacing was still out…

hue: 
  bridges: 
    - host: "10.1.30.162"
sensor: 
  - platform: hue

  - platform: template
    sensors:
      garage_sensor_temperature:
        friendly_name: 'Garage temperature'
        value_template: '{{states.sensor.basement_hallway_garage_motion_sensor.attributes.temperature}}'
        unit_of_measurement: '°F'

I don’t understand how - this doesn’t make sense. I’m using notepad++, configured specifically for yaml. So even when I use the “Tab” key, it replaces them with spaces.

Now I don’t have experience with yaml or Home Assistant, but I’m familiar with unix, linux and some programming and know about white spaces, tabs vs spaces, etc. I only mention this so you don’t think you’re dealing with a completely incompetent person. LOL… Thanks again

I pasted exactly what you have above and I still receive errors. It’s not creating the sensor.

Configuration Validation
Validate your configuration if you recently made some changes to your configuration and want to make sure that it is all valid.
Configuration invalid.CHECK CONFIG
Testing configuration at /config
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up introduction
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up http
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up recorder
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up system_log
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up api
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up history
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up frontend
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up sun
2018-01-25 06:45:31 ERROR (MainThread) [homeassistant.config] Invalid config for [group]: Entity ID garage_sensor_temperature is an invalid entity id for dictionary value @ data['group']['Garage']['entities']. Got ['garage_sensor_temperature']. (See /config/configuration.yaml, line 65). Please check the docs at https://home-assistant.io/components/group/
2018-01-25 06:45:31 ERROR (MainThread) [homeassistant.setup] Setup failed for group: Invalid config.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up map
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up sensor
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up emulated_hue
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up discovery
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up updater
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up hue
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up variable
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.1 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.1 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain emulated_hue took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain hue took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain variable took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up cloud
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up tts
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up conversation
2018-01-25 06:45:31 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of script. Setup failed for dependencies: group
2018-01-25 06:45:31 ERROR (MainThread) [homeassistant.setup] Setup failed for script: Could not setup all dependencies.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up config
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up panel_iframe
2018-01-25 06:45:31 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of automation. Setup failed for dependencies: group
2018-01-25 06:45:31 ERROR (MainThread) [homeassistant.setup] Setup failed for automation: Could not setup all dependencies.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setting up logbook
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain panel_iframe took 0.0 seconds.
2018-01-25 06:45:31 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
Failed config
  group: 
    default_view: [source /config/groups.yaml:1]
      entities: [source /config/groups.yaml:4]
        - group.Garage
      view: False
    Garage: [source /config/groups.yaml:8]
      entities: [source /config/groups.yaml:10]
        - garage_sensor_temperature
      name: Garage

  General Errors: 
    - Setup failed for group: Invalid config.
    - Unable to setup dependencies of script. Setup failed for dependencies: group
    - Setup failed for script: Could not setup all dependencies.
    - Unable to setup dependencies of automation. Setup failed for dependencies: group
    - Setup failed for automation: Could not setup all dependencies.

Successful config (partial)
  group:
# Hue-sensors
hue: 
  bridges: 
    - host: "10.1.30.162"
sensor: 
  - platform: hue
    scan_interval: 0.1
    
  - platform: template
    sensors:
      garage_sensor_temperature:
        friendly_name: 'Garage temperature'
        value_template: '{{states.sensor.basement_hallway_garage_motion_sensor.attributes.temperature}}'
        unit_of_measurement: '°F'

groups.yaml

default_view:
  view: no
  entities:
    - group.Garage

Garage:
 name: Garage
 entities:
  - garage_sensor_temperature
Garage:
  name: Garage
  entities:
    - sensor.garage_sensor_temperature

That error message is only for your groups, where it was misaligned and you missed the first part of the sensor name.

(the hyphen needs to be under the T in entities, and the name: needs to start under the R of garage)

Maybe your tab key is putting one space in instead of two, just use the spacebar, soooooooooooooo much easier.

Also, your default_view should be view: yes because it is a view.

Just as a quick point as well, not meant as a dig in any way, but nearly every time you’ve come back to this thread you’ve changed the thing I’ve suggested, but you’ve also changed something else that I haven’t suggested. It makes troubleshooting really difficult because the problem could be (as it is in this case) with the other thing you’ve changed.

Like at the start of this thread that group was called Garage_light, and we corrected the spacing and the sensor name for it 18 hours ago, there’s been no need to change that since.

Like I say, not a dig, but you’ll struggle to troubleshoot your configuration if you don’t do it one step at a time.

I think it’s me not fully understanding the format and mucking it up.

I made the changes, but it’s still failing.

What’s the error message now?

Yes, I’m guilty of that. I thought it was a naming thing and yes, I started changing names. I won’t change anything further. Sorry about that.

Ha, not a problem, we were all new to this once. :+1:

Hey! No error message! To your point, because I changed the name in the groups.yaml, it was still presenting the error. Lesson learned there.

But now the page is just blank and I don’t see the sensor created in the entities page/dev panel. Current config

configuration.yaml

# Hue-sensors
hue: 
  bridges: 
    - host: "10.1.30.162"
sensor: 
  - platform: hue
    scan_interval: 0.1
    
  - platform: template
    sensors:
      garage_sensor_temperature:
        friendly_name: 'Garage temperature'
        value_template: '{{states.sensor.basement_hallway_garage_motion_sensor.attributes.temperature}}'
        unit_of_measurement: '°F'

groups.yaml

default_view:
  view: yes
  entities:
      - group.Garage

Garage:
  name: Garage
  entities:
    - sensor.garage_sensor_temperature
1 Like

What is now evident to me as well is that in order to use this template or feature, it must be associated with the Hue and sensor lines. I didn’t realize that and I think that was the initial confusion. In Notepad++, I can see when it associates itself with previous lines and I kept adding or removing spaces to try and disassociate it from the lines above it. But it actually needed to be a part of it. Haha… Great learning experience!

Example what I mean: https://i.imgur.com/zpfTCkn.png

Nearly there

default_view:
  view: yes
  entities:
      - group.Garage

The last line of that bit needs to go back two spaces and all be lowercase.

The sensor may not appear until its next updated, which is periodic, but can be ‘forced’ by going and walking past the motion sensor to wake it up.

Walked by it, but not showing up. Also modified groups.yaml, but still not showing. No config errors.

default_view:
  view: yes
  entities:
      - group.Garage

Garage:
  name: Garage
  entities:
    - sensor.garage_sensor_temperature

You’ve just posted the same paste, confirm you’ve moved the line back and replaced the capital G with a lowercase one in your actual configuration?

Sorry - I thought you meant lowercase for the g in group. I just made it all lowercase, but still nothing.

default_view:
  view: yes
  entities:
      - group.garage

garage:
  name: garage
  entities:
    - sensor.garage_sensor_temperature

Okay, go in the dev panel and at the top of the entities column type motion, should come back something like this…

But if you do it on the laptop there will be another column with the attributes in it, post a screenshot please.

And then the same with the word temperature, cheers.

Sure, have a look

motion


temperature