ArveVM / MyAssistedHome

HomeAssistant, selfhosting (unRaid, Dockers) and other stuff
22 stars 2 forks source link

dashcast sensor #86

Open ArveVM opened 10 months ago

ArveVM commented 10 months ago

fix sensor with issues on dashcast as attribute,,, wth,,????

sensor get off-value even if template gives True,, this have to be one of those nooooooooob issues :)

templating:

Test-attr.:  {{ state_attr('media_player.hallway_nest_hub', 'app_name')  }} 
{{ state_attr('media_player.hallway_nest_hub', 'app_name') == 'DashCast' }} 
{{ is_state_attr('media_player.hallway_nest_hub', 'app_name', 'DashCast') }}

--
Sensor fra yaml:   {{ states('binary_sensor.hallway_nest_hub_dashcast') }} 
template brukt:    {{ is_state_attr('media_player.hallway_nest_hub', 'app_name', 'DashCast') }}