Coder Social home page Coder Social logo

Comments (12)

Djelibeybi avatar Djelibeybi commented on August 16, 2024

Here are the two automations that create a toggle for the same button push using a conditional to determine whether to turn my office air conditioner on or off:

Screen Shot 2021-08-17 at 8 10 16 am

And the reverse:

Screen Shot 2021-08-17 at 8 10 27 am

Screenshot is from Controller for HomeKit (the macOS version).

from homebridge-button-platform.

Djelibeybi avatar Djelibeybi commented on August 16, 2024

You can't create conditional automations using Apple's default Home app, but you can using Eve or Home+ or Controller for HomeKit, etc.

from homebridge-button-platform.

metawops avatar metawops commented on August 16, 2024

Yes you can. Since iOS 13, I think. You don't need any 3rd party app anymore. It worked flawlessly for me. All of a sudden, it stopped.
image

image

from homebridge-button-platform.

Djelibeybi avatar Djelibeybi commented on August 16, 2024

Yeah, I'm aware of Shortcuts. They don't work that well for me either, which is why I use HomeKit automations with a condition instead. I'm not sure why your shortcut doesn't work any more though. I'll create an automation using Shortcuts to see if I can reproduce it.

from homebridge-button-platform.

Djelibeybi avatar Djelibeybi commented on August 16, 2024

I just tried it and it worked just fine. If you create a new automation, does that work? It may be that your HomeKit data is out of sync on your Home Hubs (especially if you have more than one).

from homebridge-button-platform.

metawops avatar metawops commented on August 16, 2024

Yes, I deleted and newly created this simple shortcut over and over again. It works fine when testing in the Home app, that is: it reads the power state correctly and switches the outlet correctly off or on.
But the corresponding URL for the switch (I use the IP address of the Raspi to be sure that it's not a hostname/avahi problem) does nothing.
The URL for the switch works fine when I don't use a Shortcut but instead directly the outlet and switch that on, for example. But that way I have to use two buttons on my Elgato Streamdeck. I was using one button with that small Shortcut to toggle the power state and it worked fine.

from homebridge-button-platform.

metawops avatar metawops commented on August 16, 2024

It's interesting, though, that there's nothing behind the "When:" clause in Apple Home.
Screenshot 2021-08-17 at 21 12 19

from homebridge-button-platform.

Djelibeybi avatar Djelibeybi commented on August 16, 2024

I'm going to close this issue now. If you have any further issue, please open a new one!

from homebridge-button-platform.

metawops avatar metawops commented on August 16, 2024

Well, nothing changed. It still doesn't work anymore but did before. Strange. Will investigate when I have time again. 🤷‍♂️

from homebridge-button-platform.

chrise86 avatar chrise86 commented on August 16, 2024

@metawops did you resolve this issue? I'm facing the same thing now.

from homebridge-button-platform.

metawops avatar metawops commented on August 16, 2024

@metawops did you resolve this issue? I'm facing the same thing now.

Strange thing: it‘s working again. Magically. I didn‘t do anything. Well, I surely rebooted all the involved devices (Raspberry Pi, iPhone, iPad, even my router & WiFi AP). But I can‘t say that „thing x“ did the trick. Sorry. 🤷‍♂️

from homebridge-button-platform.

Djelibeybi avatar Djelibeybi commented on August 16, 2024

I've only ever found this to be an issue when the HomeKit database goes out of sync on your Home Hubs. Shutdown all but one of them and test again. If that works, slowly turn the rest back on one at a time.

from homebridge-button-platform.

Related Issues (20)

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.