Git Product home page Git Product logo

homebridge-automation-switches's People

Contributors

grover avatar mrose17 avatar nfarina avatar paolotremadio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-automation-switches's Issues

Duplikatem serial number

Is it any change to add serial number field in config?
Some apps show errors or warnings about duplicate serial numbers if I add the same type of two accessory.

Fe. Controller for HomeKit:
Each Accessory should have a unique serial number. Regrettably, many HomeBridge plugins and some HomeKit Accessory manufacturers use the same serial number for all Accessories. As a result, Controller can not tell these Accessories apart, which causes issues with custom icons, Setup Codes, and Backups. For HomeBridge plugins, you might be able to change the serial number in the plugins' settings.

Can I disable some switch?

Thanks for your plugin , I use Basic Switch to control my homekit automation on or off through Siri , it is very usefor to me .and I also use your Security system , but there are too many switches . Can i disable some switches , like "Arm Away" "Arm Night" "Arm Stay"?

Zones for clock switch

Hello grover,

It would be possible for the alarm clock switch zones to provide as in the security switch?

Activate Sensor when Switch is turning on

Can you please add a setting in the config that allows to activate the sensor also when switch is turning on and not only after the delay period? This you make this super-switch more felxible.

Thanks for your work on this useful plugin!

accessories blocked after installing homebridge-automation-switches

Hi there, I thought your homebridge-automation-platform switches looked like it might make for good addition to my Home, so I downloaded it, added the necessary stuff into my config (I chose three things: a security item, an automation item, and a lock item). When I fired up the instance of homebridge and went to the Home app in my iPhone, every accessory became unresponsive. In the Eve app, it notes each unresponsive accessory has been "blocked." It appears that the only way around it afterwards is to delete the home and the accessories & persist folder, revert my config.json, and re-add the home from scratch.

Just wondering if you might have any suggestions for this. It crossed my mind that maybe Apple had increased security and is "blocking" accessories in the wake of the Intel Meltdown issues in such a manner as to make everything stop working if I try to add stuff like your platform.

Thanks,
Jacob

Edit:

I was able to add your platform successfully after removing the "security" accessory and the "lock" accessory, and keeping just the "automation" accessory, so perhaps there is something about the presence of one or both of those accessories that may be causing the issue, either on my end or maybe Apple doesn't approve of these items for some reason?

uninterruptable switch?

Can you confirm? I don't know how to describe this, apologies in advance.

I have a vibration sensor, when it is triggered, I have a switch set to 10 mins delay before the sensor activates and the lights cut out.

If the sensor picks up further vibration, before the 10 minutes has expired, does the switch then reset for a further 10 mins, or does the first instance allow the trigger to run its course for 10 minutes.

If the trigger then creates another event is there a way to create a one off event, other than creating an intermediary regular switch between the sensor and the automated switch?

Thanks for your work, this is really helpful for expanding automations, especially as iOS13 timers are close to useless. Thanks!

Automation switch is off, but Motion switch active

I have the below setup:
{
"type": "automation",
"name": "A-Kühl-Gefrier",
"period": 60,
"autoOff": false
}

If one fridge door opens, the switch is set to on.
After 1 min the motion detection is active. In that case I check, if door is still open:

  • yes: message to me
  • no: turn off switch

That works fine. Nevertheless after I have turned of the switch, the motion switch is active every Minute. How can I really deactivate. What is going wrong?.
Usually the motion detection should be off, if the switch itself is off, isn‘t it.
05AC4BE0-077B-4A45-86B6-F8FCE68747AC

homekit alarm triggering

is there a way to trigger alarm in home app? i can only change state in home app. also rules do not offer alarm triggering. in eve i see alarm and can trigger it.

what i am missing?

thanks for help in advance!

Thanks for the Excellent Plugin

@grover : I just wanted to thank you sincerely for the excellent plugin--both the functionality and the obvious time you spent writing documentation and posting examples that I could mimic. I'm primarily using your plugin for the 'security' type, but I'm looking forward to experimenting with the other features.

