0.99: Withings, Device Automations, launch Home Assistant Cast from Python

Can anyone teach me how to use cast.show_lovelace_view in detail?
I can cast to google hub like this:
- service: cast.show_lovelace_view
data:
entity_id: media_player.kitchen
view_path: default_view
But It shows what I do not want. Not in correct place and display language is transtated into Hub’s language.

Please format your code!

Custom Button Card

It is about 95% of my entire IU

By the way, thanks for all you do with this platform, I’m so addicted to it :slight_smile:

1 Like

Well, it depends on the error.

In my case the error was that I had a yaml list in the secret file.
I.E

some_name:
  - Item1

updated to:

some_name: Item1

and it worked.

ah , not the case here, i dont have lists in my secrets file
can you show me how you used the secrets in the add-on config, can you copy an example from there? the whole config section

thnx

I successfully changed all my add-on configs to use secrets like this:

secrets.yaml

#================
#=== Samba Share
#================
samba_username: MyUsername
samba_password: MyPassword

Samba config:

{
  "workgroup": "WORKGROUP",
  "username": "!secret samba_username",
  "password": "!secret samba_password",
  "interface": "",
  "allow_hosts": [
    "10.0.0.0/8",
    "172.16.0.0/12",
    "192.168.0.0/16"
  ]
}

I hope that helps…

4 Likes

Just ran an update check to see whether the upgrade was gonna go through but ran into this message;
ERROR:homeassistant.util.yaml.loader:YAML file /tmp/config/themes.yaml contains duplicate key “primary-color”. Check lines 2 and 33.
ERROR:homeassistant.util.yaml.loader:YAML file /tmp/config/themes.yaml contains duplicate key “primary-background-color”. Check lines 10 and 41.
ERROR:homeassistant.util.yaml.loader:YAML file /tmp/config/themes.yaml contains duplicate key “paper-card-background-color”. Check lines 5 and 45.
And a whole lot more rows concerning my themes.

Anyone else that has run into this?

So did you check the lines and see if you defined the same variable twice??? That is why you see the error. The solution is self explanatory.

i have the exact code, but now its working for me also
did an update from hassos 2.11 to 2.12 and a cold reboot
now it can be saved!

I just tried this and get this error, error goes away if I remove the !

Any ideas ?

not a valid value for dictionary value @ data[‘options’]. Got {‘workgroup’: ‘WORKGROUP’, ‘username’: ‘!secret samba_username’, ‘password’: ‘!secret samba_password’, ‘interface’: ‘’, ‘allow_hosts’: []}

EDIT: sorry, forgot to save my secrets.yaml

1 Like

Yeah, sort of. I can´t fint the file its referring to so I can´t check for duplicates. However in my themes.yaml file that´s in local/config there are no duplicates.
I just erased a bunch of themes that i´m not using anyway to see what happens.

They are definitely duplicates in themes.yaml file - I had the same error before I saw there were duplicated keys. It even gives you the line numbers…

What’s more it probably doesn’t matter (which doesn’t mean to say it shouldn’t be fixed.)

It does matter actually… Try opening up the Unused Entities or Devices pages - they are most probably blank unless you use the default theme. Try slate theme and you’ll see what I mean.

And that did the trick, removing the unused themes solved the issue. Going for an update soon.

Yes, what I meant was it probably won’t make a difference to the ability to update to 0.99.

1 Like

Oh yeah Nick - no difference for that

Hi there, is it possible to disable the vibration on mobile while pushing entity buttons?

I use it on my mobile as a remote and it’s a bit of a pain with the keys vibrating.

4 Likes

Same here, is this new since 0.99 ?? Never noticed this before

1 Like

Read the release notes: