Good to hear things work as expected. I made a deliberate decision to create one sensor per (hardware) device to keep things maintainable. If you want a separate sensor you can easily create one by creating a template sensor in sensors.yaml as per below example:
Hi there. Sorry for the ultimate newbie question - what exactly am I supposed to do in the “Configuration” step? I understand that I need to fill in the fields
… but in what file, where located? So far, I only copied the files from custom_components/gigasetelements into my (docker) folder homeassistant/custom_components/gigaset, but the Gigaset integration does not show up when I try to add a new integration.
I successfully (custom) integrated other packages (Free@Home, Gardena Smart System), just by copying the files, re-starting Home Assistant and waiting some time…
Would be great to get some help here.
Best, Niko
===
Update, found the solution myself - please don’t bother to re-act.
For other newbies around here: of course this is an entry in the config.yaml file, located (in my case) in homeassistant/ (same directory in whicht directory custom:components sits
Is there anyway I can use this as a trigger for my Smoke Detectors to setup automation?
E.g. when I press the Test Button or when real smoke is detected. I would like to set some additional alarms using automation for this.
Not sure what you want to achieve but the binary sensor will (shortly) go from off to on when smoke is detected but this needs better code to be honest. Also smoke test is not yet detected hence will add in future release.
disclaimer: since we talk smoke detector don’t assume this will always work hence don’t put your life at risk
I want to use it for an automation. So when the Smoke Detector gets triggered, my Sonos speakers make noice, lights go on automatically, etc.
I have checked it using the “Test required”, as I had one which needed testing, but couldn’t use it for automation as the sensor didn’t get triggered (see screenshot).
Of course I’m not going to rely on it, but would be nice to get it working
If you can add it in a future update that would be really appreciated!
Thanks in advance!
First of all, thank you very much. I have been searching for a long time until I finally found a solution to control Elements.
Now I might have a problem with my motion sensors. Either they do not work, or I have not understood something correctly.
Is it correct that they should switch from “off” to “on” when there is movement?
I have created an automation, but unfortunately it does not trigger on movement:
alias: Funktionstest Bewegungsmelder 031c1797d3
description: ''
trigger:
- platform: state
entity_id: binary_sensor.gigaset_elements_motion_031c1797d3
from: 'off'
to: 'on'
If I look at the history, I also see only a static value. Am I doing something wrong?
And another question:
What is the best way to query the status for a fire alarm?
Is there a value that the control panel provides? Or do I have to query each smoke detector individually? Would the smoke detector then also switch from “off” to “on”?
@Loki81 Good to first check if you see any motion events in the official app or website https://app.gigaset-elements.com/#/events/ if not than of course nothing will appear in home assistant either.
Moreover perhaps turn on debug logging in configuration.yaml to see if motion events are reported or if anything else strange is going on? Feel free to share so I can have a look too.
Your smoke sensor(s) should appear as binary sensors hence same as motion. Please note only the version 2021.12.0 and up can also detect smoke alarms triggered via test hence ensure you update if needed. Using HACS is most easiest to install / keep yourself informed on new updates.
thanks for your answer.
I have successfully set up and tested the smoke detectors. It works great.
The motion detectors unfortunately still not. I don’t see any entries in the HA debugging. I don’t see any events in the Gigaset event logs either. But they work without any problems. For example, I have also created a rule in the Elements app that turns on lights at night when motion is detected. This works.
Did I miss something? Do I have to activate something in Elements?
@Loki81 So far my guess is issue does not sit at the custom component end looking at the logs and the fact smoke sensors work ok. Its really weird the gigaset elements app based automation works but no motion events are shown.
@Loki81 Your json file looks perfectly fine, does below command yield any results? If not the only thing I can recommend is to remove the motion sensors via the app and re-add them and see what happens.
@Loki81 Perhaps the motion sensors distance or thick walls are blocking signal towards base station hence only few motions end up registered? Perhaps try and test with one sensor close to base?