当然,这是我的开关配置:
使用仅ping的二进制传感器,可以打开和关闭的开关模板。
- 平台:wake_on_lan名称:“ theatre_tv_on” mac_address:“ 40-cd-xx-xx-xx-xx-xx” - 平台:mqtt name:“ theatre_tv_off” state_topic:“/remoteapp/remoteapp/rememoteapp/remoteapp/mobles/moblay/mobles/bartion/bartioncast/ui_service/state/ui_service/state command_topic:“ command_topic:” complopic:“”:“”/remoteapp/tv/exterion_service/homeassistant/ancy/sendkey/sendkey“ payload_on:” key_poper“乐观:false qos:false qos:0 retain:false -platform:template switches:theAtreTV:value_template:value_template:”')}}“ turn_on:服务:switch.turn_on数据:entity_id:switch.theatre_tv_on turn_off:service:switch.turn_on data:entity_id:switch.theatre_tv_off
传感器:
传感器: - 平台:MQTT名称:“ TheAtre_TV_STATE” state_topic:“/remoteapp/Mobile/broadcast/ui_service/state/state” value_template:“ {%if states.theatre_tter_ttv_state.ttributes.attributes.stateType == none%}{states.sensor.theatre_tv_state.attributes.statepe}}}} {%endif%}“ json_attributes: - stateType -stateType -list_param-chinder_num -channel_num -channel_num -channel_name -prongogn -promogn-prongegname -prentime -endtime -endtime -endtime -displiTime -displayname -displayName-
二进制传感器:
- 平台:ping主机:xxx.xxx.xxx.xxx名称:剧院电视计数:2 scan_interval:2
我个人不认为它是理想的配置。是的,它可以正常工作,但我认为这很粗糙。好奇地看到别人想到什么。