Homeassistant.update_entity -> Forced update failed

Hi guys,
I’m trying to do a script that needs to force a state update but i’m facing some problems:

Forced update failed. Component for device_tracker.tv_livingroom not loaded.

I’ve isolated just the part I want to update to be sure the issue was there and it seems to be the case… the code is below. Is the homeassistant.update_entity working only for some entities, is this is a bug or an issue with my code?
anyone already experienced the same?

update_tv_status:
  sequence:
    - service: homeassistant.update_entity
      entity_id: device_tracker.tv_livingroom

Thanks,
Diogo

Anyone :slight_smile:

Just for completeness the entity works well… just the force update doesn’t seem to work… code is below:

device_tracker:
  - platform: ping
    hosts:
      TV_LivingRoom: 192.168.1.155

Not sure if it is a bug or done on purpose but if I use binary_sensor instead of device tracker it seems to work:

binary_sensor:
  - platform: ping
    host: 192.168.1.155
    name: TV_LivingRoom
1 Like

I’m getting the same error testing via the Services Dev Tool on a device tracker.