Vanderbil SPC Alarm Component

Homeassistant 0.71
Is anyone running the Vanderbilt (Siemens) SPC Alarm homeassistant component successfully?

configuration.yaml
spc:
api_url: https://get_user:[email protected]:8088/
ws_url: ws://ws_user:[email protected]:8088/

Tried both with and without the usr/pass

Log says:
2018-06-06 22:38:21 ERROR (MainThread) [homeassistant.components.spc] SPC Web Gateway returned http status 401, response
2018-06-06 22:38:21 ERROR (MainThread) [homeassistant.setup] Error during setup of component spc
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/setup.py”, line 143, in _async_setup_component
hass, processed_config)
File “/usr/lib/python3.6/site-packages/homeassistant/components/spc.py”, line 64, in async_setup
areas = yield from api.get_areas()
File “/usr/lib/python3.6/site-packages/homeassistant/components/spc.py”, line 180, in get_areas
return (yield from self._get_data(‘area’))
File “/usr/lib/python3.6/site-packages/homeassistant/components/spc.py”, line 200, in _get_data
data = yield from self._call_web_gateway(resource)
File “/usr/lib/python3.6/site-packages/homeassistant/components/spc.py”, line 221, in _call_web_gateway
response = yield from action(url)
File “/usr/lib/python3.6/site-packages/aiohttp/client.py”, line 209, in _request
raise RuntimeError(‘Session is closed’)
RuntimeError: Session is closed

anyone got this component working?

It’s been broken since 0.65 when HASS switched to a newer version of aiohttp which broke several components. It worked fine before, you can downgrade to 0.64 and it will work. Hope someone with a bit of knowledge of the component can have a look at it soon, it’s been broken for months now.

Thread necro!

Documentation on the component here at HA is wrong.

First, the ws url is wrong, it should be:
ws://<SPC_GATEWAY_IP>:8088/ws/spc

If you’re running the spc gateway on the same computer as HA, port 8089 can be used instead.

Second: If you want the motion detectors etc work, they need to be unhidden in the UI by creating a customize.yaml and add some info there. The name of your sensors will of course be different, and you can find them in :8123/developer-tools/states

/config/customize.yaml:

binary_sensor.ir_garage: 
  hidden: false

…and this needs to be added if you haven’t already:

/config/configuration.yaml:

homeassistant:
  customize: !include customize.yaml
1 Like

Component has now been updated to default to non-hidden devices and should no longer need the extra customization from (I guess) next release.

Hi, I have managed to get SPC Gateway to work, I can see my door sensors and status for them. I can set alarm to on or off for different areas. But I can’t get the motion sensors to work. I have tried what is written here, with or without “hidden: false” but with no success.

Is it anything on the SPC side that must be done also?

Tnx in advance
/C