in today's video we're going to be having a look at the latest announcement from two-year
we're also going to be running through some troubleshooting for the new two-year
integration and if you stick around till the end i'm going to be showing
you some new and upcoming features for the two-year integration check it out
what's going on guys i hope you're all doing well if you didn't know over the last few
months two have been working on a brand new integration for home assistant known as 2uv2
the integration's been receiving regular updates and with each update it's beginning new features
new product support and things like language localization and if you're up to date with your
home assistant news then you'll know that in the latest 2021.10 update the new two-year integration
was added into home assistant core now when this was done the original two-year integration was
removed so if you were using the old one you would have had to move to this brand new one this update
made to you a breaking change and the reason for this is just because it wasn't a direct upgrade
from the original two-year integration to the new one the new integration is a brand new integration
with a brand new code based and it's based on two's new open apis and with the new integration
came a new set of instructions that you're gonna need to follow in order to get the integration up
and running to help out with this i have created a video on it and you'll find a link to that above
and also in the description so if you want a bit of help with that be sure to check out that video
getting set up with the new 2 integration hasn't been plain sailing for everybody but i'm going to
be going through some of the issues that i've been messaged about a lot and hopefully helping you
to resolve them so if you have had any of these issues hopefully this helps but before we get on
with the core integration troubleshooting let's just take a step back and come back to your v2
so at the point of 2021.10 releasing we had two different versions of the two-year integration
we had the two-year core integration which is the new official one and then we have the
2v2 version which was on hax so the official version the version that's just been pulled
into home assistant core this was created by the two-year developers with the help of the
home assistant developers so it's been vetted by home assistant and it meets and passes all
the standards and needs that a core integration must have we've then got two v2 which can be found
on the official two-year github page and you can set it up and install it using the home assistant
community store this version is also created by the 2d developers but the code base isn't in line
with home assistant standards and it doesn't match and meet any of those standards needed for a core
integration which is why we ended up with two different integrations as b2 wasn't written or
designed in a home assistant friendly way so the integration that's been added to home assistant
core had to again be created from scratch so based on that new integration for home assistant
core two you began refactoring the code for v2 with what they'd learned and that's what the 1.6
update mainly focused on two years initial idea was to just refactor the v2 integration so that
it was more in line with the version that's in core that way any future improvements or changes
would be more likely to just be accepted into core 2 you were going to carry on with the development
of v2 so we would have had v2 which two you would have been committing and doing all the changes to
and then we would have had the core version and then i guess two would have just passed the
stuff from the v2 version into core when it was ready to go but the idea just didn't really work
as people would be making changes and updates and just fixing issues and just general problems
with the version that's in core and then the v2 version would be out of sync with this and when
i query two year about this i asked them if they'd be pulling changes and fixes from the version core
into v2 they actually said no so again this would also make the v2 version be out of sync with core
so as of today the v2 version is no longer going to act as the beta and it's also not going to
be developed any further by the two developers so what this does now mean is that there's just going
to be one version which works out well because there's not going to be two different versions for
people to get confused on there's not going to be two versions to have to report issues on and just
maintain and track as of right now the current v2 version currently supports more products and has a
few more features than the official core version but in the next update that should all change
and we'll be talking more about this in just a second so in short the v2 version is no more
if you're currently making use of the v2 version i would highly recommend switching over to the core
version but i'd only do so when the 2021.11 update drops just as it's going to contain those extra
features that are missing as i mentioned at the beginning of the video setting up and installing
the new 2 integration hasn't been plain sailing for everybody so i'm just going to run through
some of the common questions that have been asked a lot in the comments or in messages and hopefully
it helps up first we've got an issue where lights and switches are instantly turning back on or back
off after being turned on or off this issue is caused by the device status notification which
is step six if you're following along with the 2d documentation now i did try and highlight this in
the video that i did if you missed this step or forget to add that on you'll find that when you're
using the integration and you're controlling things like switches and light when you're turning
them on and off you'll find it'll be a bit janky where you'll turn it on and it will instantly
switch back on now you may not have seen my video or you may have just missed that step if you were
watching along but the device status notification is the likely culprit for this problem so if you
are having this issue then you're going to want to go and check that you've authorized this api
now to actually do this you don't need to create a new account you can't add it to an existing
account so if you did miss this step you can just add it back on so let's head over to the developer
iot platform now once you're on the developer platform you're going to want to choose cloud
and then development and from here we're going to want to select our cloud project that we created
so in my case here it was 2uv2 with your project selected you're going to want to come to the top
here and you're going to want to choose service api in my list here i can see that i've got the
device status notification already authorized but if you didn't have this you'd need to click this
go to authorize in the top right you'll then be presented with an authorization box and in here
you're going to want to start typing device status notification as you start typing that you should
see that appear and it should have a little blue subscribe next to it so if you were to click that
for the device status notification it would add it to your list you should then see the device
status notification in your list and you should be good to go all you'll now need to do is just head
back into home assistant give it a reboot and then when you try toggling on and off those lights and
switches they should just go to the correct state and not instantly switch back another message
i've had a lot is how do i go about setting up the trial account because it's now moved
so previously when setting up a cloud account to you would require you to set up a trial account
and to do this you'd actually have to run through the whole process as if you were buying an account
but you don't actually pay anything but this process has now been streamlined and you don't
actually have to set up a trial account one's just applied by default so you can just click to create
a cloud project and you're good to go moving on another error that i've had reported to me a lot
is an error popping up when trying to actually add the new to your integration so this error is
a pop-up that says the conflict flow could not be loaded so you'll see this message as a pop-up and
if you were to look at your logs you'd also see a similar message now the reason this one happens is
because you're installing two-year whilst you've already got the 2uv2 integration installed as well
a simple solution for this one is just remove the 2uv2 integration and restart home assistant
if you're still getting that error also check your file editor and make sure that in your custom
components that the 2uv2 component is also removed the next error is to do with two years cloud cross
region limitation so with this one you'll see an error when you're trying to scan the qr code with
youtube or smart life app this error will occur if you're trying to add your two year or smart life
devices that you've got registered to your account to an unsupported data center so this probably
means that you've set the data center wrong on your 2u cloud project if you are getting this
error i'll have some links in the description below where you can go and check out two years
official documentation to find out which regions you should be using up next i've had a bunch
of different messages with two-year error codes with the most popular error code being error 1004
i think this one's probably the most popular error because i think people are trying to sign into the
integration using the developer account so when you're setting up the integration it's going to
ask you for your account username and password and for this you need to make sure you're using
youtube or smartlife account and not the developer account i have also received a few of the other
error codes but rather than run through them all i'll just leave a link to the home assistant
documentation which explains each of the error codes and what you can do to solve them okay so
the last one i'm briefly going to touch on then is missing devices and this is where your integration
is just missing a few devices or all of them two of the common reasons i've seen for this
is that you're moving from the v2 integration to the core one so currently the v2 integration has
more devices supported so when you actually move into core you're actually losing those devices
so with this one you'll probably just notice a few different devices missing but if you notice that
all of the devices are missing then you've more than likely got the wrong data center chosen if
you're on the iot platform and you've linked your two-year or smart life account and you can't view
any of your devices then it means that your data center is set wrong so once you change that there
the integration should start seeing those devices too so i think all this talk about missing and
unsupported devices segues us nicely onto our final section of the video which is upcoming
features so this is the part of the video where i tell you that the 2d integration has just been
franked just in case you didn't know who frank was frank is one of the main home assistant developers
and he literally contributes to all the various corners of home assistant you probably also know
frank is the guy that has the mammoth task of collating all of the home assistant release notes
and if you catch any of the home assistant live events or release parties then you will
have definitely seen him so for the last week in a bit frank's been doing a lot of work on
the two-year integration and he's implemented a whole bunch of things things like a working
early build of the two-year camera platform which also includes doorbells and yes those doorbells
have push notifications and just to make you aware this is an early prototype but it's a massive step
forward and cameras and doorbells in the 2-year integration is something we've never had before
he's also been on a mass 3 refactoring and rewriting the two-year lights he's added
support for the highly requested dimmer switches he's made a lot of the light code reusable he's
improved the colors he's improved the temperature he's added support for a whole bunch of different
light categories and all in all just overhauled the whole of the two-year lights and that's
just a small fraction of the things that he's been working on you'll find a whole bunch more
and you'll find all of these things in the home assistant 2021.11 update now i'm not going to run
through all these things but if you are interested in knowing a bit more i'll leave a link to frank's
twitter in the description below and i'll also leave a link to the home assistant core git repo
so you can go and check out the pull request for these things midway through the week i did also
get the chance to sit down and chat with frank about home assistant tech two-year and some crazy
conspiracy theories thank you again for that frank and for all the work that you do and not just on
the two-year integration but on home assistant as a whole if you've enjoyed this video and found it
useful then don't forget to drop me a like and if you're not already hit that subscribe button
and ding dong the notification bell and you'll be alerted to any future video that i do as always
a massive thank you to these awesome dudes these awesome dudes my patrons if you're interested in
supporting my channel and becoming one of these awesome dudes then there'll be a link to my
patreon in the description below so thank you for watching and i'll catch you in the next one cheers
you