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

Adding support for diy pcie switch #7873

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Yuke-hd
Copy link

@Yuke-hd Yuke-hd commented Aug 19, 2024

No description provided.

@Koenkk
Copy link
Owner

Koenkk commented Aug 19, 2024

Could you provide a link of a how-to of this device?

@Yuke-hd
Copy link
Author

Yuke-hd commented Aug 19, 2024

exposes: [
e.binary('status', ea.STATE, true, false).withDescription('Indicates if the PC is powered on (= true) or off (= false)'),
e.enum('Power', ea.STATE_SET, ['press']).withDescription('Power button').withEndpoint('power'),
e.enum('Reset', ea.STATE_SET, ['press']).withDescription('Reset button').withEndpoint('reset'),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
e.enum('Reset', ea.STATE_SET, ['press']).withDescription('Reset button').withEndpoint('reset'),
e.enum('reset', ea.STATE_SET, ['press']).withDescription('Reset button').withEndpoint('reset'),

],
exposes: [
e.binary('status', ea.STATE, true, false).withDescription('Indicates if the PC is powered on (= true) or off (= false)'),
e.enum('Power', ea.STATE_SET, ['press']).withDescription('Power button').withEndpoint('power'),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
e.enum('Power', ea.STATE_SET, ['press']).withDescription('Power button').withEndpoint('power'),
e.enum('power', ea.STATE_SET, ['press']).withDescription('Power button').withEndpoint('power'),

model: 'ESP32C6.PCIE-switch',
vendor: 'Custom devices (DiY)',
description: 'PCIE switch',
fromZigbee: [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the fromZigbee/toZigbee converter to tzLocal/fzLocal (example: https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/adeo.ts#L11)

@Koenkk
Copy link
Owner

Koenkk commented Aug 20, 2024

Could you also submit a picture for the docs, also include the link to your github in the .md file of this device. This can be done by:

  1. Create a fork by clicking here
  2. Go to the public/images/devices directory, Add file -> Upload files
  3. Upload the files and press Commit changes
  4. Press Contribute -> Open pull request -> update title/description -> Create pull request

Make sure that:

  • The filename is ESP32C6.PCIE-switch.png
  • The size is 512x512
  • The background is transparent (use e.g. Adobe remove background)

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

Successfully merging this pull request may close these issues.

2 participants