Thanks again,
Chris

external http commands

Hi Grover

I am just looking at your work and seem amazing !!
my compliments

I think that with you plugin anyone using HomeKit can build a very great security system, but I have an additional need, my sun (a very nerd boy) have an android smartphone , so he will be unable to operate with the security system..
What about add basic http operations to activate the security functions?
something similar to the HttpWebHooks plugin ?

Cann you help or can you suggest some workaround ?

Best regards

new release with updated commits and PR's accepted?

@grover would it be possible to release a new version with the latest changes that were not submitted with 3.2.1?
See this one below.

Commit 7001109 fixes the issue with The Serial Number field for all Automation Switches returning 42 but the released version 3.2.1 doesn't include it.
#36

Also would love to see the PR's accepted as well as part of a new release.
#31
#35
#22
#14

Stop repeating timer after x iterations

I wonder if it is possible to have the repeating timer automation stop itself after a configurable amount of cycles?

Example: trigger the motion sensor every 180 seconds, for 6 times in a row. Then stop automatically.

This would be great for things that have to be done multiple times, but don't provide a trigger themselves to disable the automation switch.

Security System - night mode issue

Hello grover,
I took advantage of your Security system combining my 4 Hue motion sensors but I have an issue with the night mode state.
Let's say I'm running on "stay" mode. When I decide to switch to "away" mode (manually or automatically), then the "stay" switch automatically turns Off, the "away" switch turns On and the main security switch that is triggering an alarm successfully updates its status to "away" and vice versa.
But when I toggle between "Night' mode and any other mode (away or stay), the night switch always stays On and never turns Off, although the main security switch successfully updates its status to the latest one.
This Happens of course on both Home & Elgato app. All apps are up to date on an iOS 11.2.2 iDevice

Any help would be appreciated.

Alarm immediately triggered after arming

5C669231-ED35-4569-AF9F-359B329F5151
Recently when I Arm the alarm (stay, away or night) I immediately get the Alarm triggered notification. However, the Alarm Zone Switches stay off. So why is it Immediately triggering the alarm and why are the Alarm Zone switches not affected?

Thanks.

Security Alarms and Descriptive Zone Statuses

I have the following security configuration:

{ "platform": "AutomationSwitches", "switches": [ { "type": "security", "name": "Security System", "default": "unarmed", "stored": true, "zones": [ "Outside", "Walkout", "Downstairs", "Upstairs", "Bedrooms" ], "armAwayButtonLabel": "Nobody Home (Away)", "armNightButtonLabel": "Sleeping (Night)", "armStayButtonLabel": "Someone Home (Stay)" } ] },

When the system alarms I'd like for the Home app's status to indicate exactly which zone alarmed. Currently it'll say something like

Home switch on

…because I have the switches for each zone in a room called Home.

Ideally it'd be more descriptive. Is there anything you can suggest (I realize this could just be a limitation of HomeKit)?

One idea I had was to move the switches for each zone into a more appropriate HomeKit room, but the switches are tied-together such that moving one switch moves them all.

Error automation switch cannot add bridged accessory uuid already used - more than one switch

Hello,

I try to add different automations switches. My config loocks like the following:

"switches" : [ { "period" : "1800", "name" : "Schlafzimmerlicht", "type" : "automation", "autoOff" : "false" }, { "type": "switch", "name": "VS_Frühmorgen", "stored": true, "default": false }, { "type": "switch", "name": "VS_Morgen", "stored": true, "default": false }, { "type": "switch", "name": "VS_Morgen", "stored": true, "default": false }, { "type": "switch", "name": "VS_Mittag", "stored": true, "default": false }, { "type": "switch", "name": "VS_Sonnenuntergang", "stored": true, "default": false }, { "type": "switch", "name": "VS_Abend", "stored": true, "default": false }, { "type": "switch", "name": "VS_Nacht", "stored": true, "default": false }, { "type": "switch", "name": "VS_Filmlicht", "stored": true, "default": false }, { "type": "switch", "name": "VS_Sonnentag", "stored": true, "default": false } ], "platform" : "AutomationSwitches", "name" : "device" },

