GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Separate Class property for contact sensor by supby · Pull Request #321 · WebThingsIO/zigbee-adapter

Conversation

@supby

@supby supby commented Nov 11, 2021

Copy link
Copy Markdown

PR contains:

  • Contact property moved to separate property class
  • Contact property is reverted as Open means no contact
  • Class properties moved to separate files to increase readability of zigbee2mqtt class

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
supby added 7 commits October 25, 2021 19:51
@supby
add invert booleans prop
3058b07
@supby
check for invert bools in update
c7fecf9
@supby
add ContactProperty as separate class
714ec81
@supby
move prperties to files, move contact proprty to class
7176c3f
@supby
add properties folder to package
704b345
@supby
add utils.js to package
333b50c
@supby
Merge pull request #1 from supby/feature/contact_prop_refactoring
dfa2d7e
Feature/contact prop refactoring
@supby

supby commented Jan 27, 2022

Copy link
Copy Markdown
Author

@dhylands @lightsofapollo @mrstegeman @flatsiedatsie could somebody take a look on the PR? :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@flatsiedatsie

flatsiedatsie commented Jan 28, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

I don't really work on this addon, I work on the Zigbee2MQTT one instead.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@supby

supby commented Jan 29, 2022

Copy link
Copy Markdown
Author

I'm using this addon exactly with z2m to show data from mqtt.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@flatsiedatsie

flatsiedatsie commented Feb 1, 2022

Copy link
Copy Markdown
Contributor

Sorry for the confusion: I'm talking about the Zigbee2MQTT addon (which comes with Z2M built-in, but can also be used with external Z2M).

I did take a quick look at your code and noticed that the first commit seems to change all the code (perhaps an indentation issue), which made it difficult to see what had changed there. Adding this 'reversability' feature seems to be the main change?

You also moved some code into separate files?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@supby

supby commented Jul 31, 2022

Copy link
Copy Markdown
Author

@flatsiedatsie Sorry for so late answer :)
Yes the PR introduces main two things:

  1. Structure code to the separate files
  2. Introduce new Meta property "ContactProperty" as reverse of OpenProperty. With OpenProperty aquara door sensors were open in closed (contact) state.

I tried to use https://github.com/kabbi/zigbee2mqtt-adapter adapter but seems it is to complex for my needs. I just need to interpret z2m messages to webthings. zigbee2mqtt-adapter didn't work for me.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@benfrancis
benfrancis requested a review from tim-hellhake August 1, 2022 11:46
@supby
Merge branch 'WebThingsIO:master' into master
2652693
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tim-hellhake tim-hellhake Awaiting requested review from tim-hellhake

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@supby @flatsiedatsie
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.