sehaas / ha_hisense_tv

Hisense TV integration for Home Assistant
MIT License
100 stars 22 forks source link

Hisense TV Sensor not available #34

Closed UncleLeoTheDad closed 1 year ago

UncleLeoTheDad commented 2 years ago

Hi!

I've gone through through the entire installation with MQTT (you helped me several weeks ago), but I am finding that the Hisense TV Sensor is always unavailable. I've tried to uninstall and reinstall the integration and have double checked my IP/Mac Address settings, but nothing seems to change the situation. The log files looks fairly healthy to me, but perhaps you will see something I am not.

Ultimately I am trying to restore this as I want to be able to get and set the current TV source via HA, but when I inspect the state object of the switch, sensor and media player, I don't see an entry for source. I'm guessing it's supposed to be under sensor and it's not showing as the sensor is unavailable.

Here's the log: Home Assistant Log on Startup

Here are some supporting images:

image image image
sehaas commented 2 years ago

The sensor should be available when the TV is ON. Under Developer -> States you won't see all attributes. You have to go to the Control pane of the sensor itself.

Screenshot 2022-09-17 at 9 45 27 AM

The sensor is read-only, so you won't be able to change the source. The media player should support it via the UI component, but I never tried it programatically.

UncleLeoTheDad commented 2 years ago

Apologies if I'm being a knucklehead, but I can't find that view that you are showing. If I open up the entities view:

image

And then click on sensor.hisense_tv, as it appears that you are, I get this:

image

Expanding "advanced settings" shows this:

image

Info shows this:

image

What am I doing wrong?

Thanks!

UncleLeoTheDad commented 2 years ago

Here are the associated logs with "hisense_tv" in them. Is it normal for the sensor to "Skip update" so often?