Sadly then Homebridge isn't starting anymore and I get the Error:

"Cannot add bridged Accessory with the same UUID as another brdiged Accessory"

Is there a mistake in my config jason creating more than one switch?

Thanks for your support,...

Security state

Hi, thanks for you plugin.

Isn't possible to reduce states and visibility of security system?

Support for NodeJS 18

I updated Raspberry Pi OS and Homebridge, but now homebridge-automation-switches (v3.2.1) does not work anymore. I suspect the cause is that my system is now on NodeJS v18.12.1.

Screenshot 2022-11-21 at 23 55 25

solar clock switch type does not initialize - invalid automation switch

followed the example found here

in my config.json:

        {
            "platform": "AutomationSwitches",
            "switches": [
                {
                    "type": "automation",
                    "name": "Wakeup HTPC",
                    "period": 3,
                    "autoOff": true
                },
                {
                    "type": "solarclock",
                    "name": "Sunrise",
                    "location": {
                        "latitude": 40,
                        "longitude": -100
                    },
                    "period": "sunrise",
                    "enabled": true
                },
                {
                    "type": "solarclock",
                    "name": "Sunset",
                    "location": {
                        "latitude": 40,
                        "longitude": -100
                    },
                    "period": "sunset",
                    "enabled": true
                }
            ]
        },

output from /home/pi/.pm2/logs/homebridge-out.log

2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Initializing AutomationSwitches platform...
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] AutomationSwitchesPlatform Plugin Loaded - Version 3.2.1
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Found automation switch in config: "Wakeup HTPC"
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Found automation switch in config: "Sunrise"
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Invalid automation switch - type is unknown: { type: 'solarclock',
2|homebrid |   name: 'Sunrise',
2|homebrid |   location: { latitude: 40, longitude: -100 },
2|homebrid |   period: 'sunrise',
2|homebrid |   enabled: true }
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Skipping.
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Found automation switch in config: "Sunset"
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Invalid automation switch - type is unknown: { type: 'solarclock',
2|homebrid |   name: 'Sunset',
2|homebrid |   location: { latitude: 40, longitude: -100 },
2|homebrid |   period: 'sunset',
2|homebrid |   enabled: true }
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Skipping.
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Initializing platform accessory 'Wakeup HTPC'...

Timer beyond 3600s

Is it possible to extend the time in automation switch beyond 3600s. I need 5500a

Alarm always triggered

I love the easiness of your plugin. I just can't figger out how the 'arm' and 'triggered' modus work.

I've installed multiple motion sensors which I want to use as triggers when I put the security system in 'armed' modus. But when I set the modus on 'armed' I always get notified that the system has been triggered.

What should I do to get the motion sensors work as triggers when the system is armed.

Duplicate

I have installed two homebridge plugins Alarmswitch and Automation switches.
Alexa plugin returns an error concerning same names of Automation Alarm.
There are 2 with the same name - whats true. Is it possible to change the name?

here the error log
Dec 26 17:12:21 openhab homebridge[503]: [12/26/2019, 5:12:21 PM] [Alexa] WARNING: Duplicate device name Automation Alarm Dec 26 17:12:21 openhab homebridge[503]: [12/26/2019, 5:12:21 PM] [Alexa] alexaDiscovery - returned 32 devices Dec 26 17:12:36 openhab homebridge[503]: [12/26/2019, 5:12:36 PM] [Alexa] WARNING: Duplicate device name Automation Alarm Dec 26 17:12:36 openhab homebridge[503]: [12/26/2019, 5:12:36 PM] [Alexa] alexaDiscovery - returned 32 devices Dec 26 17:12:51 openhab homebridge[503]: [12/26/2019, 5:12:51 PM] [Alexa] WARNING: Duplicate device name Automation Alarm Dec 26 17:12:51 openhab homebridge[503]: [12/26/2019, 5:12:51 PM] [Alexa] alexaDiscovery - returned 32 devices Dec 26 17:13:06 openhab homebridge[503]: [12/26/2019, 5:13:06 PM] [Alexa] WARNING: Duplicate device name Automation Alarm Dec 26 17:13:06 openhab homebridge[503]: [12/26/2019, 5:13:06 PM] [Alexa] alexaDiscovery - returned 32 devices

