Gigaset Elements - Discontinues its services as of 29 March 2024

@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: {}

Thanks i will check.

regards
Laurent

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 … :slight_smile:

Thanks! - liflitz

@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.

pip install git+https://github.com/dynasticorpheus/gigasetelements-cli@develop

gigasetelements-cli --username [email protected] --password mysecret --elements gigasetelements-cli.json

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/ ?

@liflitz yes that is the official place to get git

This is what I get:

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 Can you try to install unidecode by issuing below command?

pip install Unidecode

Unicode I had already installed

@liflitz Let’s take a different approach

  1. Open https://app.gigaset-elements.com/ in chrome or edge webbrowser
  2. Enter your username and password and press logon
  3. Right-click anywhere and select inspect option
  4. Select network tab on the right
  5. Select elements in name column (you might need to wait couple of seconds before it appears)
  6. Select response tab
  7. Copy / paste the full json text from line 1 here

This is the entry for the new plug:

{“id”:".",“type”:“bs01.sp02”,“friendlyName”:“Plug-Zisterne”,“firmwareStatus”:“up_to_date”,“firmwareVersion”:“00560000102500000444”,“latestFirmwareVersion”:“00560000102500000444”,“connectionStatus”:“online”,“runtimeConfiguration”:{“relayState”:“off”,“startTimestampInSeconds”:1662191186,“durationInSeconds”:0},“states”:{“relay”:“off”,“momentaryPowerMeasurement”:0.0,“momentaryPowerMeasurement._meta”:{“modificationTimestamp”:1662155108930}},“frontendTags”:{“room”:{“roomName”:“Garten”}},“room”:{“id”:628549,“friendlyName”:“Garten”},“capabilities”:[“functionality.powerMeasurement.reporting”,“draft.functionality.powerMeasurement.reporting”]}

Is this sufficient?

@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:

- platform: template
  sensors:
    plug_power:
      value_template: "{{ states.switch.gigaset_elements_plug_012e9257c0.attributes.power_measurement }}"
      unit_of_measurement: 'W'

@dynasticorpheus on/off works, yes

How do I install the beta release from HACS? Manually replacing the content of the gigasetelements folder and restart HA?

@liflitz Just go to hacs integrations tab, click on gigaset elements card, click three dots, click redownload and enable “show beta versions”

@liflitz Managed to get the beta version running, did the additional attributes show up?

Just did it: works - thanks!!!

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

I run my homeassistant on a pc with oracle vm

Hope someone can help me

@Roy1984 Can you share your yaml config? randomize your email adress & password