Another little handy trick which I use more than I thought I would with #homeassistant is the ability to turn my #PS4 on with the touch of the button.
I can also say to #Alexa:
Alexa, turn my Playstation on
And as if by magic, she will turn my PS4 on for me without me even lifting a finger. I will post more on how to use Alexa with Home Assistant commands in another post.
The app you want to install is called “PS4-Waker“
This tool is really simple to install and by following the instructions on the link above can be done within minutes. You then need to follow the instructions to get it connect to your PS4, you also need to use the PlayStation app on your Android/iOS device as part of the process.
Then to get a switch into HomeAssistant – Just add the following:
# PS4 Switcher
command_on: ‘sudo ps4-waker’
command_off: ‘sudo ps4-waker standby’
friendly_name: PS4 Power
For some time when I wanted to reboot #homeassistant I would also completely reboot my raspberry pi using the command:
But then I found a nice little way of just restarting the service:
sudo systemctl restart home-assistant.service
It’s pretty basic stuff, but if it helps one person I am happy!
Up until recently I was modifying my files via the command line using sudo nano configuration.yaml but a friend said to me why don’t you setup SMB shares on my raspberry pi so I could easily access and edit them. This also comes in handy for checking the home-assistant.log to find out why home assistant hasn’t booted up correctly.
First if you haven’t already you need to install samba
sudo apt-get install samba samba-common-bin
Now you will need to edit your config file to setup the shares
sudo nano /etc/samba/smb.conf
Now here is a snippet from my smb.conf file you can find the shares within the smb.conf file by searching for:
path = /
comment = No comment
browsable = yes
read only = no
valid users =
writable = yes
guest ok = yes
public = yes
create mask = 0777
directory mask = 0777
force user = root
force create mode = 0777
force directory mode = 0777
hosts allow =
So the above now shows within my folders as:
I’ve been using HomeAssistant for a while and as my configuration.yaml file gets larger and larger it’s getting more and more passwords and api keys in. I wanted to neaten this up and also helps when you want to send the configuration.yaml file to other people to ask for help etc.
By using !secret options you can hide all of your passwords and api keys in a different file and can still be read by home assistant.
In the root of your home assistant directory create a file called secrets.yaml
add lines such as:
now within your configuration.yaml file where the password for the above is, simply type: !secret http_password
This will then read the secrets.yaml file and load the password from this file. This can also be done for api codes as well and keeps some extra security on your configuration.yaml file
This is basically what my weekend has been:
I’ve been sat staring at this screen for quite a while… not because I am sad, but because this game is so bloody addictive!
This is an actual screenshot from my game right now as I write this, it gets so annoying waiting for the money to rack up but also I’m not letting the trophy “The Great AdVenture! – Unlock the 626th Achievement on Earth” get out of my sights now I’ve come so far.
Even though there is a money glitch, which is actually really simple to do: While in the game, set the date of your PS4 system to the year 2000, go back into the game, wait about 15 seconds, close the game, change the date of PS4 to 2099 and then launch the game. INSTANT money. (You can repeat as many times as you want with this.)
Even still with the money glitch, it’s still addictive it just helps things move along quickly!
I have to say though, for a free game, it’s nice, simple, addictive so if you get addicted to things easily I wouldn’t recommend it 😉 the amount of times I’ve nearly thrown my controller with getting fed up of waiting. Best of all, the money still racks up if you are offline. It uses the PS4 clock to work out how long 😉
If I was to describe this game in just a few words it would be “what the actual fuck” that was before I got playing it and actually got into it. It’s actually a really clever game, it makes me laugh, makes me smile, gets me thinking and also makes you think differently. Its so hard to explain.
This morning I’ve played as so many objects, creatures, trees, particles and the narration throughout the game is something else, this guy could read me a bed time story and I would have no issues falling asleep!
I’ve only been playing it for a good couple of hours today, for £11.99 I reckon I’ve had my moneys worth already! It’s nice to not actually have set objectives, to free roam around as well EVERYTHING!
I’ve not much more to say at the minute but as I’m currently floating around the sky as a set of leaves paired up with other leaves and breeding with them… here’s a thought.. if you want to play as anything and everything give this game a go.
There is a known compatibility issue with SharePoint 2010 and Windows Management Framework 4.0 (WMF), which also includes PowerShell 3.0. If you install these components on a server that also runs SharePoint 2010, you may encounter errors when running SharePoint PowerShell cmdlets:
PS C:\> Add-PSSnapin Microsoft.SharePoint.PowerShell
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
PS C:\> Get-SPEnterpriseSearchServiceApplication
Get-SPEnterpriseSearchServiceApplication : Microsoft SharePoint is not supported with version 4.0.30319.1008 of the Microsoft .Net Runtime.
Although this is not a supported configuration, there is a workaround to force PowerShell 2.0 documented in KB 2796733 – SharePoint 2010 Management Shell does not load with Windows PowerShell 3.0
What isn’t mentioned in the KB article is a different combination when this issue can occur, even if WMF 4.0 isn’t installed. If your PowerShell version is 2.0 but configured to run with .NET 4.x CLR, you will still see the errors.
The $PSVersionTable will show the version of PowerShell and .NET that is being used. If it shows a CLRVersion of 4.x, you will probably still have problems running SharePoint 2010 cmdlets:
PS C:\> $PSVersionTable
You can override the .NET CLR version with these steps:
Create or edit a file at $pshome\powershell.exe.config
- If you use the ISE, also do the same for powershell_ise.exe.config
Insert or edit the contents so that the line for the v2.x supportedRuntime is listed before the v4.x line.
- Save the file and reopen any previous PowerShell sessions
- Test by adding the SharePoint snap-in, and running some SharePoint cmdlets, e.g.
This is similar to the procedure described in this post, but with forcing .NET version 2.x instead of version 4.x.
If this helps you, or if you still encounter these issues when running SharePoint 2010 PowerShell cmdlets, please post a comment or send me an e-mail.
I recently had a problem where I have a site for hosting #SharePoint #Surveys. This was working amazingly with custom permissions so the users could only add items. The problem came when we introduced #branching into the questions. It appears that SharePoint creates the item after the first question so when the second one comes around the user will get “Access Denied” message. Obviously something as simple as this to fix shouldn’t have taken this long to figure out!
So if you have the same problem, just give your #PermissionLevels edit access as well as #AddItems – especially if you want to use branching!
So recently I came across this error within #SharePoint2013.
Search service overall state: Degraded
This was actually really easy to fix for me in this instance. Both of my WFE’s had run out of space on the Index #LUNs. As soon as I expanded the disk, the #Degraded warning triangle disappeared!
Nice and simple but make sure you check this before resetting the Index.
Well I’ve been doing the Atkins diet for a couple of weeks now and I can already tell a huge difference in how I look and feel. I know you are only supposed to do #Induction #Phase1 for a couple of weeks but I’ve decided I’m going to continue for another couple of weeks before I go to #Ibiza.
I had a moment of weakness last night, I went out for a few drinks #CoorsLight with it only being 4 carbs per pint, I ended up having about 6, a cheeseburger and chips and a pizza come last night! It’s fair to say I am well and truly out of #Ketosis! I don’t mind though, It’s just what was needed and has given me the boost to do another 2 weeks really hardcore.
I’ll be glad when I get to the end of this, but I really do think it’s the best way to change your diet, eating habits and to lose weight quickly!
I’ve noticed a huge drop in my body fat (according to my #Withings WIFI scales) and also about 10lbs off what I weigh, so it’s worth it when you start seeing results like that! Hopefully I will lose just over a stone on the next couple of weeks!