Sector Alarm

You are right it start with a zero, will try as soon as I come home. Keep you posted.
Thanks!

@donjohann

Yes so I actually resolved this problem past weekend. The problem was just what you wrote @mgejke. When using ā€˜ā€™ around the alarm_id, code, email and password the problem was resolved.

sector_alarm:
  email: '[email protected]'
  password: '12345678'
  alarm_id: '12345678'
  code: '00000'

Something else that is weird is when using thermometers: or thermometers: true. The thermometers donā€™t show up. When removing this line all together they show upā€¦
What is the alarm_panel-line supposed to do?

When I turned on the logging in HASS.io I got the same error you did about the temperatures. Use ā€˜ā€™ around your alarm_id and code. Check my previous post from today.

I am no python coder but it seems to fail when it thinks the value is an integer and not a string.
It fails to connect to Sector Alarm but still tries to get the thermometers.

@Jesperj
Thatā€™s correct, it will log in succesfully, but fail when trying to request anything using the alarm_id since itā€™s incorrect.
Iā€™ll check what it says when you do that and try to give a better errorā€¦

the alarm_panel-line is just if you for some reason only want the temperaturesā€¦ :slight_smile:

It works @mgejke @Jesperj !
Added ā€œā€ for email, password, alarm_id and code and I got the thermometers to work. Nice.

Next action, make logic on the alarm entities :smile:

Thanks for the support!

Hi, I just got a call from Sector Alarm, they say my central is contacting their central way more often that it should. Is there a polling thing in the code somewhere that can be extended?
Or any other tips.

Thanks

@Bjorn_Hegle
Interesting! What did you say to them? Howā€™s your central connected?
Thereā€™s a flag called scan_interval for polling components i HA, try setting it to something bigger. Iā€™m not sure if it works out of the box or if I have to do something in the components as well.

scan_interval: <seconds>

Try that, if it doesnā€™t work Iā€™ll add a setting for itā€¦

Finally fixed it. Had some problems with dependencies, but after an reinstallation of home-assistant and using ā€™ I got it working.
Thanks for all the help.

1 Like

Was that a problem for them? And what did they say about it?
Did you mention your setup?

They asked me if I used the app in a special way or something. I didnā€™t tell them about the hassio setup :stuck_out_tongue:
My central is connected directly to my router.
They are coming on Tuesday to swap out my central, so Iā€™ll see after that if it was the central or this component.

Hi
I have updated my Home Assistant (Home Assistant
0.65.4) and now I got 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/

Still working though, but quite annoying with the error showing up.

Config is like this:

sector_alarm:
email: ā€˜[email protected]ā€™
password: ā€˜XXXā€™
alarm_id: ā€˜01234567ā€™
code: ā€˜0000ā€™
thermometers: true
alarm_panel: true

Has this been integrated into HA? I found this on Github:

Hi

I have exactly the same error on version 0.65.5 and same config as ā€œdonjohannā€ except for the last two parameters, they have # before the parameter.
The component have stopped working!
Anyone found a solution?

@patrikfrisk, @donjohann

Ah, I havenā€™t upgraded HA in quite a while. Iā€™ll try to do that and see if I can fix the problem(hopefully this week)ā€¦

Hi

I just want to confirm that I have the same problem that the component have stopped working. I also have 65.5 installed.

@patrikfrisk, @donjohann

@Jesperj, @patrikfrisk, @donjohann

Running 0.65.5 on a raspberry pi with the latest code from https://github.com/mgejke/hass-sectoralarm I donā€™t get any errors at all.

Could you give me some more info?

Iā€™m also running on a raspberry pi and I have tried to replace the sector-alarm code again from

This is my config in configuration.yaml

sector_alarm:
  email: "[email protected]"
  password: "my secret password"
  alarm_id: "my alarmid"
  code: "0000"
  #thermometers: false
  #alarm_panel: true

But I still recive the following error:

Failed config
sector_alarm:
- 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/

I canā€™t reproduce the issueā€¦
From googling the error message it seems that it might be related to formatting, tabs/spaces etc.

Is your config split in different files? Could anyone post more or the entire config(as a code snippet so the formatting is correct)?

This i my Configuration.yaml with the formatting included.
The Sector_alarm component is found in the bottom of the configuration.yaml

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: xx.xxxxxxxx
  longitude: yy.yyyyyy
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 39
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/Stockholm
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
# introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Secrets are defined in the file secrets.yaml
  # api_password: Welcome
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Weather prediction
sensor:
  - platform: yr  

# Text to speech
tts:
  - platform: google

# Cloud
# cloud:

# Pushbullet
notify:
  - name: Pushbullet
    platform: pushbullet
    api_key: My APIkey

# Devices
device_tracker:
  - platform: ping
    interval_seconds: 30
    consider_home: 1200
    hosts:
      Patrik_iphone: MyIPAddress
      Hugo_samsung: MyIPAddress
      Malin_iphone: MyIPAddress

# Sector Alarm
sector_alarm:
  email: "[email protected]"
  password: "My Password"
  alarm_id: "My AlarmID"
  code: "0000"
  #thermometers: false
  #alarm_panel: true

# Includes  
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

I receive the same error message if i restart homeassistant.
If i do a full host reboot of hassio it works without the errorā€¦