Comments (14)
The Webserver one seems to be a bug I can correct easily tomorrow. Regarding the ElektroDragon this is more complicated because for the PCF I scan the I2C bus and any of the valid channels count as one PCF with 8 relays. I assume my algorithm detects the electrodragon as a PCF board. Can you share in debug log the start procedure. Maybe it helps to change the I2C address. Further investigation is required
from sonoff-tasmota.
Hello these are messages i get after reboot:
00:00:00 RSLT: pcf8574 1 boards
00:00:00 RSLT: Final max devices: 10, PCF8574 devices 8
00:00:00 Project sonoff Sonoff (Topic sonoff_ed1, Fallback DVES_338C76, GroupTopic sonoffs) Version 5.13.1a-2_4_1
00:00:00 WIF: Connecting to AP1 xxxxx in mode 11N as sonoff_ed1-3190...
16:49:35 WIF: Connected
16:49:35 DNS: Initialized
16:49:35 HTP: Web server active on sonoff_ed1-3190.local with IP address 192.168.40.50
16:49:36 MQT: Attempting connection...
16:49:36 MQT: Connected
16:49:36 MQT: tele/sonoff_ed1/LWT = Online (retained)
16:49:36 MQT: cmnd/sonoff_ed1/POWER =
16:49:36 MQT: tele/sonoff_ed1/INFO1 = {"Module":"ElectroDragon","Version":"5.13.1a","FallbackTopic":"DVES_338C76","GroupTopic":"sonoffs"}
16:49:36 MQT: tele/sonoff_ed1/INFO2 = {"WebServerMode":"Admin","Hostname":"sonoff_ed1-3190","IPAddress":"192.168.40.50"}
16:49:36 MQT: tele/sonoff_ed1/INFO3 = {"RestartReason":"Software/System restart"}
16:49:36 RSLT: Final max devices: 18, PCF8574 devices 16
It seams that it detects first the correct situation and later it things there is one additional pcf8547.
i2scan gives:
17:08:48 MQT: stat/sonoff_ed1/RESULT = {"I2CScan":"Device(s) found at 0x3f"}
Best regards
from sonoff-tasmota.
Oh yes, this is interesting and for sure an unwanted behavior. I will try to fix this asap
from sonoff-tasmota.
The behavior is fixed and tested with the 6.0.0 upgrade
from sonoff-tasmota.
Where do i need now enable PCF8574 support?
from sonoff-tasmota.
No change to the old behavior. SCL and SDA must be defined and use_pcf8574 must be enabled. if at least one board is found during scan the webinterface will show a configuration page. Please see wiki.
#define USE_PCF8574
from sonoff-tasmota.
Thanks for fixing the bug. It works now.
But i recognized two curious MQTT messages. Switching relay 1 to 8 gives messages like this
Client mosqsub|4233-vdr received PUBLISH (d0, q0, r0, m0, 'stat/sonoff_ed1/RESULT', ... (16 bytes))
stat/sonoff_ed1/RESULT {"POWER3":"OFF"}
Client mosqsub|4233-vdr received PUBLISH (d0, q0, r0, m0, 'stat/sonoff_ed1/POWER3', ... (3 bytes))
stat/sonoff_ed1/POWER3 OFF
Relays 9 to 10 gives additional a domoticz message as follows:
Client mosqsub|4233-vdr received PUBLISH (d0, q0, r0, m0, 'domoticz/in', ... (58 bytes))
domoticz/in {"idx":1950,"nvalue":1,"svalue":"","Battery":89,"RSSI":10}
Client mosqsub|4233-vdr received PUBLISH (d0, q0, r0, m0, 'stat/sonoff_ed1/RESULT', ... (16 bytes))
stat/sonoff_ed1/RESULT {"POWER10":"ON"}
Client mosqsub|4233-vdr received PUBLISH (d0, q0, r0, m0, 'stat/sonoff_ed1/POWER10', ... (2 bytes))
stat/sonoff_ed1/POWER10 ON
Is this a feature or a bug?
from sonoff-tasmota.
Hm, sound not like a cool feature. therefore i would vote for a bug.
Let me guess you have defined 2 RELAYS and the 8 RELAYS on the PCF. Therefore 1 and 2 should be normal and 3-10 should be executed by the PCF functions.
from sonoff-tasmota.
Ok, updated some functionality. The new behavior is now that the GPIO relays are first in the list. the the PCF relays show up. This has not changed so far. In the Standard configuration, 4 devices are defined for domoticz. The first 4 Relays are assignable. Changing this setting should allow to enhance it to more relays:
#define MAX_DOMOTICZ_IDX 4 // Max number of Domoticz device, key and switch indices
from sonoff-tasmota.
You are guessing right. relay 1 and 2 are connected to gpio's and 3 to 10 to the PCF.
I don't need any Domoticz messages, how to disable them? It was curious to see, that
these messages where generated only for relay 9 and 10.
Your updated software i will try later.
from sonoff-tasmota.
you can either #undef USE_DOMOTICZ and or set all indexes to 0 on the config page
from sonoff-tasmota.
There is still somezhing strange:
00:00:00 RSLT: pcf8574 1 boards
00:00:00 RSLT: Final max devices: 2, PCF8574 devices 0
00:00:00 Project sonoff Sonoff (Topic sonoff, Fallback DVES_338C76, GroupTopic sonoffs) Version 6.0.0a-2_4_1
00:00:00 WIF: Connecting to AP1 giot12 in mode 11N as sonoff-3190...
00:00:06 WIF: Connected
00:00:06 DNS: Initialized
00:00:06 HTP: Web server active on sonoff-3190.local with IP address 192.168.40.50
00:00:07 MQT: Attempting connection...
00:00:07 MQT: Connected
00:00:07 MQT: tele/sonoff/LWT = Online (retained)
00:00:07 MQT: cmnd/sonoff/POWER =
00:00:07 MQT: tele/sonoff/INFO1 = {"Module":"ElectroDragon","Version":"6.0.0a","FallbackTopic":"DVES_338C76","GroupTopic":"sonoffs"}
00:00:07 MQT: tele/sonoff/INFO2 = {"WebServerMode":"Admin","Hostname":"sonoff-3190","IPAddress":"192.168.40.50"}
00:00:07 MQT: tele/sonoff/INFO3 = {"RestartReason":"Software/System restart"}
00:00:08 MQT: stat/sonoff/RESULT = {"POWER1":"OFF"}
00:00:08 MQT: stat/sonoff/POWER1 = OFF
00:00:08 MQT: stat/sonoff/RESULT = {"POWER2":"OFF"}
00:00:08 MQT: stat/sonoff/POWER2 = OFF
As you can see PCF is detected but the 8 relays don`t show in the webui.
from sonoff-tasmota.
please goto CONFIGURATION -> Configure PCF8574 and set the Relays to OUTPUT. Done
from sonoff-tasmota.
Thanks it works now. It was my fault. I forgot that I had to do the configuration from scratch,
because of compilation for 4M flash to be able to do OTA agin.
from sonoff-tasmota.
Related Issues (20)
- SetOption80 1 HangUp the Device HOT 13
- Can´t connect to WIFI after upload your Firmware HOT 2
- SHUTTER50PERCENT not work HOT 7
- Erratic Behaviour when Slow Blinds - includes fix HOT 1
- Dim the lights in the switch? HOT 6
- Shutter dead time support HOT 11
- Vcc in state HOT 3
- Alexa Dimming doesnt work HOT 4
- PCF8574 on master HOT 2
- PCF8574: ports on at startup HOT 9
- MQTT Report during movement HOT 1
- DeepSleep consumption HOT 1
- MQT: TLS connection error: 0 HOT 4
- Calibration 2nd shutter HOT 1
- Shutter with LC-TECH X2 in mode 1 allows changing direction without power removal HOT 5
- MQT: TLS connection error: 0 HOT 1
- Mq sensor
- Sonoff touch TX T3 Us
- upgrading from Sonoff-Tasmota 6.5.0.11 stb-1.5 by Theo Arends HOT 7
- Shutter - inverse mode - slider not correct HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonoff-tasmota.