Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing virtual relay state into a file (on Linux) #29

Closed
klew opened this issue Nov 16, 2022 · 1 comment
Closed

Storing virtual relay state into a file (on Linux) #29

klew opened this issue Nov 16, 2022 · 1 comment

Comments

@klew
Copy link
Member

klew commented Nov 16, 2022

https://forum.supla.org/viewtopic.php?p=135869#p135869

@klew klew closed this as completed in 8ef0bd4 Dec 19, 2022
@klew
Copy link
Member Author

klew commented Dec 19, 2022

Relay state can be written to a file by using CmdRelay channel type. Here is a part of yaml config as an example:

  - type: CmdRelay
    name: command_relay_1
    initial_state: restore
    cmd_on: "echo 1 > command_relay_1.out"
    cmd_off: "echo 0 > command_relay_1.out"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant