0.74: Tuya, Cloudflare DNS, Push Camera and Users UI

I cannot attached picture on discord. I really got problem with auth_providers: After downgrade to 0.73.2 work fine. Then I slowly upgrade to 0.74.0 with setting of auth_providers: and auth: Make the name, username and password. Then show
1

Finally. I got it works. Hooray!

How,
Please write the solution, so that in case anyone had same problem,
It can be solved

If you are on ha 0.74.0 and want to enable auth_providers:

homeassistant:
  auth_providers:
    - type: homeassistant
    - type: legacy_api_password  #use this function to enable to login to your ha on iphone app and some component that still use api_password to login to ha
auth:

if you are on ha 0.74.1 and want to enable auth_providers:

homeassistant:
  auth_providers:
    - type: homeassistant
    - type: legacy_api_password   #use this function to enable to login to your ha on iphone app and some component that still use api_password to login to ha

in configuration.yaml under http:

http:
  base_url: !secret base_url    # mine is include server_port inside, example http://local-ip:8123 or https://name.duckdns.org:8123
  api_password: !secret api_password
#  server_port: !secret server_port  # un-comment # if you seperate server_port from base_url
  ssl_certificate: !secret ssl_certificate
  ssl_key: !secret ssl_key
#  cors_allowed_origins:  #everything under this line in http component has to be # comment
#   - !secret cors_1
#   - !secret cors_2
#  use_x_forwarded_for: true
#  trusted_proxies:
#    - 127.0.0.1
#    - ::1
#  trusted_networks:
#   - !secret trusted_1
#  ip_ban_enabled: true
#  login_attempts_threshold: 3

We had an issue with people that had cors_allowed_origins defined in 0.74.1 but that was resolved in .0.74.2

i get error ‘‘FFmpeg isn’t running!’’ after this update how can i solve this ?

config:

ffmpeg:
  ffmpeg_bin: /usr/bin/ffmpeg
camera:
   - platform: ffmpeg
     name: Camera Tuin
     input: rtsp://has:[email protected]:554/Streaming/Channels/2
     extra_arguments: -vf scale=640:360

Anyone know how to change username for owner?

//Beach

You need modify two files together to changer username, [your_config_folder]/.storage/auth and [your_config_folder]/.storage/auth_provider.homeassistant

Thanks, worked perfect:-)

Is anyone getting API exception errors with the Tuya component?

I was until I realised you need to completely close out of the app. Seems you only get one websocket at a time into Tuya.

Awesome to see Tuya in the mix - thanks @huangyupeng !

Are there any plans to integrate the energy monitoring feature of many Tuya plugs as a sensor? That would be amazing :grinning:

1 Like

tuya stopped working from yesterday
i get this error even i have corrrect informattion

my config:

Tuya/Arilux/Smartlife Components

tuya:
username: !secret tuya_username
password: !secret tuya_password
country_code: !secret tuya_country_code

2018-08-18 16:05:12 ERROR (MainThread) [homeassistant.setup] Error during setup of component tuya
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py”, line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 331, in iter
yield self # This tells Task to wait for completion.
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 244, in _wakeup
future.result()
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 244, in result
raise self._exception
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/tuya.py”, line 63, in setup
tuya.init(username, password, country_code)
File “/srv/homeassistant/lib/python3.6/site-packages/tuyapy/tuyaapi.py”, line 44, in init
self.get_access_token()
File “/srv/homeassistant/lib/python3.6/site-packages/tuyapy/tuyaapi.py”, line 62, in get_access_token
raise TuyaAPIException(“get access token failed”)
tuyapy.tuyaapi.TuyaAPIException: get access token failed
2018-08-18 16:05:13 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of light.tuya. Setup failed for dependencies: tuya

You mean only on HA or even their SmartLife mobile app not detecting your devices? Any update on this issue?