Full logs
2022-09-20 13:50:27.522 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hisense_tv which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-09-20 13:50:30.209 INFO (SyncWorker_2) [homeassistant.loader] Loaded hisense_aehw4a1 from homeassistant.components.hisense_aehw4a1
2022-09-20 13:50:38.705 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'wiz', 'template', 'persistent_notification', 'input_text', 'ifttt', 'input_boolean', 'blueprint', 'input_datetime', 'auth', 'lovelace', 'hardware', 'my', 'repairs', 'govee', 'zone', 'pushover', 'person', 'input_number', 'github', 'influxdb', 'roku', 'met', 'spotcast', 'hisense_tv', 'input_button', 'diagnostics', 'webostv', 'onboarding', 'netgear', 'esphome', 'automation', 'device_automation', 'nodered', 'blink', 'zwave_js', 'image', 'history', 'hacs', 'homeassistant_alerts', 'ffmpeg', 'timer', 'dlna_dmr', 'mobile_app', 'switch', 'spotify', 'counter', 'camera', 'tuya', 'hue', 'scene', 'remote', 'openweathermap', 'config', 'light', 'energy', 'sensor', 'honeywell', 'schedule', 'ipp', 'analytics', 'media_source', 'script', 'input_select', 'map', 'search', 'binary_sensor', 'application_credentials', 'harmony', 'tts', 'panel_custom', 'smartthings', 'sonos', 'watchman', 'zha', 'tag', 'sun', 'trace', 'system_health', 'tplink', 'mqtt', 'group', 'logbook', 'aarlo', 'victorsmartkill', 'myq', 'konnected', 'default_config', 'file_upload', 'xbox', 'dlna_dms', 'browser_mod', 'media_player', 'pyscript', 'apple_tv', 'upnp'}
2022-09-20 13:51:13.792 INFO (MainThread) [homeassistant.setup] Setting up hisense_tv
2022-09-20 13:51:13.793 INFO (MainThread) [homeassistant.setup] Setup of domain hisense_tv took 0.0 seconds
2022-09-20 13:51:13.818 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.hisense_tv
2022-09-20 13:51:13.820 INFO (MainThread) [homeassistant.components.switch] Setting up switch.hisense_tv
2022-09-20 13:51:13.821 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.hisense_tv
2022-09-20 13:51:13.822 DEBUG (MainThread) [custom_components.hisense_tv.media_player] async_setup_entry config: {'mac': '18:30:0c:41:fc:xx', 'name': 'Hisense TV', 'ip_address': '192.168.1.88', 'mqtt_in': 'hisense', 'mqtt_out': 'hisense'}
2022-09-20 13:51:13.822 DEBUG (MainThread) [custom_components.hisense_tv.switch] async_setup_entry config: {'mac': '18:30:0c:41:fc:xx', 'name': 'Hisense TV', 'ip_address': '192.168.1.xx', 'mqtt_in': 'hisense', 'mqtt_out': 'hisense'}
2022-09-20 13:51:13.822 DEBUG (MainThread) [custom_components.hisense_tv.sensor] async_setup_entry config: {'mac': '18:30:0c:41:fc:xx', 'name': 'Hisense TV', 'ip_address': '192.168.1.xx', 'mqtt_in': 'hisense', 'mqtt_out': 'hisense'}
2022-09-20 13:51:13.834 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:51:13.834 DEBUG (MainThread) [custom_components.hisense_tv.media_player] source_list
2022-09-20 13:51:13.834 DEBUG (MainThread) [custom_components.hisense_tv.media_player] device_class
2022-09-20 13:51:13.834 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:51:13.838 DEBUG (MainThread) [custom_components.hisense_tv.switch] device_class
2022-09-20 13:51:14.240 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:51:14.240 DEBUG (MainThread) [custom_components.hisense_tv.media_player] source_list
2022-09-20 13:51:14.240 DEBUG (MainThread) [custom_components.hisense_tv.media_player] state off
2022-09-20 13:51:14.240 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:51:14.240 DEBUG (MainThread) [custom_components.hisense_tv.media_player] state off
2022-09-20 13:51:14.240 DEBUG (MainThread) [custom_components.hisense_tv.media_player] device_class
2022-09-20 13:51:14.240 DEBUG (MainThread) [custom_components.hisense_tv.media_player] state off
2022-09-20 13:51:14.240 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:51:14.240 DEBUG (MainThread) [custom_components.hisense_tv.switch] device_class
2022-09-20 13:51:14.279 DEBUG (MainThread) [custom_components.hisense_tv.media_player] message_received_sourcelist R(0):
2022-09-20 13:51:14.279 DEBUG (MainThread) [custom_components.hisense_tv.switch] SWITCH message_received_state - turn on
2022-09-20 13:51:14.279 DEBUG (MainThread) [custom_components.hisense_tv.switch] device_class
2022-09-20 13:51:44.251 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:52:14.253 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:52:44.254 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:53:14.255 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:53:44.256 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:54:14.257 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:54:44.261 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:55:14.264 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:55:44.268 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:56:14.266 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Update. force=False
2022-09-20 13:56:14.293 DEBUG (MainThread) [custom_components.hisense_tv.sensor] _message_received R(0):
2022-09-20 13:56:44.273 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:57:14.275 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:57:44.276 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:58:14.290 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:58:35.095 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:58:37.518 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:58:43.124 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:58:44.292 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:58:45.408 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:59:14.294 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:59:44.295 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 13:59:45.256 DEBUG (MainThread) [custom_components.hisense_tv.media_player] message_received_turnoff
2022-09-20 13:59:45.256 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:59:45.256 DEBUG (MainThread) [custom_components.hisense_tv.media_player] source_list
2022-09-20 13:59:45.256 DEBUG (MainThread) [custom_components.hisense_tv.media_player] state off
2022-09-20 13:59:45.256 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:59:45.256 DEBUG (MainThread) [custom_components.hisense_tv.media_player] state off
2022-09-20 13:59:45.256 DEBUG (MainThread) [custom_components.hisense_tv.media_player] device_class
2022-09-20 13:59:45.256 DEBUG (MainThread) [custom_components.hisense_tv.media_player] state off
2022-09-20 13:59:45.256 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:59:45.257 DEBUG (MainThread) [custom_components.hisense_tv.switch] message_received_turnoff
2022-09-20 13:59:45.257 DEBUG (MainThread) [custom_components.hisense_tv.switch] device_class
2022-09-20 13:59:45.257 DEBUG (MainThread) [custom_components.hisense_tv.sensor] message_received_turnoff
2022-09-20 13:59:55.025 DEBUG (MainThread) [custom_components.hisense_tv.media_player] message_received_state sourceswitch
2022-09-20 13:59:55.029 DEBUG (MainThread) [custom_components.hisense_tv.switch] SWITCH message_received_state - turn on
2022-09-20 13:59:55.029 DEBUG (MainThread) [custom_components.hisense_tv.switch] device_class
2022-09-20 13:59:55.030 DEBUG (MainThread) [custom_components.hisense_tv.sensor] message_received_turnon
2022-09-20 13:59:55.076 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:59:55.076 DEBUG (MainThread) [custom_components.hisense_tv.media_player] source_list
2022-09-20 13:59:55.077 DEBUG (MainThread) [custom_components.hisense_tv.media_player] state on
2022-09-20 13:59:55.077 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:59:55.077 DEBUG (MainThread) [custom_components.hisense_tv.media_player] state on
2022-09-20 13:59:55.077 DEBUG (MainThread) [custom_components.hisense_tv.media_player] volume_level 0
2022-09-20 13:59:55.077 DEBUG (MainThread) [custom_components.hisense_tv.media_player] is_volume_muted False
2022-09-20 13:59:55.077 DEBUG (MainThread) [custom_components.hisense_tv.media_player] media_content_type
2022-09-20 13:59:55.077 DEBUG (MainThread) [custom_components.hisense_tv.media_player] media_title None
2022-09-20 13:59:55.077 DEBUG (MainThread) [custom_components.hisense_tv.media_player] media_series_title None
2022-09-20 13:59:55.077 DEBUG (MainThread) [custom_components.hisense_tv.media_player] source
2022-09-20 13:59:55.078 DEBUG (MainThread) [custom_components.hisense_tv.media_player] device_class
2022-09-20 13:59:55.078 DEBUG (MainThread) [custom_components.hisense_tv.media_player] state on
2022-09-20 13:59:55.078 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:59:55.153 DEBUG (MainThread) [custom_components.hisense_tv.media_player] message_received_sourcelist R(0):
2022-09-20 13:59:55.153 DEBUG (MainThread) [custom_components.hisense_tv.switch] SWITCH message_received_state - turn on
2022-09-20 13:59:55.153 DEBUG (MainThread) [custom_components.hisense_tv.switch] device_class
2022-09-20 13:59:55.154 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:59:55.155 DEBUG (MainThread) [custom_components.hisense_tv.media_player] supported_features
2022-09-20 13:59:55.155 DEBUG (MainThread) [custom_components.hisense_tv.media_player] async_select_source HDMI 1
2022-09-20 14:00:14.323 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Update. force=True
2022-09-20 14:00:14.357 DEBUG (MainThread) [custom_components.hisense_tv.sensor] _message_received R(0):
2022-09-20 14:00:44.323 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 14:01:14.326 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 14:01:44.338 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 14:02:14.338 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
2022-09-20 14:02:44.340 DEBUG (MainThread) [custom_components.hisense_tv.sensor] Skip update
UncleLeoTheDad commented 2 years ago

