New Color Setting trait: Formatting thoughts

#21

I’ve just checked it on a test system by pulling new images. It worked as supposed. However, I could only try x86 architecture (I don’t have an RPi quickly available).

I can only imagine there is something wrong with your update process.
Please try this exact sequence:
docker-compose stop
docker-compose rm -f web redis-worker
docker-compose pull
docker-compose up -d

0 Likes

#22

Still not good here.
For the arm32v6, I also updated web-fpm:

[email protected]:/opt/gbridge $ sudo docker-compose stop
Stopping gbridge_web_1          ... done
Stopping gbridge_redis-worker_1 ... done
Stopping web-fpm                ... done
Stopping gbridge_database_1     ... done
Stopping gbridge_cache_1        ... done
[email protected]:/opt/gbridge $ sudo docker-compose rm -f web redis-worker web-fpm
Going to remove gbridge_web_1, gbridge_redis-worker_1, web-fpm
Removing gbridge_web_1          ... done
Removing gbridge_redis-worker_1 ... done
Removing web-fpm                ... done
[email protected]:/opt/gbridge $ sudo docker-compose pull
Pulling cache        ... done
Pulling redis-worker ... done
Pulling web-fpm      ... done
Pulling database     ... done
Pulling web          ... done
[email protected]:/opt/gbridge $ sudo docker-compose up -d
Starting gbridge_cache_1    ... done
Starting gbridge_database_1     ... done
Creating web-fpm                ... done
Creating gbridge_redis-worker_1 ... done
Creating gbridge_web_1          ... done

Sorry to bother you, I don’t understand.

0 Likes

#23

I’ve set up an environment for emulation and pulled the “blank” image.
Your issue seems to be related to docker (or its usage). I’ll give it another thought, but can’t promise anything here.

[email protected]:~/gBridge-docker-arm32v6$ docker pull pkap/gbridge-web-fpm:arm32v6-latest
arm32v6-latest: Pulling from pkap/gbridge-web-fpm
...
e1b1378b6abe: Pull complete
Digest: sha256:72efd5039047f37655188f265571b7df7235cd896eefb9f65d1bebf8d4a9870d
Status: Downloaded newer image for pkap/gbridge-web-fpm:arm32v6-latest
[email protected]:~/gBridge-docker-arm32v6$ docker run -d pkap/gbridge-web-fpm:arm32v6-latest
542e8d7971e81932ca7c42b4d60d578dad54e7a391346616bbdf3c9d6359810c
[email protected]:~/gBridge-docker-arm32v6$ docker ps
CONTAINER ID        IMAGE                                 COMMAND                  CREATED             STATUS              PORTS               NAMES
542e8d7971e8        pkap/gbridge-web-fpm:arm32v6-latest   "docker-php-entrypoi…"   15 seconds ago      Up 14 seconds       9000/tcp            peaceful_ride
[email protected]:~/gBridge-docker-arm32v6$ docker exec -it peaceful_ride /bin/sh
/var/www # ls -al database/migrations/
total 180
drwxrwxr-x    1 www-data www-data      4096 Apr 11 16:50 .
drwxrwxr-x    1 www-data www-data      4096 Apr 11 16:50 ..
-rw-rw-r--    1 www-data www-data       832 Apr 11 16:50 2014_10_12_000000_create_users_table.php
...
-rw-rw-r--    1 www-data www-data       844 Apr 11 16:50 2019_03_23_184412_create_api_key_table.php
-rw-rw-r--    1 www-data www-data      1538 Apr 11 16:50 2019_03_24_095707_add_colorsetting_trait_type.php
0 Likes

#24

What you said has been bothering me so I try something.
I removed the volume shared for the websrc.

[email protected]:/opt/gbridge $ sudo docker-compose rm -f web redis-worker web-fpm
Going to remove gbridge_web_1, gbridge_redis-worker_1, web-fpm
Removing gbridge_web_1 … done
Removing gbridge_redis-worker_1 … done
Removing web-fpm … done
[email protected]:/opt/gbridge $ sudo docker volume rm gbridge_websrc
gbridge_websrc
[email protected]:/opt/gbridge $ sudo docker-compose up -d
Creating volume “gbridge_websrc” with default driver
Starting gbridge_cache_1 … done
Starting gbridge_database_1 … done
Creating web-fpm … done
Creating gbridge_redis-worker_1 … done
Creating gbridge_web_1 … done
[email protected]:/opt/gbridge $ sudo docker-compose exec web-fpm php artisan migrate


  • Application In Production!     *
    

Do you really wish to run this command? (yes/no) [no]:

yes

Migrating: 2019_03_23_182751_add_loginusername_column
Migrated: 2019_03_23_182751_add_loginusername_column
Migrating: 2019_03_23_184412_create_api_key_table
Migrated: 2019_03_23_184412_create_api_key_table
Migrating: 2019_03_24_095707_add_colorsetting_trait_type
Migrated: 2019_03_24_095707_add_colorsetting_trait_type

Et voilà !

Thanks for your time.

0 Likes

#25

Worked for me too!!

Also had to delete and re-create the volume + images.

0 Likes

#26

Hi All,

Anyone managed to make Google Home control color lamp ? :slight_smile:

Because i can’t find the right phrase :frowning:

Google does not recognize :
“Hey Google, Turn “light name” Red/Green/Blue/Whatever color”

Any ideas ?

0 Likes

#27

I’ve now got this working for my setup. I’ll share how, in case it helps anyone!

I use McLighting and also Hyperion with node-red to control my lights. Mclighting requires a HEX value preceded by an asterix and Hyperion requires JSON RGB values in a specific format.

I realised that gBridge doesn’t allow Colour Setting (JSON) and (RGB) to be used at the same time so I extract the provided values from the colorsetting(JSON) response using a JSON node and a Template node in node-red

*{{payload.hex}} (output as plain text)
{"color":[{{payload.red}},{{payload.green}},{{payload.blue}}]} (output as parsed JSON)

It would be great if I could also request effects in the payload, but I guess this is limited by Google’s implementation of the Color Setting. Curious if there’s a way to do this…?

0 Likes

#28

What’s your native language? Or are you trying the english phrases?

I’ve found that Google Assistant reacts to quite different phrases depending on your selected language. I just speak few languages, so I can’t do a full test there…

0 Likes

#29

What do you mean with “effects”? Like fading from one color to another in a certain duration? Just curious to know…

However, the current implementation of ColorSetting reflects almost all features that Google provides.

If you like and you specify your request a bit more detailed, I could write a feature request for Google. Its highly unlikely that they’ll implement it anytime soon them - but at least it is on their list :thinking:

0 Likes

#30

Hi,

Well i set Google home to country US, language English (US).

But nothing is working. Probably Google detects that i’m not in US and this feature is disabled in Bulgaria :smiley:

0 Likes

#31

Any idea if color control from the app will be available soon?

0 Likes

#32

We need to ask our friends from Actions on Google this question. I haven’t heard anything from them.

My guess: Hell will freeze over before they eventually properly implement all their features marked as “supported”. Another example are sensor devices: They have promised to add them during the I/O 2018 conference. Unfortunately, there is nothing I can do other than annoy they with support tickets - but they usually only respond “we will look into this”…

1 Like