Coder Social home page Coder Social logo

fhem-tasmota's Introduction

YouTube Channel Subscribers YouTube Channel Views GitHub followers GitHub User's stars

My name is Matthias Kleine.

Self-employed trainer and software developer based in Paderborn, Germany.

💬 Ask me about Smart Home and Building automation

klein0r

ioBroker

Forum

3537 posts (92 last month, 160 this month), 25 topics - follow me

ioBroker adapter list (my adapters)

Adapter Beta-Version Stable-Version Installations Weekly Downloads Issues
Trash Schedule Trash Schedule 3.3.0
120 days ago
7416 users
3.3.0
7416 users
11111 303 6
OctoPrint OctoPrint 5.1.0
305 days ago
2136 users
5.1.0
2136 users
2513 50 6
Awtrix 3 (Awtrix Light) Awtrix 3 (Awtrix Light) 1.3.0
25 days ago
267 users
1.2.1
1165 users
2030 110 10
Luftdaten Luftdaten 4.0.0
17 days ago
97 users
3.1.0
1094 users
1485 55 1
Birthdays Birthdays 3.0.1
61 days ago
882 users
3.0.1
882 users
1324 70 3
LaMetric LaMetric 3.3.0
21 days ago
31 users
3.2.1
177 users
380 28 5
YouTube YouTube 5.0.0
145 days ago
116 users
5.0.0
116 users
295 12 1
Gira IoT Gira IoT 0.5.0
151 days ago
143 users
0.5.0
143 users
248 12 2

ioBroker adapter list (heavy contribution)

Adapter Beta-Version Stable-Version Installations Weekly Downloads Issues
Script Engine Script Engine 8.8.2
18 days ago
2249 users
8.7.6
18373 users
54952 4614 105
Shelly Shelly 8.0.0
1 days ago
2 users
7.0.0
16799 users
28979 906 35
Node-RED Node-RED 5.2.1
120 days ago
7968 users
5.2.1
7968 users
14302 467 28
PV-Forecast PV-Forecast 3.0.0
57 days ago
3330 users
3.0.0
3330 users
5777 314 5
Statistics for states Statistics for states 2.4.0
297 days ago
2746 users
2.4.0
2746 users
3375 54 3

ioBroker Master Kurs

fhem-tasmota's People

Contributors

klein0r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fhem-tasmota's Issues

on-for-timer issue

Hi,
on-for-timer command not working properly
I set in FHEM:
set sh_AmbienteLicht on-for-timer 360

in the event monitor it looks like this:
2019-12-08 13:55:29 TASMOTA_DEVICE sh_AmbienteLicht on-for-timer
2019-12-08 13:55:29 TASMOTA_DEVICE sh_AmbienteLicht transmission-state: outgoing publish sent
2019-12-08 13:55:29 TASMOTA_DEVICE sh_AmbienteLicht transmission-state: incoming publish received
2019-12-08 13:55:29 TASMOTA_DEVICE sh_AmbienteLicht ergebnis-power: off
2019-12-08 13:55:29 TASMOTA_DEVICE sh_AmbienteLicht transmission-state: incoming publish received
2019-12-08 13:55:29 TASMOTA_DEVICE sh_AmbienteLicht off

and in the broker I can see this:
/SmartHome/Dusche/LichtDuscheAmbiente/cmnd/Power
payload: on-for-timer 360

and nothing is happening in my SONOFF basic

on-for-timer function needed

Hi, is it possible to add a function "on-for-timer" like integrated in switches of HomeMatic
like: set Tastmota_device on-for-timer 1800 (switch on for 1800 seconds)

Sonoff RF Bridge liest keinerlei Readings aus

Hallo zusammen,

ich habe eine Sonoff RF Bridge (englisch) V1.0 (TASMOTA 5.14.0) hinzugefügt.
Diese liest aber keinerlei Readings aus.

Meine Config habe ich als Grafik mal angefügt.
STATE bleibt immer gleich, auch READY verändert sich nicht.

In MQTTfx sehe ich alle Meldungen von der bridge ausgehend.

1
2

Besten Dank Euch
PS: Hier noch das listing des Devices:

Internals:
CFGFN
DEF sonoffBridge /SmartHome/Wohnzimmer/%topic%/%prefix%
FULL_TOPIC /SmartHome/Wohnzimmer/sonoffBridge/%prefix%
IODev Mosquitto
MODULE_VERSION 0.4
NAME sonoffBridge
NOTIFYDEV sonoffBridge /SmartHome/Wohnzimmer/%topic%/%prefix%
NR 1903
READY 0
STATE ???
TOPIC sonoffBridge
TYPE TASMOTA_DEVICE
sets:
subscribe:
subscribeExpr:
subscribeQos:
Attributes:
IODev Mosquitto

Automatisches Status Update auf allen Tasmota Devices

Wünschenswert wäre beim Server Start ein Trigger auf alle Tasmota Devices, um deren Status bzw. Readings abzufragen. Nachdem der fhem Server neu gestartet wurde, haben die Devices einen unefinierten Status und die alten Werte der Readings.

state; result-power; state-power

Hallo Matthias,
seit gestern verwende ich dein Modul, danke dafür, denn es macht doch einiges einfacher und ist schon richtig gut geworden!

Leider habe ich aber das Problem, dass ich keinen Status habe an dem ich erkenne ob Meine Steckdose ein- oder ausgeschalten ist.

Kannst Du das bestätigen oder müsste bei mir ein Fehler vorliegen?

Derzeit verwende ich Tasmota 6.4.0 auf den Gosund SP1 v23 Steckdosen.
Fhem sollte up to date sein und Mosquitto hab ich auch gestern erst installiert, hatte zuvor MQTT2 laufen aber das Funktioniert dein Modul nicht und ich hatte noch andere Probleme...

Viele Grüße
Roland

Fehlermeldung

Hallo Matthias
Zuerst einmal ein grosses Dankeschön für deine Arbeit, ich benutze dein Modul seit einigen Tagen für ein paar sonoff POW Einheiten auf fhem, bis Heute Morgen mehr oder weniger Problemlos. Nach einem Update von fhem kann ich jedoch die GUI vom fhem nur noch starten, wenn ich dein Modul auschecke, ansonsten kriege ich kein Web-Interface. Fehlermeldung im log:

PERL WARNING: TASMOTA::DEVICE::Expand() called too early to check prototype at ./FHEM/10_TASMOTA_DEVICE.pm line 266, <$fh> line 708.
2018.02.15 20:36:02 1: PERL WARNING: TASMOTA::DEVICE::Expand() called too early to check prototype at ./FHEM/10_TASMOTA_DEVICE.pm line 272, <$fh> line 708.
Undefined subroutine &TASMOTA::DEVICE::client_subscribe_topic called at ./FHEM/10_TASMOTA_DEVICE.pm line 123, <$fh> line 708.

Hast du vielleicht einen Idee, woran das liegen könnte?
Besten Dank.

Gruss Stephan

Sonoff Basic - Tasmota 5.14.0

Hallo Matthias,

mit Tasmota 5.14.0 funktionieren anscheinend die Readings in FHEM nicht mehr sauber. Zumindest bei "state" ist mir aufgefallen, das FHEM immer meint, der Sonoff wäre off. Schalten kann ich aber. Bei diesem und anderen mit 5.12.0 funktionierte das noch ohne Probleme.

Internals:
DEF Kuechenlicht /SmartHome/Kueche/%topic%/%prefix%
FULL_TOPIC /SmartHome/Kueche/Kuechenlicht/%prefix%
IODev Mosquitto
MODULE_VERSION 0.4
NAME Kueche_Licht
NOTIFYDEV Kuechenlicht /SmartHome/Kueche/%topic%/%prefix%
NR 69
READY 1
STATE off
TOPIC Kuechenlicht
TYPE TASMOTA_DEVICE
Helper:
DBLOG:
lwt:
DBLogging:
TIME 1527237784.58985
VALUE Online
transmission-state:
DBLogging:
TIME 1527237784.42786
VALUE incoming publish received
READINGS:
2018-05-25 09:23:56 info1-fallbacktopic DVES_68CE8F
2018-05-25 09:23:56 info1-grouptopic sonoffs
2018-05-25 09:23:56 info1-module Sonoff Basic
2018-05-25 09:23:56 info1-version 5.14.0
2018-05-25 09:23:56 info2-hostname Kuechenlicht-3727
2018-05-25 09:23:56 info2-ipaddress 192.168.2.61
2018-05-25 09:23:56 info2-webservermode Admin
2018-05-25 09:23:57 info3-restartreason Software/System restart
2018-05-25 10:43:04 lwt Online
2018-02-23 08:37:03 result-color FFFFFF
2018-02-23 08:37:03 result-dimmer 100
2018-05-24 14:49:39 result-otaurl https://github.com/arendst/Sonoff-Tasmota/releases/download/v5.14.0/sonoff-DE.bin
2018-05-24 14:58:49 result-power OFF
2018-05-25 09:23:57 result-power1 ON
2018-02-23 08:37:05 result-power2 OFF
2018-05-24 17:38:43 result-restart Restarting
2018-05-24 14:49:40 result-upgrade Version 5.12.0 from https://github.com/arendst/Sonoff-Tasmota/releases/download/v5.14.0/sonoff-DE.bin
2018-05-25 07:13:51 result-wificonfig WifiManager selected
2018-05-24 14:58:49 state off
2018-02-23 08:36:59 state-color 191919
2018-02-23 08:36:59 state-dimmer 10
2018-02-23 08:36:59 state-fade OFF
2018-02-23 08:36:59 state-ledtable OFF
2018-05-24 15:05:43 state-power OFF
2018-05-25 10:42:14 state-power1 ON
2018-02-23 08:36:59 state-power2 OFF
2018-02-23 08:36:59 state-scheme 0
2018-02-23 08:36:59 state-speed 1
2018-05-25 10:42:14 state-time 2018-05-25T09:42:14
2018-05-25 10:42:14 state-uptime 0T01:24:59
2018-05-25 10:42:14 state-vcc 3.142
2018-02-23 08:36:59 state-width 1
2018-05-25 10:42:14 state-wifi-ap 1
2018-05-25 10:42:14 state-wifi-apmac F4:F2:6D:F8:E7:85
2018-05-25 10:42:14 state-wifi-rssi 68
2018-05-25 10:42:14 state-wifi-ssid tropho.bie
2018-05-25 08:12:38 status-status-buttonretain 0
2018-05-25 08:12:38 status-status-buttontopic 0
2018-05-07 11:45:11 status-status-friendlyname K�chenlicht
2018-05-25 08:12:38 status-status-ledstate 1
2018-05-25 08:12:38 status-status-module 1
2018-05-25 08:12:38 status-status-power 1
2018-05-25 08:12:38 status-status-poweronstate 3
2018-05-25 08:12:38 status-status-powerretain 0
2018-05-25 08:12:38 status-status-savedata 1
2018-05-25 08:12:38 status-status-savestate 1
2018-05-25 08:12:38 status-status-topic Kuechenlicht
2018-05-25 08:12:39 status1-statusprm-baudrate 115200
2018-05-25 08:12:39 status1-statusprm-bootcount 26
2018-05-25 08:12:39 status1-statusprm-grouptopic sonoffs
2018-05-25 08:12:39 status1-statusprm-otaurl https://github.com/arendst/Sonoff-Tasmota/releases/download/v5.14.0/sonoff-DE.bin
2018-05-25 08:12:39 status1-statusprm-restartreason Software/System restart
2018-05-25 08:12:39 status1-statusprm-saveaddress F6000
2018-05-25 08:12:39 status1-statusprm-savecount 407
2018-05-25 08:12:39 status1-statusprm-sleep 0
2018-05-25 08:12:39 status1-statusprm-startuputc 2018-05-25T05:32:49
2018-05-25 08:12:39 status1-statusprm-uptime 0T00:39:48
2018-05-25 08:12:45 status1-statussns-time 2018-05-25T07:12:38
2018-05-07 11:45:18 status11-statussts-power OFF
2018-05-25 08:12:45 status11-statussts-power1 ON
2018-05-25 08:12:45 status11-statussts-time 2018-05-25T07:12:38
2018-05-25 08:12:45 status11-statussts-uptime 0T00:39:49
2018-05-25 08:12:45 status11-statussts-vcc 3.149
2018-05-25 08:12:45 status11-statussts-wifi-ap 1
2018-05-25 08:12:45 status11-statussts-wifi-apmac F4:F2:6D:F8:E7:85
2018-05-25 08:12:45 status11-statussts-wifi-rssi 60
2018-05-25 08:12:45 status11-statussts-wifi-ssid tropho.bie
2018-05-25 08:12:39 status2-statusfwr-boot 31
2018-05-25 08:12:39 status2-statusfwr-builddatetime 2018-05-15T15:29:54
2018-05-25 08:12:39 status2-statusfwr-core 2_3_0
2018-05-25 08:12:39 status2-statusfwr-sdk 1.5.3(aec24ac9)
2018-05-25 08:12:39 status2-statusfwr-version 5.14.0
2018-05-25 08:12:40 status3-statuslog-loghost domus1
2018-05-25 08:12:40 status3-statuslog-logport 514
2018-05-25 08:12:40 status3-statuslog-seriallog 2
2018-05-07 11:45:16 status3-statuslog-setoption 55800009
2018-05-07 11:45:16 status3-statuslog-ssid1 tropho.bie
2018-05-07 11:45:16 status3-statuslog-ssid2 indebuurt2
2018-05-25 08:12:40 status3-statuslog-syslog 0
2018-05-25 08:12:40 status3-statuslog-teleperiod 300
2018-05-25 08:12:40 status3-statuslog-weblog 2
2018-05-25 08:12:40 status4-statusmem-flashmode 3
2018-05-25 08:12:40 status4-statusmem-flashsize 1024
2018-05-25 08:12:40 status4-statusmem-free 476
2018-05-25 08:12:40 status4-statusmem-heap 18
2018-05-25 08:12:40 status4-statusmem-programflashsize 1024
2018-05-25 08:12:40 status4-statusmem-programsize 526
2018-05-25 08:12:40 status5-statusnet-dnsserver 192.168.2.2
2018-05-25 08:12:40 status5-statusnet-gateway 192.168.2.1
2018-05-25 08:12:40 status5-statusnet-hostname Kuechenlicht-3727
2018-05-25 08:12:40 status5-statusnet-ipaddress 192.168.2.61
2018-05-25 08:12:40 status5-statusnet-mac 60:01:94:68:CE:8F
2018-05-25 08:12:40 status5-statusnet-subnetmask 255.255.255.0
2018-05-25 08:12:40 status5-statusnet-webserver 2
2018-05-25 08:12:40 status5-statusnet-wificonfig 5
2018-05-25 08:12:41 status6-statusmqt-keepalive 15
2018-05-25 08:12:41 status6-statusmqt-max_packet_size 1000
2018-05-25 08:12:41 status6-statusmqt-mqttclient DVES_68CE8F
2018-05-25 08:12:41 status6-statusmqt-mqttclientmask DVES_%06X
2018-05-25 08:12:41 status6-statusmqt-mqtthost 192.168.2.10
2018-05-25 08:12:41 status6-statusmqt-mqttport 1883
2018-05-25 08:12:41 status6-statusmqt-mqtttype 1
2018-05-25 08:12:41 status6-statusmqt-mqttuser DVES_USER
2018-05-25 08:12:45 status7-statustim-enddst Sun Oct 28 03:00:00 2018
2018-05-25 08:12:45 status7-statustim-local Fri May 25 07:12:38 2018
2018-05-25 08:12:45 status7-statustim-startdst Sun Mar 25 02:00:00 2018
2018-05-25 08:12:45 status7-statustim-sunrise 04:56
2018-05-25 08:12:45 status7-statustim-sunset 20:37
2018-05-25 08:12:45 status7-statustim-timezone 1
2018-05-25 08:12:45 status7-statustim-utc Fri May 25 06:12:38 2018
2018-05-25 10:43:04 transmission-state incoming publish received
2018-05-24 14:49:52 upgrade Failed HTTP error: connection refused
2018-05-25 10:02:01 uptime-time 2018-05-25T09:02:00
2018-05-25 10:02:01 uptime-uptime 0T00:44:45
message_ids:
publishSets:
:
topic /SmartHome/Kueche/Kuechenlicht/cmnd/power
values:
on
off
toggle
sets:
off
on
toggle
subscribe:
/SmartHome/Kueche/Kuechenlicht/stat/POWER
/SmartHome/Kueche/Kuechenlicht/stat/UPGRADE
/SmartHome/Kueche/Kuechenlicht/stat/RESULT
/SmartHome/Kueche/Kuechenlicht/stat/STATUS
/SmartHome/Kueche/Kuechenlicht/stat/STATUS1
/SmartHome/Kueche/Kuechenlicht/stat/STATUS2
/SmartHome/Kueche/Kuechenlicht/stat/STATUS3
/SmartHome/Kueche/Kuechenlicht/stat/STATUS4
/SmartHome/Kueche/Kuechenlicht/stat/STATUS5
/SmartHome/Kueche/Kuechenlicht/stat/STATUS6
/SmartHome/Kueche/Kuechenlicht/stat/STATUS7
/SmartHome/Kueche/Kuechenlicht/stat/STATUS8
/SmartHome/Kueche/Kuechenlicht/stat/STATUS9
/SmartHome/Kueche/Kuechenlicht/stat/STATUS10
/SmartHome/Kueche/Kuechenlicht/stat/STATUS11
/SmartHome/Kueche/Kuechenlicht/tele/STATUS
/SmartHome/Kueche/Kuechenlicht/tele/LWT
/SmartHome/Kueche/Kuechenlicht/tele/ENERGY
/SmartHome/Kueche/Kuechenlicht/tele/INFO1
/SmartHome/Kueche/Kuechenlicht/tele/INFO2
/SmartHome/Kueche/Kuechenlicht/tele/INFO3
/SmartHome/Kueche/Kuechenlicht/tele/SENSOR
/SmartHome/Kueche/Kuechenlicht/tele/STATE
/SmartHome/Kueche/Kuechenlicht/tele/UPTIME
/SmartHome/Kueche/Kuechenlicht/tele/RESULT
subscribeExpr:
^/SmartHome/Kueche/Kuechenlicht/stat/POWER$
^/SmartHome/Kueche/Kuechenlicht/stat/UPGRADE$
^/SmartHome/Kueche/Kuechenlicht/stat/RESULT$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS1$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS2$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS3$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS4$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS5$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS6$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS7$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS8$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS9$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS10$
^/SmartHome/Kueche/Kuechenlicht/stat/STATUS11$
^/SmartHome/Kueche/Kuechenlicht/tele/STATUS$
^/SmartHome/Kueche/Kuechenlicht/tele/LWT$
^/SmartHome/Kueche/Kuechenlicht/tele/ENERGY$
^/SmartHome/Kueche/Kuechenlicht/tele/INFO1$
^/SmartHome/Kueche/Kuechenlicht/tele/INFO2$
^/SmartHome/Kueche/Kuechenlicht/tele/INFO3$
^/SmartHome/Kueche/Kuechenlicht/tele/SENSOR$
^/SmartHome/Kueche/Kuechenlicht/tele/STATE$
^/SmartHome/Kueche/Kuechenlicht/tele/UPTIME$
^/SmartHome/Kueche/Kuechenlicht/tele/RESULT$
subscribeQos:
/SmartHome/Kueche/Kuechenlicht/stat/POWER 0
/SmartHome/Kueche/Kuechenlicht/stat/RESULT 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS1 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS10 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS11 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS2 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS3 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS4 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS5 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS6 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS7 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS8 0
/SmartHome/Kueche/Kuechenlicht/stat/STATUS9 0
/SmartHome/Kueche/Kuechenlicht/stat/UPGRADE 0
/SmartHome/Kueche/Kuechenlicht/tele/ENERGY 0
/SmartHome/Kueche/Kuechenlicht/tele/INFO1 0
/SmartHome/Kueche/Kuechenlicht/tele/INFO2 0
/SmartHome/Kueche/Kuechenlicht/tele/INFO3 0
/SmartHome/Kueche/Kuechenlicht/tele/LWT 0
/SmartHome/Kueche/Kuechenlicht/tele/RESULT 0
/SmartHome/Kueche/Kuechenlicht/tele/SENSOR 0
/SmartHome/Kueche/Kuechenlicht/tele/STATE 0
/SmartHome/Kueche/Kuechenlicht/tele/STATUS 0
/SmartHome/Kueche/Kuechenlicht/tele/UPTIME 0
Attributes:
IODev Mosquitto
devStateIcon on:message_socket@red:off off:message_socket:on
icon message_socket
publishSet on off toggle /SmartHome/Kueche/Kuechenlicht/cmnd/power
room Küche
stateFormat state
webCmd on:off:toggle

Readings werden nicht abgerufen

Hallo Matthias,

beim Einrichten eines TASMOTA_DEVICE habe ich das Problem, dass überhaupt keine Readings abgerufen werden. Ich kann die Sonoffs auch nicht ein- oder ausschalten. Ich habe es mit der Firmware 5.11.1 und 5.14.0 getestet. Ich habe mal die zwei Listings aus fhem angehängt. Fällt dir hier irgendwas Besonderes auf? Hast du eine Idee, wo das Problem liegen könnte?

5.11.1:
Internals:
DEF drucker smarthome/multimedia/ug/buero/%topic%/%prefix%/
FULL_TOPIC smarthome/multimedia/ug/buero/drucker/%prefix%/
IODev mosquitto
MODULE_VERSION 0.4
NAME drucker_sonoff
NOTIFYDEV drucker smarthome/multimedia/ug/buero/%topic%/%prefix%/
NR 33
READY 1
STATE ???
TOPIC drucker
TYPE TASMOTA_DEVICE
READINGS:
2018-06-23 00:14:31 transmission-state subscription acknowledged
message_ids:
sets:
subscribe:
smarthome/multimedia/ug/buero/drucker/stat/POWER/
smarthome/multimedia/ug/buero/drucker/stat/UPGRADE/
smarthome/multimedia/ug/buero/drucker/stat/RESULT/
smarthome/multimedia/ug/buero/drucker/stat/STATUS/
smarthome/multimedia/ug/buero/drucker/stat/STATUS1/
smarthome/multimedia/ug/buero/drucker/stat/STATUS2/
smarthome/multimedia/ug/buero/drucker/stat/STATUS3/
smarthome/multimedia/ug/buero/drucker/stat/STATUS4/
smarthome/multimedia/ug/buero/drucker/stat/STATUS5/
smarthome/multimedia/ug/buero/drucker/stat/STATUS6/
smarthome/multimedia/ug/buero/drucker/stat/STATUS7/
smarthome/multimedia/ug/buero/drucker/stat/STATUS8/
smarthome/multimedia/ug/buero/drucker/stat/STATUS9/
smarthome/multimedia/ug/buero/drucker/stat/STATUS10/
smarthome/multimedia/ug/buero/drucker/stat/STATUS11/
smarthome/multimedia/ug/buero/drucker/tele/STATUS/
smarthome/multimedia/ug/buero/drucker/tele/LWT/
smarthome/multimedia/ug/buero/drucker/tele/ENERGY/
smarthome/multimedia/ug/buero/drucker/tele/INFO1/
smarthome/multimedia/ug/buero/drucker/tele/INFO2/
smarthome/multimedia/ug/buero/drucker/tele/INFO3/
smarthome/multimedia/ug/buero/drucker/tele/SENSOR/
smarthome/multimedia/ug/buero/drucker/tele/STATE/
smarthome/multimedia/ug/buero/drucker/tele/UPTIME/
smarthome/multimedia/ug/buero/drucker/tele/RESULT/
subscribeExpr:
^smarthome/multimedia/ug/buero/drucker/stat/POWER/$
^smarthome/multimedia/ug/buero/drucker/stat/UPGRADE/$
^smarthome/multimedia/ug/buero/drucker/stat/RESULT/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS1/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS2/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS3/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS4/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS5/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS6/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS7/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS8/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS9/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS10/$
^smarthome/multimedia/ug/buero/drucker/stat/STATUS11/$
^smarthome/multimedia/ug/buero/drucker/tele/STATUS/$
^smarthome/multimedia/ug/buero/drucker/tele/LWT/$
^smarthome/multimedia/ug/buero/drucker/tele/ENERGY/$
^smarthome/multimedia/ug/buero/drucker/tele/INFO1/$
^smarthome/multimedia/ug/buero/drucker/tele/INFO2/$
^smarthome/multimedia/ug/buero/drucker/tele/INFO3/$
^smarthome/multimedia/ug/buero/drucker/tele/SENSOR/$
^smarthome/multimedia/ug/buero/drucker/tele/STATE/$
^smarthome/multimedia/ug/buero/drucker/tele/UPTIME/$
^smarthome/multimedia/ug/buero/drucker/tele/RESULT/$
subscribeQos:
smarthome/multimedia/ug/buero/drucker/stat/POWER/ 0
smarthome/multimedia/ug/buero/drucker/stat/RESULT/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS1/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS10/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS11/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS2/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS3/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS4/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS5/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS6/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS7/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS8/ 0
smarthome/multimedia/ug/buero/drucker/stat/STATUS9/ 0
smarthome/multimedia/ug/buero/drucker/stat/UPGRADE/ 0
smarthome/multimedia/ug/buero/drucker/tele/ENERGY/ 0
smarthome/multimedia/ug/buero/drucker/tele/INFO1/ 0
smarthome/multimedia/ug/buero/drucker/tele/INFO2/ 0
smarthome/multimedia/ug/buero/drucker/tele/INFO3/ 0
smarthome/multimedia/ug/buero/drucker/tele/LWT/ 0
smarthome/multimedia/ug/buero/drucker/tele/RESULT/ 0
smarthome/multimedia/ug/buero/drucker/tele/SENSOR/ 0
smarthome/multimedia/ug/buero/drucker/tele/STATE/ 0
smarthome/multimedia/ug/buero/drucker/tele/STATUS/ 0
smarthome/multimedia/ug/buero/drucker/tele/UPTIME/ 0
Attributes:
IODev mosquitto
alias Drucker
room MQTT

5.14.0:
Internals:
DEF stehlampe1 smarthome/licht/eg/wz/%topic%/%prefix%/
FULL_TOPIC smarthome/licht/eg/wz/stehlampe1/%prefix%/
IODev mosquitto
MODULE_VERSION 0.4
NAME stehlampe1_sonoff
NOTIFYDEV stehlampe1 smarthome/licht/eg/wz/%topic%/%prefix%/
NR 34
READY 1
STATE ???
TOPIC stehlampe1
TYPE TASMOTA_DEVICE
READINGS:
2018-06-23 00:14:31 transmission-state subscription acknowledged
message_ids:
sets:
subscribe:
smarthome/licht/eg/wz/stehlampe1/stat/POWER/
smarthome/licht/eg/wz/stehlampe1/stat/UPGRADE/
smarthome/licht/eg/wz/stehlampe1/stat/RESULT/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS1/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS2/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS3/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS4/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS5/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS6/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS7/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS8/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS9/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS10/
smarthome/licht/eg/wz/stehlampe1/stat/STATUS11/
smarthome/licht/eg/wz/stehlampe1/tele/STATUS/
smarthome/licht/eg/wz/stehlampe1/tele/LWT/
smarthome/licht/eg/wz/stehlampe1/tele/ENERGY/
smarthome/licht/eg/wz/stehlampe1/tele/INFO1/
smarthome/licht/eg/wz/stehlampe1/tele/INFO2/
smarthome/licht/eg/wz/stehlampe1/tele/INFO3/
smarthome/licht/eg/wz/stehlampe1/tele/SENSOR/
smarthome/licht/eg/wz/stehlampe1/tele/STATE/
smarthome/licht/eg/wz/stehlampe1/tele/UPTIME/
smarthome/licht/eg/wz/stehlampe1/tele/RESULT/
subscribeExpr:
^smarthome/licht/eg/wz/stehlampe1/stat/POWER/$
^smarthome/licht/eg/wz/stehlampe1/stat/UPGRADE/$
^smarthome/licht/eg/wz/stehlampe1/stat/RESULT/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS1/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS2/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS3/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS4/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS5/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS6/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS7/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS8/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS9/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS10/$
^smarthome/licht/eg/wz/stehlampe1/stat/STATUS11/$
^smarthome/licht/eg/wz/stehlampe1/tele/STATUS/$
^smarthome/licht/eg/wz/stehlampe1/tele/LWT/$
^smarthome/licht/eg/wz/stehlampe1/tele/ENERGY/$
^smarthome/licht/eg/wz/stehlampe1/tele/INFO1/$
^smarthome/licht/eg/wz/stehlampe1/tele/INFO2/$
^smarthome/licht/eg/wz/stehlampe1/tele/INFO3/$
^smarthome/licht/eg/wz/stehlampe1/tele/SENSOR/$
^smarthome/licht/eg/wz/stehlampe1/tele/STATE/$
^smarthome/licht/eg/wz/stehlampe1/tele/UPTIME/$
^smarthome/licht/eg/wz/stehlampe1/tele/RESULT/$
subscribeQos:
smarthome/licht/eg/wz/stehlampe1/stat/POWER/ 0
smarthome/licht/eg/wz/stehlampe1/stat/RESULT/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS1/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS10/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS11/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS2/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS3/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS4/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS5/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS6/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS7/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS8/ 0
smarthome/licht/eg/wz/stehlampe1/stat/STATUS9/ 0
smarthome/licht/eg/wz/stehlampe1/stat/UPGRADE/ 0
smarthome/licht/eg/wz/stehlampe1/tele/ENERGY/ 0
smarthome/licht/eg/wz/stehlampe1/tele/INFO1/ 0
smarthome/licht/eg/wz/stehlampe1/tele/INFO2/ 0
smarthome/licht/eg/wz/stehlampe1/tele/INFO3/ 0
smarthome/licht/eg/wz/stehlampe1/tele/LWT/ 0
smarthome/licht/eg/wz/stehlampe1/tele/RESULT/ 0
smarthome/licht/eg/wz/stehlampe1/tele/SENSOR/ 0
smarthome/licht/eg/wz/stehlampe1/tele/STATE/ 0
smarthome/licht/eg/wz/stehlampe1/tele/STATUS/ 0
smarthome/licht/eg/wz/stehlampe1/tele/UPTIME/ 0
Attributes:
IODev mosquitto
alias Stehlampe1
room MQTT

Undefined subroutine &JSON::decode_json

Habe es bereits mit "/" und ohne am ende probiert.

Bekomme die Readings leider nicht rein mit folgender FHEM Log Message:

bad JSON: status: {"Status":{"Module":6,"FriendlyName":"SO_3","Topic":"so_3","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}} - Undefined subroutine &JSON::decode_json called at ./FHEM/10_TASMOTA_DEVICE.pm line 233.

Sonoff Bridge - kein autosubscribe?

Hallo und zunächst mal vielen Dank für Dein Modul und die ganzen VIdeos!

Ich habe die Sonoff Bridge nach Deinem Video eingesichtet und kann mit ihr kommunizieren. Allerdings werden keine Readings angelegt, so als ob kein Autosubscribe stattfindet. Ich habe die letzte Version (0.4) des Moduls installiert. MQTT.fx zeigt mir auch alle Meldungen der Bridge. Das funktioniert bis dahin also.

EDIT: Issue kann geschlossen werden. Nach einer Nacht wurden jetzt die Readings doch noch angelegt. Das dauerte ca. 7,5 Stunden nach Anlage des Devices. Fehler konnte ich im Log jedoch nicht sehen.

Reading-Subscribes für Tasmota 6.4 Defaults

Tasmota: 6.4.1

Die Standard-Topicstruktur bei Tasmota-Devices nach dem Flashen ist "%prefix%/%topic%/", wobei prefix hier stat, tele oder cmnd ist. Das Kommando bzw. Reading (POWER, RESULT, STATE, SENSOR etc.) wird an den Topic-String angehängt.

TASMOTA_DEVICE ist so ausgelegt, dass prefix und das Kommando immer hintereinander stehen. Also entweder stat/POWER/Topic oder Topic/stat/POWER. Die erste Syntax lässt sich glaube ich bei Tasmota gar nicht einstellen.

Um TASMOTA_DEVICE für mich nutzen zu können, habe ich entsprechende Anpassungen vorgenommen, so dass die Strings in @topics beim Auto-Subscribe, beim Erteilen und beim Empfangen zerlegt werden und nur der erste Teil als Präfix genutzt wird. Das eigentliche Kommando wird angehängt. Dadurch werden die Strukturen stat/Topic/POWER (Default bei Tasmota 6.4) und Topic/stat/POWER möglich.

Die Änderungen habe ich schon im Einsatz und in meinem Fork committed. Darf ich einen Pull-Request erstellen?

Keine Readings ab dem 4. gerät

Hallo Mathias,

ich nutze das modul und finde es sehr gut. Jedoch habe cih das Problem, das ich ab dem 4. gerät keine readings mehr bekomme. Ich kann mit FHEM das gerät schalten aber es kommt garkein reading. Auch im eventlog steht nix. Woran kann das liegen ?

kann ich dir ein Logfile geben, mit dem du da etwas anfangen kannst ?

MfG
Andy

ENERGIE Reading

Hallo Matthias,
Danke für das Modul. Du hast bei deinem letzten update ganz am Anfang deines Codes bei
my @topics
die deutsche Bezeichnung raus genommen
stat/ERGEBNIS tele/LAUFZEIT tele/ENERGIE
War das so beabsichtigt? Ich musste es wieder einbauen, damit ich Readings bekomme :)

Sensor Status

Hi,

erstmal vielen Dank für das geniale Modul.
Ich habe allerdings das Problem das mein angeschlossener Reed-Kontakt nur stark verzögert angezeigt wird (5 Minuten).
Kannst Du mir vielleicht verraten wie ich das Reading
14:07:29 MQT: /Smarthome/Sonoff/Garage_Tina_Alarm/cmnd/POWER1 = ON
mit in den Readings angezeigt bekomme?
Bei fhem als MQTT-Device ging das per:
attr sonoff_basic1 subscribeReading_alarm1 cmnd/Garage_Tina_Alarm/POWER1

Hier die Einstellungen im Device:
Topic: Garage_Tina
Full Topic: /Smarthome/Sonoff/%topic%/%prefix%

Leider kann ich die Devices nun nicht mal mehr per MQTT_DEVICE schalten.
Habe das Gefühl das es am full topic liegt.
Wenn ich das raus nehme - funktioniert alles.
Steh komplett auf dem Schlauch.

Über Hilfe wäre ich sehr dankbar.

VG
Thorsten

Fehler: no IODev provided

beim Anlegen eines TASMOTA_DEVICE bekomme ich leider nur die Fehlermeldung

client device hash no IODev provided

FHEM 2.7 und Tasmota 6.1.1
hab ich irgendwelche Abhängigkeiten übersehen?

SONOFF DUAL/4CH POWER Command

Bei SONOFF Dual oder Sonoff 4CH gibt es ja POWER1-4, dann sollte es auch ein set POWER1-4 ON/OFF geben. Bitte bei der Entwicklung beachten.

Device not running out-of-the-box

Referring to #1 the TASMOTA_DEVICE just runs with certain conditions. Maybe there is a way to have any condition running.

First I need to have a / at the end of the full topic within the Sonoff.
Second I can't get the FHEM device running for the first time, so I need to edit the DEF in FHEM first and set it to the full topic without a / afterwards. When this is saved to fhem.cfg the device is running perfectly.

IODev - "client device hash no IODev provided"

Hi,
the issue with the IODev while & after creating a TASMOTA_DEVICE is still persitent.

I create a new device and it got no IODev assigned:
define sh_AmbienteLicht TASMOTA_DEVICE LichtDuscheAmbiente /SmartHome/Dusche/%topic%/%prefix%

trying to assign after creating the device via attr is giving me an error (also using the same vie FHME command line).
attr sh_AmbienteLicht IODev Mosquitto

I'm still using in parallel mqtt2 in my fhem. Is there any advice that someone could provide?
Yesterday I was able to create 2 devices that are working. I think I fully restarted the PI.

Change power commands

Would be great to have the commands "power on", "power off" and "power toggle" set to just "on", "off", "toggle" to have the common FHEM style.

Updates für 7.1.1.1?

Hallo,
wird die Entwicklung des Plugins noch fortgeführt?

Es wäre schade, wenn das Plugin nicht weiter aktualisiert wird.

Viele Grüße

Too many arguments for MQTT::client_subscribe_topic

Hallo, ich setze gerade ein neues Fhem auf und wollte zur Erleichterung das Modul TASMOTA_DEVICE nutzen. Beim Definieren des Devices erhalte ich allerdings folgende Fehlermeldung:

define Testschalter TASMOTA_DEVICE Testschalter S20/%topic%/%prefix%/

Cannot load module TASMOTA_DEVICE

Im Log steht:
2018.01.29 08:08:18 1: reload: Error:Modul 10_TASMOTA_DEVICE deactivated:
Too many arguments for MQTT::client_subscribe_topic at ./FHEM/10_TASMOTA_DEVICE.pm line 123, near "$mretain)"

2018.01.29 08:08:18 0: Too many arguments for MQTT::client_subscribe_topic at ./FHEM/10_TASMOTA_DEVICE.pm line 123, near "$mretain)"

Auf dem Fhem ist Mosquitto installiert...
Topic des Schalters ist: Testschalter
Full Topic ist: S20/%topic%/%prefix%/

Muß ich da noch was installieren, oder wo liegt mein Problem ?!?

Gruß und Dank
Marc

PERL WARNING: TASMOTA::DEVICE::Expand() called too early to check prototype

Hallo Matthias,

ich verwende dein Modul TASMOTA DEVICE fuer FHEM.Im FHEM Log finde ich diese Warnungen:

PERL WARNING: TASMOTA::DEVICE::Expand() called too early to check prototype at ./FHEM/10_TASMOTA_DEVICE.pm line 283, <$fh> line 84.
PERL WARNING: TASMOTA::DEVICE::Expand() called too early to check prototype at ./FHEM/10_TASMOTA_DEVICE.pm line 289, <$fh> line 84

Nun bin ich mir nicht sicher, ob alle eingebauten Funktionalitaeten einwandfrei funktionieren. Mein Modul ist up-to-date.

Wie ist deine Vorgehensweise, wenn ein Geraet, wie z.B. Touch EU T1 2CH, zwei Schalter besitzt? Sind es dann bei dir 2 "Geraete" ?

Beste Gruesse
Valentin

Power1

Hi Matthias,
nach langem hin und her habe ich von mosquitto zu mqtt2 wieder zurück zu mosquitto (bzw. aktuell noch beide broker parallel) gefunden. Deinen Anleitungen folgend...

Jetzt hab ich einen schwarzen Lichtschalter T1 oder T3 Schalter von Sonoff mit 3 channels.
Ich kann ihn erfolgreich über mqtt.fx über /SmartHome/Eingang/LichtEingang/cmnd/POWER1 on/off schalten.
Aber mir fehlt irgendwas in FHEM um das dort einzubinden.
HIer die aktuelle Configuration. Power habe ich auch schon POWER groß geschrieben. Nimmt aber den Befehl nicht an.

define HS_LichtEingang TASMOTA_DEVICE LichtEingang /SmartHome/Eingang/%topic%/%prefix%
attr HS_LichtEingang publishSet on off toggle /SmartHome/Eingang/LichtEingang/cmnd/Power1
attr HS_LichtEingang stateFormat state
attr HS_LichtEingang webCmd on:off:toggle

Was mache ich falsch?

Gruß Holger

Built-In Taster von einem Sonoff in FHEM über MQQT auswerten.

Hallo,
ich möchte den eingebauten Taster von einem Sonoff in FHEM über MQTT auswerten.
Den Ansatz, bei dem ich nicht weiter komme, geht über BottomTopic.

MQTT full topic ist /SmartHome/TestSonoff/cmnd/

Den ButtomTopic habe ich /TestSonoff/Taster genannt.
CMD: ButtonTopic
MQT: /SmartHome/TestSonoff/stat/RESULT = {"ButtonTopic":"/TestSonoff/Taster"}

Beim drücken des Tasters, wird am MQQT-Client folgendes ausgegeben:
/SmartHome/TestSonoff/Taster/cmnd/POWER --> TOGGLE

Mit /SmartHome/TestSonoff/cmnd/POWER -->on/off kann ich das Relais schalten.
Auch in FHEM kann ich schalten, Readings werden erzeugt.

Damit sollte ich alles haben was ich brauche, aber in FHEM wird beim drücken des Tasters kein Reading erzeugt.

Ziel ist über FHEM das Sonoffrelais über eine Logik zu schalten, die Logik aber zu verändern wenn der Taster am Sonoff gedrückt wird.

Full Topic

Hey!
Danke für das coole Modul!
Ich habe die Standard-Konfiguration von Tasomota - ein Befehl lautet bei mir z.B.
cmnd/$device/POWER
dein Modul sendet jedoch immer cmnd/POWER/$device
Kannst du das Schema auch supporten?

Thx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.