How do I get a temperature measurement from a switch shown?

My Fritz switches have temperature sensors in them.
switch
I would like to display the temperature (in appdaemon dashboard)
How do I do that?

Provided this shows up in HA, use the attributes:
{{state_attr("switch.fritz_box_name","temperature")}}

EDIT: Ignore me, looks like you wanted AppDaemon… No idea then I don’t use it. sorry

1 Like

Just add the attribute to the name of the entity. If your switch is named switch.my_switch, your widget would look like:

fritz_temp:
  widget_type: sensor
  entity: switch.my_switch.temperature

Also, better to ask in the HADashboard category since this category is about writing appdaemon apps in python for use with or without HADashboard.

1 Like

Ahh ok, thankyou will do, and btw. it worked perfectly :slight_smile:

1 Like