Alarm clock setting time troubles

Hi,
I have trouble setting time of the alarm clock. When I set it up from the scene programmed earlier in Eve app, the time sent and logged in Homebridge usually doesn't change. Here are some logs:

[12/11/2020, 08:14:53] [AutomationSwitches] Change target hour of Pobudka to 7
[12/11/2020, 08:14:53] [AutomationSwitches] Change target minute of Pobudka to 15
[12/11/2020, 08:14:53] [AutomationSwitches] Change enabled state of Pobudka to true
[12/11/2020, 08:14:53] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00
[12/11/2020, 08:14:55] [Broadlink RM] Projektor getSwitchState: false
[12/11/2020, 08:15:00] [Broadlink RM] Projektor getSwitchState: false
[12/11/2020, 08:15:04] [AutomationSwitches] Change enabled state of Pobudka to true
[12/11/2020, 08:15:04] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00
[12/11/2020, 08:15:04] [AutomationSwitches] Change target hour of Pobudka to 7
[12/11/2020, 08:15:04] [AutomationSwitches] Change target minute of Pobudka to 0
[12/11/2020, 08:15:04] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00
[12/11/2020, 08:15:04] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00
[12/11/2020, 08:15:04] [AutomationSwitches] Change enabled state of Pobudka to true
[12/11/2020, 08:15:04] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00
[12/11/2020, 08:15:05] [Broadlink RM] Projektor getSwitchState: false
[12/11/2020, 08:15:07] [AutomationSwitches] Change enabled state of Pobudka to false
[12/11/2020, 08:15:07] [AutomationSwitches] Change target hour of Pobudka to 7
[12/11/2020, 08:15:07] [AutomationSwitches] Change target minute of Pobudka to 15
[12/11/2020, 08:15:07] [AutomationSwitches] Change enabled state of Pobudka to true
[12/11/2020, 08:15:07] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00
[12/11/2020, 08:15:10] [Broadlink RM] Projektor getSwitchState: false
[12/11/2020, 08:15:15] [Broadlink RM] Projektor getSwitchState: false
[12/11/2020, 08:15:19] [AutomationSwitches] Change target hour of Pobudka to 7
[12/11/2020, 08:15:19] [AutomationSwitches] Change target minute of Pobudka to 45
[12/11/2020, 08:15:19] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:45:00
[12/11/2020, 08:15:19] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00
[12/11/2020, 08:15:20] [Broadlink RM] Projektor getSwitchState: false
[12/11/2020, 08:15:25] [Broadlink RM] Projektor getSwitchState: false
[12/11/2020, 08:15:26] [AutomationSwitches] Change enabled state of Pobudka to false
[12/11/2020, 08:15:30] [Broadlink RM] Projektor getSwitchState: false
[12/11/2020, 08:15:34] [AutomationSwitches] Change enabled state of Pobudka to true
[12/11/2020, 08:15:34] [AutomationSwitches] Raising next alarm at 13/11/2020, 07:00:00
[12/11/2020, 08:15:35] [Broadlink RM] Projektor getSwitchState: false
[12/11/2020, 08:15:40] [Broadlink RM] Projektor getSwitchState: false
[12/11/2020, 08:15:45] [Broadlink RM] Projektor getSwitchState: false

I'm changing the time of turned off alarm, then I turn it on and it says "raising next alarm at" while the time is different from what I set. Can anyone help?

Trigger Alarm

I’m probably missing something. But how do I trigger the Alarm? I can set it to different states, but I’m not able to actually trigger the alarm.

In the eve app I only can set the different states (home, away, night, disarmed) as an action, but not Alarm triggered or something.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.