I have a hikvision camera configured in HA. I can see the stream in lovelace but cannot cast to any chromecast device.
This is my camera config;
camera:
- platform: generic
name: Drive
still_image_url: http://192.168.1.64/Streaming/channels/1/picture
username: xxxx
password: xxxx
stream_source: rtsp://192.168.1.64:554/ch1/main/av_stream
authentication: digest
lovelace:
- camera_view: live
entity: camera.drive
type: picture-entity
this is an automation I was trying;
- alias: Camera_test 2
initial_state: 'on'
trigger:
platform: state
entity_id: binary_sensor.ip_camera_motion
to: 'on'
action:
- service: camera.play_stream
data:
entity_id: camera.drive
media_player: media_player.hall_display
This is the error
Sun Dec 22 2019 15:18:10 GMT+0000 (Greenwich Mean Time)
Error while executing automation automation.camera_test_2. Unknown error for call_service at pos 1:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 443, in action
await script_obj.async_run(variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 190, in async_run
await self._handle_action(action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 273, in _handle_action
await self._actions[_determine_action(action)](action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 355, in _async_call_service
context=context,
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 97, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context
File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 205, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 336, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 360, in _handle_service_platform_call
await func(entity, data)
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 679, in async_handle_play_stream_service
url = request_stream(hass, source, fmt=fmt, keepalive=camera_prefs.preload_stream)
File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 48, in request_stream
raise HomeAssistantError("Stream integration is not set up.")
homeassistant.exceptions.HomeAssistantError: Stream integration is not set up.