Giter Site home page Giter Site logo

Status about njstuya HOT 6 CLOSED

unparagoned avatar unparagoned commented on August 13, 2024
Status

from njstuya.

Comments (6)

unparagoned avatar unparagoned commented on August 13, 2024

When using the app or cloud the devices switches to broadcasting it's state in an encrypted mode and there is nill support for local mode if you have the app open or I suspect Alexa running over the cloud. But getting the state via cloud mode should work fine.

from njstuya.

edwolfe3 avatar edwolfe3 commented on August 13, 2024

I mean, if I turn the outlet on via Alexa or manually by pushing the power button on the device, how can I detect that in a rule?

from njstuya.

unparagoned avatar unparagoned commented on August 13, 2024

You need to run a rule to check or get the status every x seconds or get the status before running an action. There is no "push" functionality for local or cloud. So if I have a function that gets the status every 5 seconds. So if if I push the power button on the switch it should update via openhab within 5 seconds.

from njstuya.

TRSx80 avatar TRSx80 commented on August 13, 2024

This problem can be avoided if only local control is used?

from njstuya.

unparagoned avatar unparagoned commented on August 13, 2024

@TRSx80 Local control won't help, you have to get/check the status to see if it has changed or been updated by another source. The only way I can think of to see if a device state may have changed is to have a wifi card in promiscuous mode and get the state if any packets are sent to the tuya device. But like I said previously it would be more reliable and much simplier to just run the script to get the state every second or so.

from njstuya.

TRSx80 avatar TRSx80 commented on August 13, 2024

Thanks for clarification!

In my case, for actuators anyway, the commands would always be coming from the HA controller, so I guess that means I would be OK (at least for time being). Something to keep in mind though, in case that changes later. 🤔

Also, I made a post over on your thread at OpenHAB as I been researching current state of Tuya stuff on OpenHAB. You seem quite knowledgeable on the topic since you seem to be using it for a while already, so I sought your feedback. Not sure if you check in much over there any more these days...

from njstuya.

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.