hass-sectoralarm's People
Forkers
johanfalk84 marcusramberg loial sebastian-steinmann willeraab linusmasser axlthorell petterl magnulf bohtho kristomi smithimagehass-sectoralarm's Issues
Thermometers not added
Running 0.103.6 and the alarm integration works as intended, with the alarm panel up and running, but no thermometers are added. I have made sure to have thermometers: true
in the config of course. Is there any additional step to take, or is this feature not active at the moment?
The log file shows that the temperature are fetched at least:
2020-01-11 15:21:31 DEBUG (MainThread) [custom_components.sector_alarm] Fetched temperatures: [{'Id': None, 'Label': 'Sovrum', 'SerialNo': '24901275A35', 'Temprature': '21', 'DeviceId': None}, {'Id': None, 'Label': 'Kök', 'SerialNo': '24401272F01', 'Temprature': '20', 'DeviceId': None}, {'Id': None, 'Label': 'Källare', 'SerialNo': '24101274D53', 'Temprature': '18', 'DeviceId': None}]
Consistent errors now after upgrading
0.93.x and 0.94
2019-06-06 20:57:39 ERROR (MainThread) [homeassistant.setup] Error during setup of component sector_alarm
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 153, in _async_setup_component
hass, processed_config)
File "/config/custom_components/sector_alarm/init.py", line 66, in async_setup
await sector_data.update()
File "/config/custom_components/sector_alarm/init.py", line 125, in update
*[task() for task in self._update_tasks])
File "/config/custom_components/sector_alarm/init.py", line 154, in _update_temperatures
for temperature in temperatures
File "/config/custom_components/sector_alarm/init.py", line 154, in
for temperature in temperatures
TypeError: string indices must be integers
Setup errors
I changed version to 'v1_1_71' in the config, however the component does not start.
Now I'm getting this in my log:
2019-09-17 19:47:58 ERROR (MainThread) [homeassistant.setup] Error during setup of component sector_alarm
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/asyncsector/asyncsector.py", line 39, in login
AsyncSector.Base + AsyncSector.Login, json=self._auth)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 497, in _request
await resp.start(conn)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 844, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 588, in read
await self._waiter
concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 168, in _async_setup_component
hass, processed_config
File "/config/custom_components/sector_alarm/init.py", line 63, in async_setup
if not await async_sector.login():
File "/usr/local/lib/python3.7/site-packages/asyncsector/asyncsector.py", line 45, in login
return True
File "/usr/local/lib/python3.7/site-packages/async_timeout/init.py", line 45, in exit
self._do_exit(exc_type)
File "/usr/local/lib/python3.7/site-packages/async_timeout/init.py", line 92, in _do_exit
raise asyncio.TimeoutError
concurrent.futures._base.TimeoutError
Any clue?
Configuration error when validating config
Hi, thanks for a great component. I have a minor issue. When doing a configuration validation from the HA web-gui, I get this error:
Invalid config for [sector_alarm]: required key not provided @ data['platform']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sector_alarm/
No big deal, but this error results in that I can't restart home assistant from the webpage after making changes.
Integration no longer works with HA, missing manifest?
The sector alarm integration no longer works. HA complains about a missing version field in the manifest.json.
It seems that HA now has a bunch of requirements for a custom integration to run. I've tried throwing together a basic manifest.json but I still can't get the integration to run.
Invalid version...
Is this broken? I cant get it to work. I have the following in my configuration.yaml:
Using Home assistant 0.98.2
sector_alarm:
email: [email protected]
password: Mysecret
alarm_id: "12345678"
But I'm getting the following in the log:
2019-10-09 08:58:42 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sector_alarm 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.
2019-10-09 08:58:47 ERROR (MainThread) [homeassistant.setup] Error during setup of component sector_alarm
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 168, in _async_setup_component
hass, processed_config
File "/home/homeassistant/.homeassistant/custom_components/sector_alarm/init.py", line 71, in async_setup
await sector_data.update()
File "/home/homeassistant/.homeassistant/custom_components/sector_alarm/init.py", line 130, in update
*[task() for task in self._update_tasks])
File "/home/homeassistant/.homeassistant/custom_components/sector_alarm/init.py", line 153, in _update_temperatures
temperatures = await self._async_sector.get_temperatures()
File "/srv/homeassistant/lib/python3.6/site-packages/asyncsector/asyncsector.py", line 76, in get_temperatures
return await get_json(request)
File "/srv/homeassistant/lib/python3.6/site-packages/asyncsector/util.py", line 19, in get_json
raise Exception("Error from api: %s" % result)
Exception: Error from api: "INVALID_VERSION"
Also tried with the
version: 'v1_1_70'
but still the same issue
Error from api: "INVALID_VERSION"
My log is saying this:
2019-09-15 23:31:09 ERROR (MainThread) [homeassistant.setup] Error during setup of component sector_alarm
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 168, in _async_setup_component
hass, processed_config
File "/config/custom_components/sector_alarm/init.py", line 71, in async_setup
await sector_data.update()
File "/config/custom_components/sector_alarm/init.py", line 130, in update
*[task() for task in self._update_tasks])
File "/config/custom_components/sector_alarm/init.py", line 153, in _update_temperatures
temperatures = await self._async_sector.get_temperatures()
File "/usr/local/lib/python3.7/site-packages/asyncsector/asyncsector.py", line 76, in get_temperatures
return await get_json(request)
File "/usr/local/lib/python3.7/site-packages/asyncsector/util.py", line 19, in get_json
raise Exception("Error from api: %s" % result)
Exception: Error from api: "INVALID_VERSION"
I guess this has something to do with the recently added version code..?
version: <version of the sector alarm api, default is 'v1_1_70'>
I also guess the default version 'v1_1_70' is not correct for my system?
How and where can I see what version I have?
Or, is this error due to a change made by Sector Alarm in their API which requires new/updated py-files?
I'm running 0.98.5 and have not been able to integrate this HASS-SectorAlarm component the last 1-2 week(s).
Invalid Config (!secret)
"
The following components and platforms could not be set up:
sector-alarm
"
When i try to save the login etc, in the secret.yml file.
Works fine if the details are in the configuration.yml...
Migrate folder structure to support HACS
https://hacs.netlify.com/developer/integration/
Seems we need to change the folder structure?
Loads of issues in the log on reboot
I ran into an issue today after restarting Hassio, and after that it just doesn't load the component at all.
I have no idea what may have happened, perhaps some changes from Sector Alarm's side? I downloaded the latest py files yesterday to my RPi.
I have attached the text from the log below for some more information.
Traceback (most recent call last):
File "/config/deps/lib/python3.7/site-packages/asyncsector/asyncsector.py", line 36, in login
AsyncSector.Base + AsyncSector.Login, json=self._auth)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 497, in _request
await resp.start(conn)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 844, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 588, in read
await self._waiter
concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 151, in _async_setup_component
hass, processed_config)
File "/config/custom_components/sector_alarm/init.py", line 58, in async_setup
if not await async_sector.login():
File "/config/deps/lib/python3.7/site-packages/asyncsector/asyncsector.py", line 42, in login
return True
File "/usr/local/lib/python3.7/site-packages/async_timeout/init.py", line 45, in exit
self._do_exit(exc_type)
File "/usr/local/lib/python3.7/site-packages/async_timeout/init.py", line 92, in _do_exit
raise asyncio.TimeoutError
concurrent.futures._base.TimeoutError
Mulitple warnings - Update of alarm... taking over 10 seconds
About every 15 minutes I get the following warning in the log. Not sure if it has any impact on the functionality, though.
Update of alarm_control_panel.sector_alarm_02602218 is taking over 10 seconds
14:54 core.py (WARNING)
Update of alarm_control_panel.sector_alarm_02602218 is taking over 10 seconds
14:38 core.py (WARNING)
Update of alarm_control_panel.sector_alarm_02602218 is taking over 10 seconds
13:52 core.py (WARNING)
Feature request: Locks
I have a Yale Doorman which is integrated into the alarm system. It would be very nice to control this. I can beta-test if you want to.
Anyone want to get locks working?
Here is something to get started with:
https://github.com/perbrage/sectoralarm
Error loading with Hass 0.81.2
Error while loading the component.
Home Assistant
0.81.2
2018-11-01 17:53:49 ERROR (MainThread) [homeassistant.setup] Error during setup of component sector_alarm
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/homeassistant/setup.py", line 145, in _async_setup_component
hass, processed_config)
File "/root/.homeassistant/custom_components/sector_alarm.py", line 82, in async_setup
CONF_CODE: config[DOMAIN][CONF_CODE]
TypeError: load_platform() missing 1 required positional argument: 'hass_config'
Unable to prepare setup
Got an error after setting configuration files. Do I need something more?
Unable to prepare setup for platform sector_alarm.alarm_control_panel: Platform not found (No module named 'homeassistant.components.alarm_control_panel.const').
Using #27
Conflict with Mosquitto MQTT
Hi,
The sectoralarm functions perfectly, until I also installed the Plejd addon from icanos https://github.com/icanos/hassio-plejd and the Mosquitto MQTT broker with the nescessary configuration. If I change the configuration to hassio default configuration Sectoralarm works fine again, but Plejd does not. How come the MQTT broker affects sector alarm?
Error after upgrading to
My connection to Sector fails to connect after upgrading to 0.96.5. What could be the problem?
//Per
2019-07-28 00:31:26 ERROR (MainThread) [homeassistant.setup] Error during setup of component sector_alarm
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/asyncsector/asyncsector.py", line 39, in login
AsyncSector.Base + AsyncSector.Login, json=self._auth)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 476, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 522, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 854, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 955, in _create_direct_connection
traces=traces), loop=self._loop)
concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 153, in _async_setup_component
hass, processed_config)
File "/config/custom_components/sector_alarm/init.py", line 58, in async_setup
if not await async_sector.login():
File "/usr/local/lib/python3.7/site-packages/asyncsector/asyncsector.py", line 45, in login
return True
File "/usr/local/lib/python3.7/site-packages/async_timeout/init.py", line 45, in exit
self._do_exit(exc_type)
File "/usr/local/lib/python3.7/site-packages/async_timeout/init.py", line 92, in _do_exit
raise asyncio.TimeoutError
concurrent.futures._base.TimeoutError
Issue with using the shared client session
I dont really know what component or integration is causing the problem or why, but it seems that the shared client session used by the new version of hass is creating problems.
I could try disabling other plugins to find the culprint, but seems just creating a new session works just as fine.
I'll make a PR for it.
Looses state of alarm several times a day.
2018-10-25 23:21:00 WARNING (MainThread) [homeassistant.helpers.entity] Update of alarm_control_panel.sector_alarm_01108298 is taking over 10 seconds
And then the state of the alarm goes into unknown.
Error with Hass.io version 0.103
After upgrading to Hass.io 0.103 this does not work. See error message below:
Error while setting up platform sector_alarm
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/config/custom_components/sector_alarm/alarm_control_panel.py", line 25, in async_setup_platform
async_add_entities([SectorAlarmPanel(sector_hub, code, code_format)])
TypeError: Can't instantiate abstract class SectorAlarmPanel with abstract methods supported_features
Loads of errors when starting Home assistant v0.88.0
2019-02-20 23:35:21 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.sector_alarm.sensor. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/loader.py", line 147, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 962, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.sector_alarm.sensor'; 'custom_components.sector_alarm' is not a package
2019-02-20 23:35:21 WARNING (MainThread) [homeassistant.loader] You are using a custom component for sensor.sector_alarm 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.
2019-02-20 23:35:21 WARNING (MainThread) [homeassistant.loader] Integrations need to be in their own folder. Change sensor/sector_alarm.py to sector_alarm/sensor.py. This will stop working soon.
2019-02-20 23:35:21 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.sector_alarm.alarm_control_panel. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/loader.py", line 147, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 962, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.sector_alarm.alarm_control_panel'; 'custom_components.sector_alarm' is not a package
2019-02-20 23:35:21 WARNING (MainThread) [homeassistant.loader] You are using a custom component for alarm_control_panel.sector_alarm which has not been tested by Home Assistant. This component might cause stabi
lity problems, be sure to disable it if you do experience issues with Home Assistant.
2019-02-20 23:35:21 WARNING (MainThread) [homeassistant.loader] Integrations need to be in their own folder. Change alarm_control_panel/sector_alarm.py to sector_alarm/alarm_control_panel.py. This will stop work
ing soon.
2019-02-20 23:36:42 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.sector_alarm.sensor. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/loader.py", line 147, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 962, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.sector_alarm.sensor'; 'custom_components.sector_alarm' is not a package
2019-02-20 23:36:42 WARNING (MainThread) [homeassistant.loader] Integrations need to be in their own folder. Change sensor/sector_alarm.py to sector_alarm/sensor.py. This will stop working soon.
2019-02-20 23:36:44 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.sector_alarm.alarm_control_panel. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/loader.py", line 147, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 962, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.sector_alarm.alarm_control_panel'; 'custom_components.sector_alarm' is not a package
2019-02-20 23:36:44 WARNING (MainThread) [homeassistant.loader] Integrations need to be in their own folder. Change alarm_control_panel/sector_alarm.py to sector_alarm/alarm_control_panel.py. This will stop work
ing soon.
2019-02-20 23:36:46 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.sector_alarm.sensor. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/loader.py", line 147, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 962, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.sector_alarm.sensor'; 'custom_components.sector_alarm' is not a package
2019-02-20 23:36:46 WARNING (MainThread) [homeassistant.loader] Integrations need to be in their own folder. Change sensor/sector_alarm.py to sector_alarm/sensor.py. This will stop working soon.
2019-02-20 23:36:46 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.sector_alarm.alarm_control_panel. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/loader.py", line 147, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 962, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.sector_alarm.alarm_control_panel'; 'custom_components.sector_alarm' is not a package
2019-02-20 23:36:46 WARNING (MainThread) [homeassistant.loader] Integrations need to be in their own folder. Change alarm_control_panel/sector_alarm.py to sector_alarm/alarm_control_panel.py. This will stop work
ing soon.
Install manual does not tell requirments
It would save debugging if readme will tell also about requirments and howto install them
Second to last status as active status after api-change
Seems like history does not give us the current status anymore, only historical ones.
Result is that all logic is flipped?
Drawback of calling status instead of history? Not getting the user?
Error after upgrading to 0.98.x
Traceback (most recent call last):,
2019-08-30 12:34:59 ERROR (MainThread) [homeassistant.setup] Error during setup of component sector_alarm,
File "/usr/src/homeassistant/homeassistant/setup.py", line 168, in _async_setup_component,
File "/config/custom_components/sector_alarm/init.py", line 66, in async_setup,
hass, processed_config,
await sector_data.update(),
File "/config/custom_components/sector_alarm/init.py", line 125, in update,
*[task() for task in self._update_tasks]),
File "/config/custom_components/sector_alarm/init.py", line 148, in _update_temperatures,
temperatures = await self._async_sector.get_temperatures(),
File "/usr/local/lib/python3.7/site-packages/asyncsector/asyncsector.py", line 76, in get_temperatures,
return await get_json(request),
File "/usr/local/lib/python3.7/site-packages/asyncsector/util.py", line 19, in get_json,
raise Exception("Error from api: %s" % result),
Exception: Error from api: "INVALID_VERSION"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.