Giter Site home page Giter Site logo

home-assistant's People

Contributors

jaegerschnitzel avatar rodpayne 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

Watchers

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

home-assistant's Issues

Is it possible to apply set_state to multiple entities at once?

I would like to have a list of entities to which I would like to apply a new state.
Currently, I am trying the following but it does not work.

action:
    - service: python_script.set_state
      data:
        entity_id:
          - sensor.edisio_2677633030_4cmd
          - sensor.edisio_2677633030_6cmd
          - sensor.edisio_60190726_1cmd
          - sensor.edisio_60190726_3cmd
          - sensor.edisio_60190726_5cmd
          - sensor.edisio_60190726_7cmd
          - sensor.edisio_60190726_8cmd
        state: "OFF"

Should it work or the code of the python script does not take lists into account. I don't understand its logic so I can't check myself.

Manage the status of the motion sensor

Hi. I have a motion sensor from xiaomi and a gateway xiaomi 2, the firmware is original. My motion sensors are switched to service mode and they record movement every 5 seconds. I did as you wrote on the forum. The status of the motion sensor is reset after any period of time, even after 5 seconds. But if you walk in front of the motion sensor again, the detected status is not displayed, you need to wait 2 minutes and then it will show the detected status and after 5 seconds (I specified this time) it will reset the detected status to not detected. You can somehow get the home assistant to respond accurately to movement? There is a movement status detected after 5 seconds of no movement - status is not found, then create movement and status must be detected.

I have installed Home Assistant 2020.12.1

Read it here https://community.home-assistant.io/t/how-to-manually-set-state-value-of-sensor/43975/2

  1. In configuration.yaml added python_script:
    config

  2. Created the python_scripts folder
    python_scripts01

  3. Created a file set_state.py
    set_state

  4. I inserted your code into it

  5. The service is available in the developer panel
    service_yes

  6. Created automation

alias: DD in the corridor deactivating the status
description: We check the operation of the creak to deactivate the motion sensor
trigger:

  • type: motion
    platform: device
    device_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    entity_id: binary_sensor.motion_sensor_xxxxxxxxxxxxxxxx
    domain: binary_sensor
    for:
    hours: 0
    minutes: 0
    seconds: 5
    condition: []
    action:
  • data_template:
    entity_id: binary_sensor.motion_sensor_xxxxxxxxxxxxxxxxxxx
    state: 'off'
    service: python_script.set_state
    mode: single

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.