Shelly 3EM MQTT Things und Items

Geflasht oder ungeflasht ...

Moderator: seppy

Antworten
Selter
Beiträge: 63
Registriert: 9. Mär 2018 16:06
Answers: 0

Shelly 3EM MQTT Things und Items

Beitrag von Selter »

Hallo zusammen,

nach etwas Recherche und mit Hilfe von MQTT.fx habe ich mal die Things und Items für den Shelly 3EM erstellt:

Code: Alles auswählen

Thing topic shelly_3em "Shelly: 3EM" @ "MQTT" {
	Channels: 
		Type switch : Shelly3EM_Switch 	"Shelly 3EM switch" 			[ stateTopic="shellies/shellyem3-XXX/relay/0", commandTopic="shellies/shellyem3-XXX/relay/0/command", on="on", off="off" ]

		Type number : Shelly3EM_Power0  "Shelly 3EM: Power 0" 			[ stateTopic="shellies/shellyem3-XXX/emeter/0/power" ]
		Type number : Shelly3EM_Power1  "Shelly 3EM: Power 1" 			[ stateTopic="shellies/shellyem3-XXX/emeter/1/power" ]
		Type number : Shelly3EM_Power2  "Shelly 3EM: Power 2" 			[ stateTopic="shellies/shellyem3-XXX/emeter/2/power" ]

		Type number : Shelly3EM_Powerfactor0  "Shelly 3EM: Powerfactor 0" 			[ stateTopic="shellies/shellyem3-XXX/emeter/0/pf" ]
		Type number : Shelly3EM_Powerfactor1  "Shelly 3EM: Powerfactor 1" 			[ stateTopic="shellies/shellyem3-XXX/emeter/1/pf" ]
		Type number : Shelly3EM_Powerfactor2  "Shelly 3EM: Powerfactor 2" 			[ stateTopic="shellies/shellyem3-XXX/emeter/2/pf" ]
		
		Type number : Shelly3EM_Current0  "Shelly 3EM: Current 0" 			[ stateTopic="shellies/shellyem3-XXX/emeter/0/current" ]
		Type number : Shelly3EM_Current1  "Shelly 3EM: Current 1" 			[ stateTopic="shellies/shellyem3-XXX/emeter/1/current" ]
		Type number : Shelly3EM_Current2  "Shelly 3EM: Current 2" 			[ stateTopic="shellies/shellyem3-XXX/emeter/2/current" ]

		Type number : Shelly3EM_Voltage0  "Shelly 3EM: Voltage 0" 			[ stateTopic="shellies/shellyem3-XXX/emeter/0/voltage" ]
		Type number : Shelly3EM_Voltage1  "Shelly 3EM: Voltage 1" 			[ stateTopic="shellies/shellyem3-XXX/emeter/1/voltage" ]
		Type number : Shelly3EM_Voltage2  "Shelly 3EM: Voltage 2" 			[ stateTopic="shellies/shellyem3-XXX/emeter/2/voltage" ]

		Type number : Shelly3EM_total0  "Shelly 3EM: Total 0" 			[ stateTopic="shellies/shellyem3-XXX/emeter/0/total" ]
		Type number : Shelly3EM_total1  "Shelly 3EM: Total 1" 			[ stateTopic="shellies/shellyem3-XXX/emeter/1/total" ]
		Type number : Shelly3EM_total2  "Shelly 3EM: Total 2" 			[ stateTopic="shellies/shellyem3-XXX/emeter/2/total" ]

		Type number : Shelly3EM_totalreturn0  "Shelly 3EM: Total returned 0" 			[ stateTopic="shellies/shellyem3-XXX/emeter/0/total_returned" ]
		Type number : Shelly3EM_totalreturn1  "Shelly 3EM: Total returned 1" 			[ stateTopic="shellies/shellyem3-XXX/emeter/1/total_returned" ]
		Type number : Shelly3EM_totalreturn2  "Shelly 3EM: Total returned 2" 			[ stateTopic="shellies/shellyem3-XXX/emeter/2/total_returned" ]

		Type number : Shelly3EM_energy0  "Shelly 3EM: Energy 0" 			[ stateTopic="shellies/shellyem3-XXX/emeter/0/energy" ]
		Type number : Shelly3EM_energy1  "Shelly 3EM: Energy 1" 			[ stateTopic="shellies/shellyem3-XXX/emeter/1/energy" ]
		Type number : Shelly3EM_energy2  "Shelly 3EM: Energy 2" 			[ stateTopic="shellies/shellyem3-XXX/emeter/2/energy" ]

		Type number : Shelly3EM_energyreturn0  "Shelly 3EM: returned Energy 0" 			[ stateTopic="shellies/shellyem3-XXX/emeter/0/returned_energy" ]
		Type number : Shelly3EM_energyreturn1  "Shelly 3EM: returned Energy 1" 			[ stateTopic="shellies/shellyem3-XXX/emeter/1/returned_energy" ]
		Type number : Shelly3EM_energyreturn2  "Shelly 3EM: returned Energy 2" 			[ stateTopic="shellies/shellyem3-XXX/emeter/2/returned_energy" ]
	}

