Vanderbilt SPC Component

I´ve just started to try out this component and it will be very useful for me.

But I still have some questions:

  • Where is the file that contains entity settings, e.g. where can I change an entity_id to not be hidden (default setting)? Web UI doesn’t seem tho handle this.

  • How can I reload or update entity_id´s that are automatically imported with his component from SPC? Example: When I first installed this component I had two different areas imported from SPC, now after changing In SPC EDP-settings to exclude one of these Areas it still visible in HA but it doesen´t receive any state changes. I want it to disapear without need to set attribute hidden.

Hello,

I also have problem with SPC Component configuration.

I get “Invalid config error”
-“The following components and platforms could not be set up:
spc(https://home-assistant.io/components/spc/)
Please check your config.”

When I add:

spc:
api_url: https://192.168.1.87:8088
ws_url: ws://192.168.1.87:8088

to the configuration.yaml file.

Can ay help me with this?

Here is the log from my problem:

Error during setup of component spc
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 142, in _async_setup_component
result = await component.async_setup(hass, processed_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/spc.py”, line 64, in async_setup
areas = yield from api.get_areas()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/spc.py”, line 180, in get_areas
return (yield from self._get_data(‘area’))
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/spc.py”, line 205, in _get_data
data = yield from self._call_web_gateway(resource)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/spc.py”, line 226, in _call_web_gateway
response = yield from action(url)
File “/srv/homeassistant/lib/python3.5/site-packages/aiohttp/client.py”, line 207, in _request
raise RuntimeError(‘Session is closed’)
RuntimeError: Session is closed

Markus, did you ever solve this? Im having the same issue.

I figured it out, solution posted here:
http://spc-web-gw.lundix.se/forum/viewtopic.php?f=21&t=61#p164

Hi Markus,

Tried your solution of downloading 0.58 and replacing spc.py in the 3 locations.

I’m now seeing this in my log

2018-08-09 10:56:13 WARNING (MainThread) [homeassistant.loader] You are using a custom component for switch.hadockermon which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-08-09 10:56:14 ERROR (MainThread) [homeassistant.components.spc] SPC Web Gateway returned http status 401, response .
2018-08-09 10:56:14 ERROR (MainThread) [homeassistant.components.spc] SPC Web Gateway returned http status 401, response .
2018-08-09 10:56:14 ERROR (MainThread) [homeassistant.components.spc] Failed to connect to websocket: Bad status code: 401

2018-08-09 10:56:44 ERROR (MainThread) [homeassistant.components.spc] Failed to connect to websocket: Bad status code: 401

From SPC gateway, my config.xml is: (disabled SSL - not apparent this is required on the HA component page)

<config>
   <enable_get_auth>yes</enable_get_auth>
   <enable_put_auth>yes</enable_put_auth>
   <enable_ws_auth>yes</enable_ws_auth>
   <enable_edp_encryption>yes</enable_edp_encryption>
   <enable_ssl_encryption>no</enable_ssl_encryption>
   <access_control_list>-0.0.0.0/0,+192.168.1.0/24</access_control_list>
   <http_port>8088</http_port>
   <tcp_port>16000</tcp_port>
   <spc_id>1000</spc_id>
   <gateway_id>1100</gateway_id>
   <spc_time_diff>0</spc_time_diff>
   <spc_dst>yes</spc_dst>
</config>

Relevant parts of configuration.yaml

#Vanderbilt SPC
spc:
  api_url: http://192.168.1.16:8088
  ws_url: ws://192.168.1.16:8088

Any thoughts?

EDIT:
Solved, need to also disable any of the *_auth and re-run spc-web-gateway -A

1 Like

Hi,

I have setup the SPC component, with substitution of 0.58 version and working fine: all binary sensor are loaded and I can activate/deactivate the alarm.
But I have notice that there is no history on binary sensor, is it normal? Why?

Thanks

Using the SPC alarm in lovelace, where can I put settings so it will require a PIN code to arm/disarm?

Extract from lovelace yaml

cards:
      - id: alarm_shed_panel_custom
        type: custom:alarm_control_panel-card
        entity: alarm_control_panel.shed
        show_keypad: true
        title: Shed Alarm
        style: '--alarm-color-disarmed: var(--label-badge-blue);'
        states:
          - arm_home
          - arm_away

With SPC component, it appears you can only arm/disarm alarm without needing to enter PIN?

Hey,
Did you find a solution for adding pin-code ?

Hi
Does anyone know a way to integrate a technical zone as a binary sensor in home assistant?
I’m using Spc web gateway between the alarm panel and my home assistant.
I can only see alarm, entry/exit and fire.

Technical zones are supported as binary sensors from 0.106. =)

Hi, I´ve updated to the latest 0.106.2 but I cant see my Technical zones ? is there something I need to do?

They should show up among the entities, named binary_sensor.zonename upon restart with the new version (but I guess a restart is included in the upgrade process)…

Yeah nothing new, can only se the old

Technical zones is the internally functions like cabinet tamper and so on ?

Zonetype “Technical” is a type you can select on an input, like for example Alarm, Fire, or Entry/Exit.
I use it to create some special timer conditions, but I also virtual (supported from spc fw 3.11) Technical zones to track the status of mappingkeys and outputs.

1 Like

Hi,
I did install HA with the spc web gateway on RBPi4. I can see all my sensors and their status are updating on the fly and appearing in the logbook of HA.

My biggest concern is when I arm or disarm the alarm system, the statuses are sometimes seen by the HA and present in the logbook but most of time not. So if I disarm with HA the alarm system (panelcard) it stays for example armed in HA and nothing is seen in the logbook (but alarm system is really unarmed) This behaviour is also present when arming/disarming from the keypad of the alarm system or apk. HA is not getting the latest alarm status condition.
In the logs of the alarm system, I can see the status changes.

Any suggestions? Can I force HA to retrieve the latest alarm status every x seconds, when I restart HA then it retrieves again the correct value of the alarm system.

Please help, without this I can not configure automations etc…

Works fine for me, I suggest that you check the EDP-settings in SPC, filters and polling time. Mine look like this:


Hi,

My settings are similar. I’m running firmware version SPC5300 | Ver. 3.11.1. Under filter I don’t have Omraden: 1: Huset 2:Las-entré …

On my 30 :slight_smile: tries arming/disarming, only 1 appeared in the logbook.

Panel card is not updating even it’s disarmed.

Entity tells wrong info:

Desperate… :confused: