Showing posts with label Google. Show all posts
Showing posts with label Google. Show all posts

Wednesday, December 18, 2019

A New Standard for Home Automation

Big news this week, Apple, Google, Zigbee Alliance, Amazon, Samsung, Ikea, and every other company in the world are getting together and building a new standard for home automation! Sounds wonderful doesn't it?

Today it is hard to get homelkit stuff to work with Phillips Hue. Google doesn't work with Amazon, and so on. This new alliance will be the answer to the worlds problem. Peace in the middle east, no more starving children, climate change has ended.

Yea right!

Before this standard will be mainstream, it'll take at lease a year before the standard is hammered out, assuming everyone cooperates. Hardware built to meet this standard will come shortly after that, maybe. Will it all interoperate? no one knows.

It'll likely take 5 years or more for the most of these manufacturers switch their devices exclusivly to this standard. Between the time it takes to flesh out the standard, getting the functions needed on these standard, and the manufacturing pipeline, it is just the way things are. No one needs to stall to make this take so long, it just will take that long.  

Standards are written to be slightly ambiguous, for many reasons. Google will interpret one part different than Apple interpreted it, as well as Amazon, so they will work similar, but not totally compatible. It is the way life it. Certainly a zigbee device won't be able to talk to a BLE device, who can't talk to a WiFi device.

This new standard will work in the hubs, and almost no where else. The hubs will talk to the devices that manufacturer built them to work with, and nothing else. That sounds like the way things are today, only there is likely to be more things that work with the Amazon or Google hubs.

What should you do?

  • Wait? that is fine, if you have been waiting and have limited need for home automation. Maybe pick a hub after one is released in a couple years, and a couple minor devices at the same time. After 3-7 years, it will be ok to stick with products that promise to work with the hub you picked.
  • Keep using what you have? If you have something and it is working for you, keep going. No need to change now. Maybe in the future, your protocol will migrate to the new protocol, or the new hub will support legacy protocols. 
  • Pick something and start now? If you want home automation now, then pick something and get started. It should keep working for then next few years, unless the manufacturer changes their mind or goes out of business (and plenty have, including Best Buy, Lowes, and others). 

The home automation landscape hasn't changed a bit with this new standard. Over the last 20 years companies have come and gone in this space. Having a bunch of companies get together and promise a new protocol changes nothing.

Home automation is a little easier than maybe 20 years ago, but it is still someone mostly for tech savvy individuals. Nothing wrong with that. If you are handy with the soldering iron and some coding, the NodeMCU/Node-Red solution will work. If you want plug and play, pick a manufacturer and stay in that eco-system.

Monday, April 22, 2019

Knowing The Garage Status

I've finally got it working the way I want. If you have been following my garage work, for the last 10 years, I have wanted a way to know if I closed the garage door after I left. I tried several ways, using email and other schemes to know. I finally have a way to know, and it seems quite reliable.

I have Google assistant acting as the middle agent, and with the rest of the infrastructure it seems to be very reliable. Node red knows the state, and has all winter. The voice assistant that I brought up last post is connected to node red, and I have MQTT messages going to the Google assistant. I can ask Google assistant on my phone or tabled to know the current state.

The two categories for doors in gBridge are:

gBridge/uNNN/d4149/openclose is for querying the current state. gBridge/uNNN/d4149/openclose/set is for setting the current state. If I can get the garage device to talk to node red (I am trying, stay tuned), then I will have the node-red control the garage. For now, I am still using the garage android app.



I've broken up the garage flow, and added two new functions. I created a combiner, that will mix the state of the two doors into one message. I have the combiner return a payload of open if either door is open, otherwise will retrun a payload of closed. That function looks like:

// if either door is open, return open, otherwise if both // doors are closed return closed.
context.bigDoor = context.bigDoor || 'closed';context.littleDoor = context.littleDoor || 'closed';
if (msg.topic === 'garage/bigDoor') {  context.bigDoor = msg.payload;} else if (msg.topic === 'garage/littleDoor') {  context.littleDoor = msg.payload;} 
if ((context.littleDoor === 'open') || (context.bigDoor === 'open')) {        msg.payload = 'open';} else {    msg.payload = 'closed';}msg.topic = 'garage/door';
return msg;


The alarm function node was simplified, to only check the state of the combined nodes and the time.

// if either door is open, after 11pm and before 6am // sound an alarm.
context.hour = context.global.hour || 12;context.door = context.door || 'closed';
if (msg.topic === 'garage/door') {  context.door = msg.payload;} else if (msg.topic === 'time/ISO-8601') {    context.hour = msg.payload.hour;}
// check the status, to know if alarm should be onif ((context.door === 'open')  &&    (context.hour > 22) || (context.hour < 6)) {    // msg.payload = "on " + context.therm + " " + context.temp;    msg.payload = 'on';} else {    msg.payload = 'off';}return msg;

This should make the alarm more reliable as well.

The new function node converts the payload "open" or "closed" to "100" or "0" that the gBridge door nodes expect. The value can be something between 0 and 100 to indicate partially open or closed. I haven't played with it, so I don't know if there is a threshold, but the voice will say "open" if the value is set to 100.

// Convert a msg payload that says "open" or "closed"// to a msg.payload "100" for open, and "0" flr closed
context.flow.value = context.flow.value || "0";context.flow.newVal = context.flow.newVal || "0";
if (msg.payload === 'open'){    context.flow.newVal = "100";} else {    context.flow.newVal = "0"}
if (context.flow.newVal === context.flow.value) {    //msg.payload = {newVal: context.flow.newVal,    //               value: context.flow.value};    //return msg;} else {    msg.payload = context.flow.newVal;    context.flow.value = context.flow.newVal;    return msg;}

I have the ConvOpenCloseTo100or0 function will only send a message on a change. If the door is closed, the MQTT message will only be sent once if either door is opened. Again, if a door is open, it will only send the MQTT message when both doors are closed.

This is something that may allow Google to invade my privacy a little. It should still keep all the logic inside my house (on the edge).


Saturday, January 4, 2014

Careful With Cheap Tablets

Google has had a policy that unless a tablet meets some specification, you cannot participate in the Google PlayStore. Sometimes tablets would meet the specification, but they weren't tested for it.



It used to be, most tablets, if they could get the PlayStore app loaded, will allow loading apps on your tablet. Now, Google seems to be enforcing the policy, and not allowing tablets and phones with Google PlayStore to download applications. The list of approved devices is pretty extensive, but not complete. One of my favorite vendors isn't on the list at all (JXD).

Like everything, there are ways around this. Sideloading is an old concept, and can be used. There is another way to load apps to your Android device, called pulling. I am not sure about the technicalities of the differences, but the idea is, if you have a legitimate Android device, that is approved to use the Google PlayStore, then you can get apps on the other device. They may not always work, but they probably will.

These loading methods won't let you get paid apps for free, but they will let you run free apps on devices that maybe Google doesn't think you should be able to run them on.

Probably the first app to load on these "unapproved" devices is GetJar. GetJar is another playstore like place that you can download apps to various devices. GetJar is smart about the devices you have, so you don't get Intel or Mips binaries on ARM devices. True, if you have a fat binary, the app will probably run on any processor, and most OS versions, but some apps require a minimum OS version (IE 4.1) and a specific processor (IE ARM).

The cheap tablets work, and can be used, but you have to know a little more than using a name brand tablet.





Thursday, May 23, 2013

I guess I might be committed to Samsung (for now)

I finally got my tablet, maybe two weeks ago. It was off of eBay again. This time the experience was amazing. It showed up when promised, and with some extras. 

I got a Samsung 16GB Galaxy Note 10.1. It is WiFi only, and I am ok with that for now. Once in a while I would like it connected while I am away from WiFi connections, but mostly I get by. I have the NoteII, and can mostly do what I need to on that. The Note II can act as a hotspot, but I am on an old contract with T-Mobile, and they will charge an extra $20/month if I do that. I've asked about switching to their monthly plan, since that has hotspot included. The guy at the store was vague, about the savings, and I was in a hurry, so I went home, and wished I had more time.

Overall the tablet experience is great! The Samsung will allow running many apps in separate windows, and you can see them all. It is clunky, with the touch interface, and forces click to type, rather than hover (I am an old X windows user, I still rely on hover to type to be efficient). It is probably the most useful feature that Samsung added over the stock android. Touch wiz is fine, no specific complaints. 

Surprises in the software included Peel a TV controller, super easy to setup. PS Touch a fancy media editor. FlipBoard a news reader. When I first logged in, the apps all synced up with my phone! It was good and bad. My kids had a bunch of games so the games are mostly on both my phone and the tablet. I keep saying I'll clean them up, but so far I really havn't (I've had the angry birds making noises in meetings!).

I mostly won't setup a Samsung account. I see nothing for me compared to the Google version of the same services. When I got the phone, it came with a DropBox account, so I signed up, but I only use the Google Drive. 

The screen is readable in sunlight. Unless the sun is pointing right at the screen, you can see it all the time. It has enough bezel so holding the device, you aren't pressing buttons. 

It came without swype or any of the drag around keyboards. I thought that was going to be bad, but with the 10 in screen in landscape, the stock keyboard is mostly usable.  I did get a bluetooth keyboard for it. It makes a nice cover. The one I got is aluminium, and will snap to the front or back. Snapping it on the back is nice when it isn't needed in meeting and such. It is super lightweight, so light that you can't stand the 10in tablet in portrait mode, since the tablet will tip it over. It isn't as good as a laptop, since the screen will pop out if you wiggle around.

Battery life is pretty amazing. A couple days on a charge is really good. The proprietary connector is a pain. I did order an OTG dongle, but that hasn't arrived yet. It is kind of big, so I probably won't use it much.  

The UI is pretty standard. Nothing special there, other than the window controls. I am getting to like Google Now, so I am ok with letting Google read my mail and such.

I've also been Listening to +AndroidCentral, +AllAboutAndroid and +ThisWeekInGoogle podcasts from Google IO. Lots of good stuff coming making the whole Android experience richer. I see only good things coming up.

Write Soon