Thanks Mehmet, its working 100%.
Thank you! It works.
What if I want to control the volume of google home and the volume of my smart tv which is located on the same room?
Works again like a charm. Thank you so much.
Works perfectly again!
Thank you very much!
Claudio
It works perfectly now! Thanks a lot!
cant etablish connection, check your connection error: I’m going crazy, please help me.
- OH Cloud service is connected
- Exposed the items via UI interface in Configuration > Services > IO > openHAB Cloud > Configuration
- Checked, rechecked and rechecked again items file for an error but it seems to be ok
// GRUPPI - STANZE
Group gCasa "Casa" <house>
Group gIngresso "Ingresso" <frontdoor> (gCasa)
Group gLavanderia "Lavanderia" <washingmachine> (gCasa)
Group gBagno "Bagno" <toilet> (gCasa)
Group gBalcone "Balcone" (gCasa)
Group gCamera_letto "Camera da Letto" <bedroom> (gCasa)
Group gCorridoio_ingresso "Corridio ingresso" <corridor> (gCasa)
Group gGarage "Garage" <garage> (gCasa)
Group gCucina "Cucina" <kitchen> (gCasa)
Group gSoggiorno "Soggiorno" <parents_2_4> (gCasa)
Group gCameretta "Cameretta" <bedroom> (gCasa)
Group gCorridoio "Corridoio" <corridor> (gCasa)
// GRUPPI - COMANDI
Group:Switch:OR(ON, OFF) gLight "Luce" <light> (gCasa, gPersistenceChange)
Group:Rollershutter:MAX gShutter "Persiana" <rollershutter> (gCasa, gPersistenceChange)
// GRUPPI - CONSUMI
Group:Number:SUM gPower "Elettricità" <poweroutlet> (gCasa, gPersistenceChange)
Group:Number:SUM gPower_G "Elettricità" <poweroutlet> (gCasa, gPersistence1d)
// GRUPPI - PERSISTENZA
Group gPersistence
Group gPersistence1m
Group gPersistence1h
Group gPersistence1d
Group gPersistenceChange
// GLOBALI
Switch All_Light "Tutte le luci" <light>
Number All_Shutter "Tutte le tapparelle" <rollershutter>
// INGRESSO
Switch Ingresso_Light "Luce" <light> (gIngresso, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-ingresso/POWER:command:*:default],<[openhab:stat/sonoff-touch-ingresso/POWER:state:default]" }
// LAVANDERIA
Switch Lavanderia_Light "Luci lavanderia" <light> (gLavanderia, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-lavanderia/POWER:command:*:default],<[openhab:stat/sonoff-touch-lavanderia/POWER:state:default]" }
//Switch Lavanderia_Power "Lavatrice" <washingmachine_2> (Lavanderia) [ "Switchable" ] { mqtt=">[openhab:cmnd/sonoff-pow-lavatrice/POWER:command:*:default],<[openhab:stat/sonoff-pow-lavatrice/POWER:state:default]" }
// BAGNO
Switch Bagno_Light "Luci bagno" <light> (gBagno, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-bagno/POWER:command:*:default],<[openhab:stat/sonoff-touch-bagno/POWER:state:default]" }
Rollershutter Bagno_Shutter "Persiana [%d %%]" <rollershutter> (gBagno, gShutter) { channel="zwave:device:efddf849:node2:blinds_control" }
// BALCONE
Switch Balcone_Light "Luci balcone sinistra" <light> (gBalcone, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-basic-balcone-salone/POWER:command:*:default],<[openhab:stat/sonoff-basic-balcone-salone/POWER:state:default]" }
Switch Balcone_Light_1 "Luci balcone destra" <light> (gBalcone, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-basic-balcone-camera-lett/POWER:command:*:default],<[openhab:stat/sonoff-basic-balcone-camera-lett/POWER:state:default]" }
// CAMERA
Switch Camera_letto_Light "Luci camera da letto" <light> (gCamera_letto, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-camera-letto/POWER1:command:*:default],<[openhab:stat/sonoff-touch-camera-letto/POWER1:state:default]" }
Switch Camera_letto_Light_2 "Specchio camera da letto" <light> (gCamera_letto, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-camera-letto/POWER2:command:*:default],<[openhab:stat/sonoff-touch-camera-letto/POWER2:state:default]" }
Switch Camera_letto_Light_3 { mqtt=">[openhab:cmnd/sonoff-touch-camera-letto/POWER3:command:*:default],<[openhab:stat/sonoff-touch-camera-letto/POWER3:state:default]" }
Color Camera_letto_Light_4_color "Colore led"
Switch Camera_letto_Light_4 "Led camera da letto sinistra" <light> (gCamera_letto, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-led-camera-letto-sx/POWER:command:*:default], <[openhab:tele/sonoff-led-camera-letto-sx/STATE:state:JSONPATH($.POWER)"}
Switch Camera_letto_Light_5 "Led camera da letto destra" { mqtt=">[openhab:cmnd/sonoff-led-camera-letto-dx/POWER:command:*:default], <[openhab:tele/sonoff-led-camera-letto-dx/STATE:state:JSONPATH($.POWER)"}
Rollershutter Camera_letto_Shutter "Persiana [%d %%]" <rollershutter> (gCamera_letto, gShutter) { channel="zwave:device:efddf849:node3:blinds_control" }
// CORRIDOIO LATO SPECCHIO
Switch Corridoio_Light { mqtt=">[openhab:cmnd/sonoff-touch-corridoio-specchio/POWER1:command:*:default],<[openhab:stat/sonoff-touch-corridoio-specchio/POWER1:state:default]" }
Switch Corridoio_Light_1 { mqtt=">[openhab:cmnd/sonoff-touch-corridoio-specchio/POWER2:command:*:default],<[openhab:stat/sonoff-touch-corridoio-specchio/POWER2:state:default]" }
Switch Corridoio_Light_2 "Luci corridoio" <light> (gCorridoio, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-corridoio-specchio/POWER3:command:*:default],<[openhab:stat/sonoff-touch-corridoio-specchio/POWER3:state:default]" }
// GARAGE
//Switch Garage_Light "Luce" <light> (gGarage, gLight) ["Lighting"] {channel=""}
// CUCINA
Switch Cucina_Light "Luci cucina" <light> (gCucina, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-cucina/POWER1:command:*:default],<[openhab:stat/sonoff-touch-cucina/POWER1:state:default]" }
Switch Cucina_Light_1 "Luci cucinino" <light> (gCucina, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-basic-cucinino/POWER:command:*:default],<[openhab:stat/sonoff-basic-cucinino/POWER:state:default]" }
Rollershutter Cucina_Shutter "Persiana [%d %%]" <rollershutter> (gCucina, gShutter) { channel="zwave:device:efddf849:node5:blinds_control" }
//Switch Cucina_Power "Lavastoviglie" <dryer> (gCucina) { mqtt=">[openhab:cmnd/sonoff-pow-lavastoviglie/POWER:command:*:default],<[openhab:stat/sonoff-pow-lavastoviglie/POWER:state:default]" }
//Switch Cucina_Power_2 "Forno" <kitchen> (gCucina) { mqtt=">[openhab:cmnd/sonoff-pow-forni/POWER:command:*:default],<[openhab:stat/sonoff-pow-forni/POWER:state:default]" }
//Switch Cucina_Power_3 "Frigo" <poweroutlet> (gCucina) { mqtt=">[openhab:cmnd/sonoff-pow-frigo/POWER:command:*:default],<[openhab:stat/sonoff-pow-frigo/POWER:state:default]" }
Switch Cucina_Power_4 "Macchina caffè" <poweroutlet> (gCucina) [ "Switchable" ] { mqtt=">[openhab:cmnd/sonoff-s20-macchina-caffe/POWER:command:*:default],<[openhab:stat/sonoff-s20-macchina-caffe/POWER:state:default]" }
// SALOTTO
Switch Soggiorno_Light_4 "Luci soggiorno" <light> (gSoggiorno, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-cucina/POWER2:command:*:default],<[openhab:stat/sonoff-touch-cucina/POWER2:state:default]" }
Switch Soggiorno_Light_3 "Luci isola" <light> (gSoggiorno, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-cucina/POWER3:command:*:default],<[openhab:stat/sonoff-touch-cucina/POWER3:state:default]" }
Switch Soggiorno_Light_2 "Luci muretto" <light> (gSoggiorno, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-basic-muretto/POWER:command:*:default],<[openhab:stat/sonoff-basic-muretto/POWER:state:default]" }
Switch Soggiorno_Light "Led soggiorno" <light> (gSoggiorno, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-basic-led-salone/POWER:command:*:default],<[openhab:stat/sonoff-basic-led-salone/POWER:state:default]" }
Rollershutter Soggiorno_Shutter "Persiana [%d %%]" <rollershutter> (gSoggiorno, gShutter) { channel="zwave:device:efddf849:node4:blinds_control" }
Number Soggiorno_Temp "Temperatura [%.1f °C]" <temperature> (gSoggiorno, gPersistenceChange) { mqtt="<[openhab:tele/sonoff-th-caldaia/SENSOR:state:JSONPATH($.SI7021.Temperature)]" }
Number Soggiorno_Umidita "Umidità [%.1f %%]" <humidity> (gSoggiorno, gPersistenceChange) { mqtt="<[openhab:tele/sonoff-th-caldaia/SENSOR:state:JSONPATH($.SI7021.Humidity)]" }
Switch Soggiorno_Power "Riscaldamento" <poweroutlet> (gSoggiorno, gPower) [ "Switchable" ] { mqtt=">[openhab:cmnd/sonoff-th-caldaia/POWER:command:*:default],<[openhab:stat/sonoff-th-caldaia/POWER:state:default]" }
// CAMERETTA
Switch Cameretta_Light "Luci cameretta" <light> (gCameretta, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-cameretta/POWER:command:*:default],<[openhab:stat/sonoff-touch-cameretta/POWER:state:default]" }
Rollershutter Cameretta_Shutter "Persiana [%d %%]" <rollershutter> (gCameretta, gShutter) { channel="zwave:device:efddf849:node6:blinds_control" }
// CORRIDOIO INGRESSO
Switch Corridoio_ingresso_Light "Luci corridoio ingresso" <light> (gCorridoio, gLight) [ "Lighting" ] { mqtt=">[openhab:cmnd/sonoff-touch-corridoio-ingresso/POWER1:command:*:default],<[openhab:stat/sonoff-touch-corridoio-ingresso/POWER1:state:default]" }
Switch Corridoio_ingresso_Light_1 { mqtt=">[openhab:cmnd/sonoff-touch-corridoio-ingresso/POWER2:command:*:default],<[openhab:stat/sonoff-touch-corridoio-ingresso/POWER2:state:default]" }
Switch Corridoio_ingresso_Light_2 { mqtt=">[openhab:cmnd/sonoff-touch-corridoio-ingresso/POWER3:command:*:default],<[openhab:stat/sonoff-touch-corridoio-ingresso/POWER3:state:default]" }
Switch Campanello "Campanello" { mqtt=">[openhab:cmnd/sonoff-basic-campanello/POWER:command:*:default],<[openhab:stat/sonoff-basic-campanello/POWER:state:default]" }
Switch Corridoio_ingresso2_Light { mqtt=">[openhab:cmnd/sonoff-touch-corridoio-ingresso2/POWER1:command:*:default],<[openhab:stat/sonoff-touch-corridoio-ingresso2/POWER1:state:default]" }
Switch Corridoio_ingresso2_Light_1 { mqtt=">[openhab:cmnd/sonoff-touch-corridoio-ingresso2/POWER2:command:*:default],<[openhab:stat/sonoff-touch-corridoio-ingresso2/POWER2:state:default]" }
Switch Corridoio_ingresso2_Light_2 { mqtt=">[openhab:cmnd/sonoff-touch-corridoio-ingresso2/POWER3:command:*:default],<[openhab:stat/sonoff-touch-corridoio-ingresso2/POWER3:state:default]" }
// CONSUMI ISTANTANEI
Number Lavanderia_Power_W (gPower) { mqtt="<[openhab:tele/sonoff-pow-lavatrice/SENSOR:state:JSONPATH($.ENERGY.Power)]" }
Number Cucina_Power_W (gPower) { mqtt="<[openhab:tele/sonoff-pow-lavastoviglie/SENSOR:state:JSONPATH($.ENERGY.Power)]" }
Number Cucina_Power_OpState "Stato lavastoviglie [%d]"
Number Cucina_Power_2_W (gPower) { mqtt="<[openhab:tele/sonoff-pow-forni/SENSOR:state:JSONPATH($.ENERGY.Power)]" }
Number Cucina_Power_3_W (gPower) { mqtt="<[openhab:tele/sonoff-pow-frigo/SENSOR:state:JSONPATH($.ENERGY.Power)]" }
Number Soggiorno_Power_W (gPower) { mqtt="<[openhab:tele/sonoff-pow-condizionatore/SENSOR:state:JSONPATH($.ENERGY.Power)]" }
// CONSUMI GIORNALIERI
Number Lavanderia_Power_W_G (gPower_G) { mqtt="<[openhab:tele/sonoff-pow-lavatrice/SENSOR:state:JSONPATH($.ENERGY.Today)]" }
Number Cucina_Power_W_G (gPower_G) { mqtt="<[openhab:tele/sonoff-pow-lavastoviglie/SENSOR:state:JSONPATH($.ENERGY.Today)]" }
Number Cucina_Power_2_W_G (gPower_G) { mqtt="<[openhab:tele/sonoff-pow-forni/SENSOR:state:JSONPATH($.ENERGY.Today)]" }
Number Cucina_Power_3_W_G (gPower_G) { mqtt="<[openhab:tele/sonoff-pow-frigo/SENSOR:state:JSONPATH($.ENERGY.Today)]" }
Number Soggiorno_Power_W_G (gPower_G) { mqtt="<[openhab:tele/sonoff-pow-condizionatore/SENSOR:state:JSONPATH($.ENERGY.Today)]" }
// RACCOLTA DIFFERENZIATA
String Raccolta_differenziata (gPersistenceChange)
I don’t know what else to check. Please help
Try clear your openhab cache and tmp folder, and then reboot. I once had success doing this.
$ sudo /etc/init.d/openhab2 stop
$ sudo rm -fR /var/lib/openhab2/cache/*
$ sudo rm -fR /var/lib/openhab2/tmp/*
$ sudo /etc/init.d/openhab2 start
Not helped.
Next ting is to remove all tags, and just leaving one behind to test. Then add some more, if the test goes fine.
(You have to have at least one tag before Google Assistant will work).
Thank you @Kim_Andersen. Done it before deleting cache and tmp folder.
Anyway I tried with one tag and same error.
What else to check?
Hmm thats odd.
Just a wild shot… Could you try a tag without spaces… Like this: [“Lighting”]
Just for one item only.
If that this doesn´t work. Try delete the connection in myopenhab.org and re-add it from Google app on device.
[“Lighting”] works With all items!
I am on openhab2 2.3.0-1 on Linux x64
Thanks @Kim_Andersen but now I am confused
I´m confused to…
I havn´t got any other tags but “Lighting” in my setup, yet… I wonder if “Switchable” could be a problem… I will give it a try tonight, just to test.
In the mean time, you could try playing around with “Switchable” yourself…(Only one item at a time). Make sure, the item you put “Switchable” onto, has to be an ON/OFF item.
The problem was [ SPACE “Lighting” SPACE ]. With [“Lighting”] and [“Switchable”] works.
Ahh thats good you got it solved…
I wonder when the required “removed spaces” has changed. I think I recall having this problem as well some months ago, and just gave it a wild shot removing the spaces. And since then, I have tagged without spaces.
Hi @aart
Could you add support for humidity (thermostatHumidityAmbient tag)? @MARZIMA mentioned it was in repository but was NOT commited?
May i ask Mehmet, how is this project funded?
Thanks in advance
KK
You can ask. A PM might be more appropriate.
The Humidity is already in a fixed in a pull request.
Still waiting for a merge and deploy.
Hi @aart,
hope to deploy it tomorrow or day after.
Just difficulties to test…dont worry I didnt forget