I am trying to scrape the prices out of the table down below of the resource site using the multiscrape integration from hacs. The sensors I have created appear into home assistant but I assume the select feature of scrape is not grabbing what I want. The value just reads unavailable. Help would be greatly appreciated! the following code is as is:
- resource: https://www.ameren.com/illinois/account/customer-service/bill/power-smart-pricing/prices
scan_interval: 28800
sensor:
- unique_id: PSP_0000
name: PSP 0000
select: "tbody > tr > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_0100
name: PSP 0100
select: "tbody > tr:nth-child(2) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_0200
name: PSP 0200
select: "tbody > tr:nth-child(3) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_0300
name: PSP 0300
select: "tbody > tr:nth-child(4) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_0400
name: PSP 0400
select: "tbody > tr:nth-child(5) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_0500
name: PSP 0500
select: "tbody > tr:nth-child(6) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_0600
name: PSP 0600
select: "tbody > tr:nth-child(7) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_0700
name: PSP 0700
select: "tbody > tr:nth-child(8) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_0800
name: PSP 0800
select: "tbody > tr:nth-child(9) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_0900
name: PSP 0900
select: "tbody > tr:nth-child(10) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_1000
name: PSP 1000
select: "tbody > tr:nth-child(11) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_1100
name: PSP 1100
select: "tbody > tr:nth-child(12) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_1200
name: PSP 1200
select: "tbody > tr:nth-child(13) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_1300
name: PSP 1300
select: "tbody > tr:nth-child(14) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_1400
name: PSP 1400
select: "tbody > tr:nth-child(15) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_1500
name: PSP 1500
select: "tbody > tr:nth-child(16) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_1600
name: PSP 1600
select: "tbody > tr:nth-child(17) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_1700
name: PSP 1700
select: "tbody > tr:nth-child(18) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_1800
name: PSP 1800
select: "tbody > tr:nth-child(19) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_1900
name: PSP 1900
select: "tbody > tr:nth-child(20) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_2000
name: PSP 2000
select: "tbody > tr:nth-child(21) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_2100
name: PSP 2100
select: "tbody > tr:nth-child(22) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_2200
name: PSP 2200
select: "tbody > tr:nth-child(23) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'
- unique_id: PSP_2300
name: PSP 2300
select: "tbody > tr:nth-child(24) > td:nth-child(2)"
unit_of_measurement: ¢
value_template: '{{ value.split("¢")[0] }}'