RobertD502 / home-assistant-flair

Custom component for Home Assistant Core for Flair pucks, vents, rooms, structures, and minisplits
MIT License
90 stars 12 forks source link

Reverse Home Away Hold Example #33

Closed slopokdave closed 2 years ago

slopokdave commented 2 years ago

Hello, first thank you for the flair addon. It's working great for us so far!

Can you give an example of code for a button to Reverse Home/Away Hold? I can't get it to work. Thank you!

RobertD502 commented 2 years ago

I'm not sure I understand. Are you asking for an automation to press the reverse home/away home button?

slopokdave commented 2 years ago

I can successfully create a drop down toggle for Home/Away mode, your documentation says an entity type "button" is available to "Reverse home/away hold". I am trying to use this function.

RobertD502 commented 2 years ago

It is simply a button:

image

To use the entity you "Press" the button.

slopokdave commented 2 years ago

Yes exactly, can you share the code? I am better at reading that to understand how it works. :)

RobertD502 commented 2 years ago

Ohhhhhhh....yeah the documentation is for the current pre-release. I'm assuming you installed the previous version. If you just added the integration, delete it. Set HACS to show beta versions for the Flair integration. Once you've done that, you'll see the 0.1.0 pre-release.

Note: you need to use your OAuth 2.0 credentials with 0.1.0 NOT OAuth 1.0.

There is no code to share as it is all part of the newly rewritten integration.

slopokdave commented 2 years ago

Got it, it works now!

One more question, I'm not sure if this is configurable via your addon or if this is due to something else. When I use climate entity, down/up degree is "0.5", how can I change so that it is in "1.0" increments instead? Thanks again.

RobertD502 commented 2 years ago

What climate entity is it?

slopokdave commented 2 years ago

Oh I see now, I am using "custom:simple-thermostat".... my code. I understand if you cannot help, I think it may be something i need to change w/ simple-thermostat?

type: grid
square: false
columns: 1
cards:
  - type: custom:simple-thermostat
    entity: climate.dave_s_office_room
    layout:
      step: row
    header: true
    control: false
  - type: entities
    entities:
      - entity: select.dave_s_office_activity_status
        name: Status
    state_color: true
RobertD502 commented 2 years ago

I left the Home Assistant defaults which i believe are 1 if dealing with F and 0.5 if dealing with C. Since you're using a custom card, I'd look into the settings of the custom card.

slopokdave commented 2 years ago

Thank you for all your help!

RobertD502 commented 2 years ago

No problem!