Skip to content

Commit

Permalink
Merge branch 'main' of git+ssh://github.com/slashback100/presence_sim…
Browse files Browse the repository at this point in the history
…ulation into main
  • Loading branch information
slashback100 committed Nov 11, 2020
2 parents 9dc0905 + 8ee3cfc commit f546753
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Presence Simulation
This Home Assistant component aim to provide a presence simulation in your home while you are away. It will turn on & off lights based on your historic

This Home Assistant component aim to provide a presence simulation in your home while you are away. It will turn on & off lights based on your historic.

# How it works
It will look in the DB for the states historic of all the entities configured in the component for a period corresponding the a `delta` variable defined in the component.
Expand Down Expand Up @@ -42,11 +41,11 @@ You can also configure the component in the UI.

# Use it

The component will create an entity called `presence_simulation.running`. This entity will be set to `on` when the entity is running. `false` otherwise.
The component will create an entity called `presence_simulation.running`. This entity will be set to `on` when the entity is running. `off` otherwise.
Three services are available:
## Start the simulation
The service `presence_simulation.start` will start the simulation and set the `presence_simulation.running` entity to `on`.
## Stop the silulation
The service `presence_simulation.stop` will stop the simulation and set the `presence_simulation.running` entity to `false`.
## Toggle the siluation
## Stop the simulation
The service `presence_simulation.stop` will stop the simulation and set the `presence_simulation.running` entity to `off`.
## Toggle the simulation
The service `presence_simulation.toggle` will start or stop the simulation, depending on the current state of the `presence_simulation.running` entity.

0 comments on commit f546753

Please sign in to comment.