#Hello sorry for the likely stupid

1 messages · Page 1 of 1 (latest)

quick jungle
#

I managed to create and validate the config, but can't seem to find the sensor anywhere, is there anything I need to do in order for the sensor to show up? I want to check it to make sure it's outputting the correct information.

# NRGI variable energy prices
rest:
  - method: "GET"
    scan_interval: 7200
    resource: https://nrgi.dk/api/common/pricehistory
    params:
      region: "DK1"
      date: "{ { (now()).strftime('%Y-%m-%d') } }"
    sensor:
      - name: "Currenty energy price"
        json_attributes_path: "$.response.prices[{{ now().hour }}]"
        json_attributes:
          - "localTime"
          - "value"
          - "priceInclVat"
          - "isHighestPrice"
          - "isLowestPrice"
worldly star
#

Check in devtools -> States for your new entity

#

Assuming that ha core check passed

quick jungle
#

the ha core check is still processing, not sure how long it's supposed to take, but the sensor isn't showing up in devtools -> States when searching for the sensor name

worldly star
#

It won't show until you restart HA

quick jungle
#

ah, ok

#

I'll let the core check finish and then restart

#

ha core check finished without issue, but after restarting ha the sensor still isn't showing up in the states list, should the rest part in the configuration.yaml be nested under something else? Right now I just have it at the end of the file

worldly star
#

I'd expect something like sensor.currenty_energy_price