-
Notifications
You must be signed in to change notification settings - Fork 526
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
Add support for PCIe computer power switch #1914
Conversation
type: boolean | ||
name: switch | ||
secondary_entities: | ||
- entity: select |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this might be better as 2 buttons?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I reckon it would.
Would it be something like this?
secondary_entities:
- entity: button
name: Reset
dps:
- id: 101
name: button
type: string
mapping:
- dps_val: "Reset"
- entity: button
name: Force reset
dps:
- id: 101
name: button
type: string
mapping:
- dps_val: "forceReset"
However with this code the reset and force reset buttons both trigger the "Reset" dps_val. I can't figure out why forceReset isn't getting triggered from the Force reset button. With the select entity dropdown it worked properly.
I've tried
- entity: button
name: Force reset
dps:
- id: 101
name: button
type: string
mapping:
- dps_val: "forceReset"
value: "forceReset"
but same outcome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value: true
is what buttons expect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That worked, thanks. I've updated it now.
Support for Wifi Computer Reset Switch PCIe Card
https://www.ebay.com.au/itm/225773542438
There is a pro version and the mini version. This is the mini version. This supports power and restart. Most interesting is the force restart option. It turns off the computer, waits 14 seconds then turns it on again. During the 14 seconds of force restart you can't turn on the PC via the app or via the physical button on the computer. The standard restart simply restarts it.