我用的笨办法,窗帘的每个状态做了一个图片,通过状态展示不同的窗帘图片
- type: image
entity: sensor.chuanglian
image: /local/transparent.png
state_image:
'0': /local/ui/客厅窗帘/客厅窗帘001.png
'1': /local/ui/客厅窗帘/客厅窗帘001.png
'2': /local/ui/客厅窗帘/客厅窗帘002.png
'3': /local/ui/客厅窗帘/客厅窗帘003.png
'4': /local/ui/客厅窗帘/客厅窗帘004.png
'5': /local/ui/客厅窗帘/客厅窗帘005.png
'6': /local/ui/客厅窗帘/客厅窗帘006.png
'7': /local/ui/客厅窗帘/客厅窗帘007.png
'8': /local/ui/客厅窗帘/客厅窗帘008.png
'9': /local/ui/客厅窗帘/客厅窗帘009.png
'10': /local/ui/客厅窗帘/客厅窗帘010.png
'11': /local/ui/客厅窗帘/客厅窗帘011.png
'12': /local/ui/客厅窗帘/客厅窗帘012.png
'13': /local/ui/客厅窗帘/客厅窗帘013.png
'14': /local/ui/客厅窗帘/客厅窗帘014.png
'15': /local/ui/客厅窗帘/客厅窗帘015.png
'16': /local/ui/客厅窗帘/客厅窗帘016.png
'17': /local/ui/客厅窗帘/客厅窗帘017.png
'18': /local/ui/客厅窗帘/客厅窗帘018.png
'19': /local/ui/客厅窗帘/客厅窗帘019.png
'20': /local/ui/客厅窗帘/客厅窗帘020.png
'21': /local/ui/客厅窗帘/客厅窗帘021.png
'22': /local/ui/客厅窗帘/客厅窗帘022.png
'23': /local/ui/客厅窗帘/客厅窗帘023.png
'24': /local/ui/客厅窗帘/客厅窗帘024.png
'25': /local/ui/客厅窗帘/客厅窗帘025.png
'26': /local/ui/客厅窗帘/客厅窗帘026.png
'27': /local/ui/客厅窗帘/客厅窗帘027.png
'28': /local/ui/客厅窗帘/客厅窗帘028.png
'29': /local/ui/客厅窗帘/客厅窗帘029.png
'30': /local/ui/客厅窗帘/客厅窗帘030.png
'31': /local/ui/客厅窗帘/客厅窗帘031.png
'32': /local/ui/客厅窗帘/客厅窗帘032.png
'33': /local/ui/客厅窗帘/客厅窗帘033.png
'34': /local/ui/客厅窗帘/客厅窗帘034.png
'35': /local/ui/客厅窗帘/客厅窗帘035.png
'36': /local/ui/客厅窗帘/客厅窗帘036.png
'37': /local/ui/客厅窗帘/客厅窗帘037.png
'38': /local/ui/客厅窗帘/客厅窗帘038.png
'39': /local/ui/客厅窗帘/客厅窗帘039.png
'40': /local/ui/客厅窗帘/客厅窗帘040.png
'41': /local/ui/客厅窗帘/客厅窗帘041.png
'42': /local/ui/客厅窗帘/客厅窗帘042.png
'43': /local/ui/客厅窗帘/客厅窗帘043.png
'44': /local/ui/客厅窗帘/客厅窗帘044.png
'45': /local/ui/客厅窗帘/客厅窗帘045.png
'46': /local/ui/客厅窗帘/客厅窗帘046.png
'47': /local/ui/客厅窗帘/客厅窗帘047.png
'48': /local/ui/客厅窗帘/客厅窗帘048.png
'49': /local/ui/客厅窗帘/客厅窗帘049.png
'50': /local/ui/客厅窗帘/客厅窗帘050.png
'51': /local/ui/客厅窗帘/客厅窗帘051.png
'52': /local/ui/客厅窗帘/客厅窗帘052.png
'53': /local/ui/客厅窗帘/客厅窗帘053.png
'54': /local/ui/客厅窗帘/客厅窗帘054.png
'55': /local/ui/客厅窗帘/客厅窗帘055.png
'56': /local/ui/客厅窗帘/客厅窗帘056.png
'57': /local/ui/客厅窗帘/客厅窗帘057.png
'58': /local/ui/客厅窗帘/客厅窗帘058.png
'59': /local/ui/客厅窗帘/客厅窗帘059.png
'60': /local/ui/客厅窗帘/客厅窗帘060.png
'61': /local/ui/客厅窗帘/客厅窗帘061.png
'62': /local/ui/客厅窗帘/客厅窗帘062.png
'63': /local/ui/客厅窗帘/客厅窗帘063.png
'64': /local/ui/客厅窗帘/客厅窗帘064.png
'65': /local/ui/客厅窗帘/客厅窗帘065.png
'66': /local/ui/客厅窗帘/客厅窗帘066.png
'67': /local/ui/客厅窗帘/客厅窗帘067.png
'68': /local/ui/客厅窗帘/客厅窗帘068.png
'69': /local/ui/客厅窗帘/客厅窗帘069.png
'70': /local/ui/客厅窗帘/客厅窗帘070.png
'71': /local/ui/客厅窗帘/客厅窗帘071.png
'72': /local/ui/客厅窗帘/客厅窗帘072.png
'73': /local/ui/客厅窗帘/客厅窗帘073.png
'74': /local/ui/客厅窗帘/客厅窗帘074.png
'75': /local/ui/客厅窗帘/客厅窗帘075.png
'76': /local/ui/客厅窗帘/客厅窗帘076.png
'77': /local/ui/客厅窗帘/客厅窗帘077.png
'78': /local/ui/客厅窗帘/客厅窗帘078.png
'79': /local/ui/客厅窗帘/客厅窗帘079.png
'80': /local/ui/客厅窗帘/客厅窗帘080.png
'81': /local/ui/客厅窗帘/客厅窗帘081.png
'82': /local/ui/客厅窗帘/客厅窗帘082.png
'83': /local/ui/客厅窗帘/客厅窗帘083.png
'84': /local/ui/客厅窗帘/客厅窗帘084.png
'85': /local/ui/客厅窗帘/客厅窗帘085.png
'86': /local/ui/客厅窗帘/客厅窗帘086.png
'87': /local/ui/客厅窗帘/客厅窗帘087.png
'88': /local/ui/客厅窗帘/客厅窗帘088.png
'89': /local/ui/客厅窗帘/客厅窗帘089.png
'90': /local/ui/客厅窗帘/客厅窗帘090.png
'91': /local/ui/客厅窗帘/客厅窗帘091.png
'92': /local/ui/客厅窗帘/客厅窗帘092.png
'93': /local/ui/客厅窗帘/客厅窗帘093.png
'94': /local/ui/客厅窗帘/客厅窗帘094.png
'95': /local/ui/客厅窗帘/客厅窗帘095.png
'96': /local/ui/客厅窗帘/客厅窗帘096.png
'97': /local/ui/客厅窗帘/客厅窗帘097.png
'98': /local/ui/客厅窗帘/客厅窗帘098.png
'99': /local/ui/客厅窗帘/客厅窗帘099.png
'100': /local/ui/客厅窗帘/客厅窗帘100.png
tap_action:
action: none
hold_action:
action: none
style:
width: 4.45%
top: 65%
left: 31.8%
|