Apologies if I'm being a knucklehead, but I can't find that view that you are showing. If I open up the entities view: [image: image.png]

And then click on sensor.hisense_tv, as it appears that you are, I get this: [image: image.png]

Expanding "advanced settings" shows this: [image: image.png]

Info shows this: [image: image.png]

What am I doing wrong?

Thanks!

On Sat, Sep 17, 2022 at 3:53 AM sebastian haas @.***> wrote:

The sensor should be available when the TV is ON. Under Developer -> States you won't see all attributes. You have to go to the Control pane of the sensor itself. [image: Screenshot 2022-09-17 at 9 45 27 AM] https://user-images.githubusercontent.com/283482/190846352-72d7b7e7-38fb-4ea4-9d87-8f4e861ae997.png

The sensor is read-only, so you won't be able to change the source. The media player should support it via the UI component, but I never tried it programatically.

— Reply to this email directly, view it on GitHub https://github.com/sehaas/ha_hisense_tv/issues/34#issuecomment-1250023715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABCQKE2T4PJCKGXMS2FVQDV6V2GLANCNFSM6AAAAAAQBLR5G4 . You are receiving this because you authored the thread.Message ID: @.***>

sehaas commented 2 years ago

If I click on the sensor, there is the control icon in the upper right corner.

Screenshot 2022-10-12 at 9 14 25 PM

It looks like you have a newer version of HA. I can't tell you where they moved it.

sehaas commented 2 years ago

Here are the associated logs with "hisense_tv" in them. Is it normal for the sensor to "Skip update" so often?

yes. the integration only force updates the TV settings every 5 minutes. I added this limitation, because I don't know how the TV behaves if it gets flooded with MQTT requests. If some settings/inputs change in meantime, the TV broadcasts the change itself.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 42 days with no activity. Remove stale label or comment or this will be closed in 7 days