Open sdrapha opened 2 months ago
Actually, after spending time filling the bug and reading through the debug logs, I figured a workaround:
to include verify_ssl: false
inside the form_submit
block
multiscrape:
- resource: 'https://host/sensors'
scan_interval: 300
verify_ssl: false
form_submit:
verify_ssl: false
nonetheless, that was a breaking change, and it's also undocumented on the readme page
You are right, that should have been mentioned and documented. I updated the release notes for those that still need to upgrade and will update the README accordingly. So your workaround is actually is a solution.
Version of the custom_component 7.0.2
Configuration
Integration config:
Click to expand YAML
```yaml multiscrape: - resource: 'https://mocreo_hub.reverse_proxy.com/sensors' scan_interval: 300 verify_ssl: false form_submit: resource: 'https://mocreo_hub.reverse_proxy.com/login' select: 'body > div > div > div > div > div.card-body > form' input: passwd: !secret mocreo_password sensor: - unique_id: mocreo_sensor_1_serial name: Mocreo sensor_1_serial device_class: temperature state_class: measurement unit_of_measurement: '°F' select_list: 'div:has(>.card-header):-soup-contains("sensor_1_serial")>div>div>div' value_template: '{{ value.split(",")[2].split("°")[0] | trim | float }}' attributes: - name: model select_list: 'div:has(>.card-header):-soup-contains("sensor_1_serial")>div>div>div' value_template: '{{ value.split(",")[0] | trim }}' - name: serialnumber select_list: 'div:has(>.card-header):-soup-contains("sensor_1_serial")>div>div>div' value_template: '{{ value.split(",")[1].split(":")[1] | trim }}' - name: temperature select_list: 'div:has(>.card-header):-soup-contains("sensor_1_serial")>div>div>div' value_template: '{{ value.split(",")[2].split("°")[0] | trim }}' - name: unit_of_measurement select_list: 'div:has(>.card-header):-soup-contains("sensor_1_serial")>div>div>div' value_template: '°{{ value.split(",")[2].split("°")[1] | trim}}' - resource: 'https://mocreo_hub.reverse_proxy.com/nodes' scan_interval: 1000 verify_ssl: false form_submit: resource: 'https://mocreo_hub.reverse_proxy.com/login' select: 'body > div > div > div > div > div.card-body > form' input: passwd: !secret mocreo_password sensor: - unique_id: mocreo_sensor_1_serial_battery name: Mocreo sensor_1_serial battery device_class: battery state_class: measurement unit_of_measurement: '%' select_list: 'tr:-soup-contains("sensor_1_serial")>td' value_template: '{{ value.split(",")[3].split("%")[0] | trim | float }}' attributes: - name: type select_list: 'tr:-soup-contains("sensor_1_serial")>td' value_template: '{{ value.split(",")[0] | trim }}' - name: serialnumber select_list: 'tr:-soup-contains("sensor_1_serial")>td' value_template: '{{ value.split(",")[1] | trim }}' - name: battery select_list: 'tr:-soup-contains("sensor_1_serial")>td' value_template: '{{ value.split(",")[3] | trim }}' - name: signal select_list: 'tr:-soup-contains("sensor_1_serial")>td' value_template: '{{ value.split(",")[4] | trim }}' - name: online select_list: 'tr:-soup-contains("sensor_1_serial")>td>span.text-success' value_template: '{{ iif("" in value,"Online","Offline") }}' - name: last_seen select_list: 'tr:-soup-contains("sensor_1_serial")>td' value_template: '{{ value.split(",")[6] | trim }}' - name: version select_list: 'tr:-soup-contains("sensor_1_serial")>td' value_template: '{{ value.split(",")[7] | trim }}' - name: model select_list: 'tr:-soup-contains("sensor_1_serial")>td' value_template: '{{ value.split(",")[8] | trim }}' ```Describe the bug
7.0.2 Broken, had to go back to 7.0.1 With 7.0.2, I'm not getting past the login page, the logged response says I didn't provide a valid password.
Debug log