@LoloPicolo Use the alarm_control_panel service as action in your automation
(untested) example below:
alias: Arm_Leaving_House
description: 'Arm house when person state is not longer: home'
mode: single
trigger:
- platform: state
entity_id:
- person.xyz
from: home
condition: []
action:
- service: alarm_control_panel.alarm_arm_away
data: {}
Is power usage for the Plug 2.0 One X supported yet? If yes, how does the HA integration work with this custom component? If no, would be fantastic if it was âŚ
@liflitz Sadly I do not own the v2 plug yet but happy to try and add. You will need to install below cli and run with --elements option and share the created json file so I get some insight on what values to set / read.
Sorry, I am the total noob and donât understand HA architecture yet. In my HA terminal I donât have pip available. Where do I need to install this? I assume, it wonât run properly on my unrelated PC with python installed or will it?
@liflitz the gigasetelements-cli should also work from windows machine terminal (cmd) with python3 and pip installed. You can perhaps follow below instructions to ensure requirements are met and working before following my initial instructions.
@dynasticorpheus I have python3 and pip installed on my PC, but it looks like I am missing âgitâ. Do I need to install this from here https://git-scm.com/ ?
Gigaset Elements - Command-line Interface v1.6.0b1
[-] Identity | VERIFIED | User logged in successfully.
[-] Authentication | SUCCESS |
[-] Basestation | ONLINE | <long_number>
[-] Status | GREEN | Modus HOME
Traceback (most recent call last):
File âC:\Users\xxx\AppData\Local\Programs\Python\Python38-32\Scripts\gigasetelements-cli-script.pyâ, line 11, in
load_entry_point(âgigasetelements-cli==1.6.0b1â, âconsole_scriptsâ, âgigasetelements-cliâ)()
File âC:\Users\xxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\gigasetelements\gigasetelements.pyâ, line 749, in main
base()
File âC:\Users\xxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\gigasetelements\gigasetelements.pyâ, line 726, in base
get_elements(elements_data)
File âC:\Users\xxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\gigasetelements\gigasetelements.pyâ, line 643, in get_elements
elements_data = unicode(elements_data)
NameError: name âunicodeâ is not defined
Google tells me the unicode type no longer exists in Python 3, but I have no clue âŚ
@liflitz Yes this should help me get going and will keep you posted on progress. Basic functionality already works correct? e.g. on / off
edit: I made a beta release (2022.9.0b0) which you can install from HACS. It should add some additional attributes to your plug 2.0 including power_measurement. If needed, you can create a separate sensor out of it using template functionality:
Hello all, I hope someone can help me Iâm trying to integrate gigaset elements in my home assistant. I have been looking for an answer for my problem but canât find it. Iâm NOOB capital letters, I donât understand the code but Iâm doing my best. I have the gigaset thermostat for heating and the gigaset climate sensor. I have downloaded gigaset elements thru HACS and implanted the example code in configuration.yaml, I have added my login from the gigaset app.
I get an invalid config error.
The log says:
Unable to prepare setup for platform gigasetelements.alarm_control_panel: Unable to set up component