This repository has been archived by the owner on Nov 4, 2023. It is now read-only.
type sensor can't add icon? #759
Answered
by
sbrandsborg
boyphongsakorn
asked this question in
Q&A
-
{ this is not work, how to add icon in Door Sensor |
Beta Was this translation helpful? Give feedback.
Answered by
sbrandsborg
Aug 26, 2021
Replies: 1 comment
-
Hi, Think you need to use TYPES.SENSOR_ICON to get an icon. As far as i know, the TYPES.SENSOR is only for showing a value in the middle of the tile
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
boyphongsakorn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Think you need to use TYPES.SENSOR_ICON to get an icon. As far as i know, the TYPES.SENSOR is only for showing a value in the middle of the tile
{ position: [1, 1], type: TYPES.SENSOR_ICON, title: 'Hot water', id: 'sensor.hot_water', states: { on: "On", off: "Off" }, icons: { on: 'mdi-hot-tub', off: 'mdi-hot-tub' }, }