Code: Alles auswählen

  Switch   KE_s_Shelly3EM_Switch          "Shelly 3EM: switch"                         {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Switch"}
    Number   KE_s_Shelly3EM_Power0          "Shelly 3EM: power 0"               <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Power0"}
    Number   KE_s_Shelly3EM_Power1          "Shelly 3EM: power 1"               <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Power1"}
    Number   KE_s_Shelly3EM_Power2          "Shelly 3EM: power 2"               <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Power2"}
     Number   KE_s_Shelly3EM_Powerfactor0    "Shelly 3EM: powerfactor 0"      <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Powerfactor0"}
     Number   KE_s_Shelly3EM_Powerfactor1    "Shelly 3EM: powerfactor 1"      <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Powerfactor1"}
     Number   KE_s_Shelly3EM_Powerfactor2    "Shelly 3EM: powerfactor 2"      <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Powerfactor2"}
     Number   KE_s_Shelly3EM_Current0        "Shelly 3EM: current 0"             <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Current0"}
     Number   KE_s_Shelly3EM_Current1        "Shelly 3EM: current 1"             <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Current1"}
     Number   KE_s_Shelly3EM_Current2        "Shelly 3EM: current 2"             <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Current2"}
     Number   KE_s_Shelly3EM_Voltage0        "Shelly 3EM: voltage 0"             <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Voltage0"}
     Number   KE_s_Shelly3EM_Voltage1        "Shelly 3EM: voltage 1"             <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Voltage1"}
     Number   KE_s_Shelly3EM_Voltage2        "Shelly 3EM: voltage 2"             <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_Voltage2"}
    
    Number   KE_s_Shelly3EM_Total0          "Shelly 3EM: total 0"               <energy>    (gM,gR,gMQTTv2,Gshelly,Gshelly3em,Ghausenergy)  {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_total0"}
    Number   KE_s_Shelly3EM_Total1          "Shelly 3EM: total 1"               <energy>    (gM,gR,gMQTTv2,Gshelly,Gshelly3em,Ghausenergy)  {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_total1"}
    Number   KE_s_Shelly3EM_Total2          "Shelly 3EM: total 2"               <energy>    (gM,gR,gMQTTv2,Gshelly,Gshelly3em,Ghausenergy)  {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_total2"}
     Number   KE_s_Shelly3EM_Totalreturn0    "Shelly 3EM: total returned 0"   <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_totalreturn0"}
     Number   KE_s_Shelly3EM_Totalreturn1    "Shelly 3EM: total returned 1"   <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_totalreturn1"}
     Number   KE_s_Shelly3EM_Totalreturn2    "Shelly 3EM: total returned 2"   <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_totalreturn2"}
     Number   KE_s_Shelly3EM_Energy0         "Shelly 3EM: energy 0"              <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_energy0"}
     Number   KE_s_Shelly3EM_Energy1         "Shelly 3EM: energy 1"              <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_energy1"}
     Number   KE_s_Shelly3EM_Energy2         "Shelly 3EM: energy 2"              <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_energy2"}
     Number   KE_s_Shelly3EM_Energyreturn0   "Shelly 3EM: returned energy 0"  <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_energyreturn0"}
     Number   KE_s_Shelly3EM_Energyreturn1   "Shelly 3EM: returned energy 1"  <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_energyreturn1"}
     Number   KE_s_Shelly3EM_Energyreturn2   "Shelly 3EM: returned energy 2"  <energy>      {channel="mqtt:topic:mosquitto:shelly_3em:Shelly3EM_energyreturn2"}
openHAB 3.2 in einer Debian-VM mit openHABian unter Proxmox 6.4-13 auf Intel NUC 5i3ryh

Antworten