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


#61

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


#62

Finally. I got it works. Hooray!


#63

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


#64

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

#65

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


#66

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

#67

Anyone know how to change username for owner?

//Beach


#68

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


#69

Thanks, worked perfect:-)


#70

Is anyone getting API exception errors with the Tuya component?


#71

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.


#72

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:


#73

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


#74

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