Skip to content

Feature/connectedto#14

Open
sbabcock23 wants to merge 3 commits into
masterfrom
feature/connectedto
Open

Feature/connectedto#14
sbabcock23 wants to merge 3 commits into
masterfrom
feature/connectedto

Conversation

@sbabcock23

Copy link
Copy Markdown
Owner

No description provided.

@r-teller

r-teller commented Jun 8, 2022

Copy link
Copy Markdown
Contributor

Any estimate on when this will be merged into and updated in HACS?

Comment thread pytryfi/fiPet.py
connectedToString = "Cellular! Signal Strength - " + str(connectedToJSON['signalStrengthPercent'])
elif typename == 'ConnectedToBase':
connectedToString = "Base ID - " + connectedToJSON['chargingBase']['id']
else:

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.

There is an additional connection state that can be returned

      "lastConnectionState": {
          "__typename": "ConnectedToWifi",
          "date": "2022-06-08T06:10:57.475Z"
      }

@sbabcock23

Copy link
Copy Markdown
Owner Author

Hi @r-teller ,

Can you take a look at the fiDevice class? This has the connected to details but doesn't quite have the friendly translation as what you proposed in the fiPet class. Since this data is already present there, my suggestion is to enhance the existing class.

@r-teller

r-teller commented Jun 9, 2022

Copy link
Copy Markdown
Contributor

I think i see what you are referencing, that you had this open PR and since I hoping to key off connectionState in HA

@sbabcock23

Copy link
Copy Markdown
Owner Author

The changes need to occur in the hass-tryfi repository. a new sensor is probably required that shows the connection state of the collar.

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