You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose that the on_error setting for a sensor should include an icon selection. I currently use multiscrape to create multiple sensors from my Cisco Deskpro video phone, one of which is call status. If the Deskpro is on a call, I can grab the status using select: "Status > Call > Status". However, if it is not on a call then there is no "Status > Call" section in the XML result.
In this case I use on_error to set the default state as "idle". Unfortunately, I cannot change the icon if the result was the "on_error" state.
I would like to propose that the on_error setting for a sensor should include an icon selection. I currently use multiscrape to create multiple sensors from my Cisco Deskpro video phone, one of which is call status. If the Deskpro is on a call, I can grab the status using select: "Status > Call > Status". However, if it is not on a call then there is no "Status > Call" section in the XML result.
In this case I use on_error to set the default state as "idle". Unfortunately, I cannot change the icon if the result was the "on_error" state.
Here is a snippet of my current config:
multiscrape:
resource: "https://192.168.1.23/status.xml"
authentication: basic
verify_ssl: false
username: !secret deskpro_username
password: !secret deskpro_password
sensor:
name: Deskpro Call Status
select: "Status > Call > Status"
on_error:
value: default
default: idle
icon: >-
{% if value == 'Connected' %}
mdi:phone-in-talk
{% else %}
mdi:phone-hangup
{% endif %}
The text was updated successfully, but these errors were encountered: