Skip to content

Telnet switch docs#3165

Merged
balloob merged 6 commits into
home-assistant:nextfrom
multiholle:feature/telnet_switch
Sep 22, 2017
Merged

Telnet switch docs#3165
balloob merged 6 commits into
home-assistant:nextfrom
multiholle:feature/telnet_switch

Conversation

@multiholle
Copy link
Copy Markdown
Contributor

@multiholle multiholle commented Aug 10, 2017

Description:
Docs for telnet switch.

Pull request in home-assistant (if applicable): home-assistant/core#8913

@multiholle multiholle mentioned this pull request Aug 10, 2017
3 tasks
@multiholle multiholle changed the title Added telnet switch docs. Telnet switch docs Aug 10, 2017
@Landrash Landrash added the new-integration This PR adds documentation for a new Home Assistant integration label Aug 10, 2017
Copy link
Copy Markdown
Contributor

@Landrash Landrash left a comment

Choose a reason for hiding this comment

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

Looks good with some minor feedback.

If possible I would suggest adding in a practical example after the variables.

footer: true
logo: home-assistant.png
ha_category: Switch
ha_release: 0.51
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Next release will be 0.51 but this most likely won't be able to merged into that since 0.51 is rather imminent.
Suggest you update this to 0.52.

---


The `telnet` switch platform allows you to control devices with telnet commands. It connects to a host on port 23.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Telnet is typically used over port 23 but there's some applications and hardware that may use different ports.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added a port parameter to the Telnet switch.

---
layout: page
title: "Telnet Switch"
description: "Instructions how to integrate telnet switches into Home Assistant."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Telnet is commonly written with a capital T in documentation. This isn't necessarily correct but fairly common.

Configuration variables:

- **switches** (*Required*): The array that contains all switches.
- **identifier** (*Required*): Name of the switch as slug. Multiple entries are possible.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this should be rephrased since the word "slug" isn't a commonly used phrase for users new to this area.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Landrash Since you disagree with the current content, could you please provide a suggestion?

@multiholle
Copy link
Copy Markdown
Contributor Author

I don't think an extra example is needed. The configuration show already how to define a device.

- **command_off** (*Required*): Command to turn device off.
- **command_state** (*Required*): Command to determine the state of the switch.
- **value_template** (*Required*): The template evaluating to `true` will indicate the switch is on.
- **optimistic** (*Optional*): Flag that defines if switch works in optimistic mode. Default is `true` if no `command_state` defined, else `false`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

optimistic should be removed as well to reflect the latest changes.

@multiholle
Copy link
Copy Markdown
Contributor Author

Removed optimistic parameter.

@frenck
Copy link
Copy Markdown
Member

frenck commented Sep 19, 2017

@multiholle @Landrash

The parent PR has been merged. Could you guys take a look on how to move this documentation PR forward?

Thanks!

@multiholle
Copy link
Copy Markdown
Contributor Author

Everything fine from my side.

@balloob balloob merged commit e0aef27 into home-assistant:next Sep 22, 2017
@balloob balloob modified the milestone: 0.54 Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-integration This PR adds documentation for a new Home Assistant integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants