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

[amazonechocontrol] add do not disturb channel #391

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Jul 21, 2022

Signed-off-by: Cody Cutrer cody@cutrer.us

@ccutrer ccutrer requested a review from J-N-K as a code owner July 21, 2022 16:53
Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

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

Thanks for your first contribution over here. In general looks good, I have left two comments.

@ccutrer
Copy link
Contributor Author

ccutrer commented Jul 21, 2022

all suggestions applied

Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

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

I forgot something. We need to add the thing to each of the thing-update-lists:

2;ADD_CHANNEL;doNotDisturb,Switch,amazonechocontrol:doNotDisturb

By doing so all UI configured things will be updated with the new channel (so you don't habe to delete and re-add the thing).

@@ -206,6 +208,7 @@
<channel id="lastSpokenText" typeId="lastSpokenText"/>
<channel id="notificationVolume" typeId="notificationVolume"/>
<channel id="ascendingAlarm" typeId="ascendingAlarm"/>
<channel id="doNotDisturb" typeId="doNotDisturb"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<property name="thingTypeVersion">1</property>
<property name="thingTypeVersion">2</property>

@@ -147,6 +148,7 @@
<channel id="lastSpokenText" typeId="lastSpokenText"/>
<channel id="notificationVolume" typeId="notificationVolume"/>
<channel id="ascendingAlarm" typeId="ascendingAlarm"/>
<channel id="doNotDisturb" typeId="doNotDisturb"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<property name="thingTypeVersion">1</property>
<property name="thingTypeVersion">2</property>

@@ -88,6 +88,7 @@
<channel id="lastSpokenText" typeId="lastSpokenText"/>
<channel id="notificationVolume" typeId="notificationVolume"/>
<channel id="ascendingAlarm" typeId="ascendingAlarm"/>
<channel id="doNotDisturb" typeId="doNotDisturb"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<property name="thingTypeVersion">1</property>
<property name="thingTypeVersion">2</property>

Signed-off-by: Cody Cutrer <cody@cutrer.us>
@ccutrer
Copy link
Contributor Author

ccutrer commented Jul 21, 2022

oh cool, I didn't know about that. that's much better. I have 20 echos, so it's really nice to not have to recreate them all!

@J-N-K J-N-K merged commit 5d380e4 into smarthomej:3.2.x Jul 21, 2022
@J-N-K
Copy link
Member

J-N-K commented Jul 21, 2022

Thank you very much!

@J-N-K J-N-K added the enhancement New feature or request label Jul 22, 2022
@J-N-K J-N-K added this to the 3.2.14 milestone Jul 22, 2022
rogrun pushed a commit to rogrun/addons that referenced this pull request Aug 22, 2022
…homej#391)

Signed-off-by: Cody Cutrer <cody@cutrer.us>
Signed-off-by: Ronny Grun <ronny.grun@t-online.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants