Search found 121 matches
- 15 May 2017, 11:46
- Forum: ESP Easy: Software
- Topic: Problem: values set in rules don't match real values
- Replies: 3
- Views: 4770
Re: Problem: values set in rules don't match real values
Did you reload the device page after the event was executed? It doesn't update in real time. I'm not familiar enough with the source code to tell if its a limitation in espeasy. Probably the suggestion in the thread you found - use an arduino to decode the keypad or adopt the plugin to espeasy - is ...
- 15 May 2017, 03:01
- Forum: ESP Easy: Software
- Topic: Problem: values set in rules don't match real values
- Replies: 3
- Views: 4770
Re: Problem: values set in rules don't match real values
Hmm, hard to get the head around this... ;) I'm not sure if it is a general problem to permanently alter between input and output. The PCF8575A's datasheet says The I/Os should be high before being used as inputs. this seems to be met. The only potential error I can spot in your rules is On K5#Switc...
- 14 May 2017, 15:07
- Forum: ESP Easy: General Discussion
- Topic: timerset remaining time
- Replies: 1
- Views: 2508
Re: timerset remaining time
I use these rules in conjunction with a dummy device (state#sleep) as sleep-timer for a lamp: on sleeptimer do TaskValueSet 2,2,(%eventvalue%+[state#sleep]) event,switchon TimerSet 2,60 endon on Rules#Timer=2 do TaskValueSet 2,2,([state#sleep]-1) if [state#sleep]>0 TimerSet 2,60 else event,switchoff...
- 29 Apr 2017, 00:17
- Forum: ESP Easy: Projects / Applications
- Topic: Turning relay ON from Domoticz
- Replies: 5
- Views: 8018
Re: Turning relay ON from Domoticz
Funny to see that here, I've posted that line of pseudocode in a completely different context - it won't do anything in domoticz or with a dead node. You may want to reread the topic where you found it.
- 24 Apr 2017, 09:21
- Forum: ESP Easy: Software
- Topic: Rules with combining logic
- Replies: 6
- Views: 6314
Re: Rules with combining logic
I feel honored toffel969.
Martinus' solution is way more elegant for cases where at least one condition depends on the variable triggering the event. Mine is 'universal'.
Martinus' solution is way more elegant for cases where at least one condition depends on the variable triggering the event. Mine is 'universal'.
- 13 Apr 2017, 23:19
- Forum: ESP Easy: Software
- Topic: Rules examples
- Replies: 41
- Views: 70540
Re: Rules examples
Code: Select all
On sensorname#valuename do
If [sensorname#valuname] > 30
Gpio 12,1
Else
Gpio 12,0
Endif
Endon
- 09 Apr 2017, 21:47
- Forum: ESP Easy: General Discussion
- Topic: Response from the esp8266
- Replies: 2
- Views: 3025
Re: Response from the esp8266
You can send the "status" command via http to the esp and parse the pin state from the response. In my automation app it reads like this
Code: Select all
pinstate = substr(response, 64, 1)
- 09 Apr 2017, 21:18
- Forum: ESP Easy: Projects / Applications
- Topic: long push, short push detection with a button (connected on gpio)
- Replies: 10
- Views: 13417
Re: long push, short push detection with a button (connected on gpio)
Here is a snippet of working "production" code as example: on Button#Button do if [Button#Button]=1 TimerSet 3,5 TaskValueSet 2,4,1 PWM 13,0 else TimerSet 3,0 TaskValueSet 2,4,0 endif endon on Rules#Timer=3 do if [State#Reboot]=1 Reboot endif endon Button# is configured as normal switch (i...
- 06 Apr 2017, 22:41
- Forum: ESP Easy: Software
- Topic: Rules with combining logic
- Replies: 6
- Views: 6314
Re: Rules with combining logic
The rules tutorial states that neither boolean logic nor nesting is supported.
You can work around this limitation by creating another rule:
You can work around this limitation by creating another rule:
Code: Select all
On event1 do
If condition1 is met
Event checkAND
Endon
On checkAND do
If condition2 is met
Desired action
Endon
- 04 Apr 2017, 22:41
- Forum: ESP Easy: Software
- Topic: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?
- Replies: 29
- Views: 14855
Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?
Hope you did consider that ESP8266 is only spec'ed down to -40°C.
- 01 Apr 2017, 20:40
- Forum: ESP Easy: General Discussion
- Topic: EspEasy Stuck at login screen
- Replies: 5
- Views: 7006
Re: EspEasy Stuck at login screen
Either you configured an admin pw in the initial setup or it is empty.
If none of these work reset to defaults: short rx and tx pins and apply power for a minute, power off, remove jumper and start from scratch.
If none of these work reset to defaults: short rx and tx pins and apply power for a minute, power off, remove jumper and start from scratch.
- 26 Mar 2017, 22:39
- Forum: ESP Easy: General Discussion
- Topic: Feature Request collection/list
- Replies: 197
- Views: 192336
- 26 Mar 2017, 22:33
- Forum: ESP Easy: Software
- Topic: YAR (yet another rules) question - calling an action from an action, not working?
- Replies: 6
- Views: 5467
Re: YAR (yet another rules) question - calling an action from an action, not working?
There is a syntax error in line 1: rules#timer not time. ;) Sadly you can't use clock#time with <> operators, only =. Here is a working example of "time framed" switching including boot handling: //ceiling lamp with sonoff on switchon do TaskValueSet 2,1,1 //State#Relay=1 gpio 12,1 //Relay...
- 26 Mar 2017, 01:33
- Forum: ESP Easy: Hardware
- Topic: Sonoff basic with touch switch problem
- Replies: 14
- Views: 20343
Re: Sonoff basic with touch switch problem
I had similar issues with a PIR module in a sonoff, it depends on where the wires run in the housing. I think it's stray EMI from the transformer - a 100nF cap between ground and signal should fix your problem, I just re-routed my wires.
- 26 Mar 2017, 01:20
- Forum: ESP Easy: Hardware
- Topic: Sonoff + wall manual switch
- Replies: 4
- Views: 5308
Re: Sonoff + wall manual switch
If you use a standard wall switch configure "switch button" type to "normal switch". Just to be safe wire a 1k resistor in series with the switch.
- 26 Mar 2017, 01:04
- Forum: ESP Easy: Software
- Topic: YAR (yet another rules) question - calling an action from an action, not working?
- Replies: 6
- Views: 5467
Re: YAR (yet another rules) question - calling an action from an action, not working?
Code: Select all
On whatever#event do
Event SetPoolVarPump=1
Endon
You get the idea.
- 22 Mar 2017, 23:56
- Forum: ESP Easy: General Discussion
- Topic: ESP-12E/F LED Status.
- Replies: 2
- Views: 4861
Re: ESP-12E/F LED Status.
According to this page
http://www.esp8266.com/wiki/doku.php?id ... esp-12-e_q
the LED is on gpio 2, active low.
http://www.esp8266.com/wiki/doku.php?id ... esp-12-e_q
the LED is on gpio 2, active low.
- 22 Mar 2017, 23:23
- Forum: ESP Easy: Software
- Topic: Dummy device / rule not taking value
- Replies: 8
- Views: 7128
Re: Dummy device / rule not taking value
There seems to be a parsing error, this works:
%2C = ","
%3D = "="
Code: Select all
http://192.168.178.202/control?cmd=Event%2Ctest%3D5.77
%3D = "="
- 22 Mar 2017, 22:28
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
Hmm, I've just noticed you configured speakersA to send boot state but it is default (and thus possibly undefined) in the hardware page. Set the gpio to the desired output state but I'm not sure it will help. Another test is to disconnect espeasy from domoticz (i. e. with a non-valid conroller IP) a...
- 20 Mar 2017, 23:40
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
It's still unclear what you mean:
- toggle switch
- momentary pushbutton
- latching pushbutton
- toggle switch
- momentary pushbutton
- latching pushbutton
- 20 Mar 2017, 22:58
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
I've overlooked that your relays are active low - my mistake. Anyhow it should work with the latest code. But: Earlier you wrote "bistable switch" now "physical button". Different things and a momentary button (opposed to a toggle switch) needs to be configured as pushbutton (act...
- 20 Mar 2017, 22:34
- Forum: ESP Easy: Hardware
- Topic: conecting to diode - check state
- Replies: 11
- Views: 8935
Re: conecting to diode - check state
Gpio's are 3.3V, ADC isn't. Google those abreviations and read the datasheet.
Inputs are high impedance - asking for current is the wrong question.
Resistors:
https://www.google.de/search?q=voltage+ ... calculator
Inputs are high impedance - asking for current is the wrong question.
Resistors:
https://www.google.de/search?q=voltage+ ... calculator
- 20 Mar 2017, 22:15
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
I think there is something conflicting in domoticz. But honestly: its no fun trying to help you - you didn't provide the information asked for (there is still no hint what you're doing in domoticz) and most of your replies are just "it didn't work". Again: it works perfect for me in standa...
- 20 Mar 2017, 22:05
- Forum: ESP Easy: Hardware
- Topic: conecting to diode - check state
- Replies: 11
- Views: 8935
Re: conecting to diode - check state
Are you aware that ADC is designed for 1V max?
- 20 Mar 2017, 21:58
- Forum: ESP Easy: Hardware
- Topic: Unable to configure hardware for NRF24L01 ESPEasy Upload
- Replies: 1
- Views: 2735
Re: Unable to configure hardware for NRF24L01 ESPEasy Upload
There is simply nothing to flash in a NRF24L01, its "firmware" is etched into the chip. Even of it had a flash you couldn't run a firmware for a completly different system. Interfacing UART and SPI is also very pointless... It's like trying to install Windows from a CD on an old Mac with f...
- 20 Mar 2017, 21:43
- Forum: ESP Easy: Hardware
- Topic: conecting to diode - check state
- Replies: 11
- Views: 8935
Re: conecting to diode - check state
... or use the signal at the upper end of R736 (via voltage divider if >3.3V).
- 20 Mar 2017, 21:29
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
- 20 Mar 2017, 01:20
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
"inversed" setting for SpeakersA switch is the culprit: value is 0 with gpio high and vice versa - this way the rules can't work.
- 20 Mar 2017, 01:04
- Forum: ESP Easy: Hardware
- Topic: Getting Started - No data getting through to Domoticz from BME280 via ESPEasy setup
- Replies: 1
- Views: 2674
Re: Getting Started - No data getting through to Domoticz from BME280 via ESPEasy setup
Your controller IP is set to the loopback address - espeasy sends the data to itself.
- 20 Mar 2017, 00:49
- Forum: ESP Easy: Hardware
- Topic: ESP-01 strange response
- Replies: 5
- Views: 6335
Re: ESP-01 strange response
Smells like FTDI chip. Let me guess - you're using Windows 10? Try again with a different unit, most likely it won't work also: Welcome to FTDIgate mk2 . If it uses a fake chip (99% of them do) then the latest driver update made it talk bullshit. Solution: avoid anything with FDTI on it and use an a...
- 20 Mar 2017, 00:27
- Forum: ESP Easy: Software
- Topic: Resets the variable every day.
- Replies: 27
- Views: 23485
Re: Resets the variable every day.
Always a joy. ;) "Hourly rain" would be easy with the same principle using a timer that triggers every 60 minutes but that would only provide a measurement for every full hour. An instant (every minute) "last 60 minutes" would require to store 60 values and awefullly hacky rules-...
- 18 Mar 2017, 18:04
- Forum: ESP Easy: Software
- Topic: Resets the variable every day.
- Replies: 27
- Views: 23485
Re: Resets the variable every day.
Bad decision - On Clock#Time=All,20:00 do reboot endon On Clock#Time=All,8:00 do reboot endon Do you have any other suggestions? What happens? Bootloop for a minute I guess. In this case a workaround is to set a timer and reboot when it's 20:01. You can do basic calculations in rules like this: Tas...
- 18 Mar 2017, 17:21
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
"It does not work" is not sufficient info to help.
Post your complete setup:
-devices like above
-rules
-schematic of switches
-domoticz code
Describe exactly what happens when and preferably provide logs from the serial interface.
Post your complete setup:
-devices like above
-rules
-schematic of switches
-domoticz code
Describe exactly what happens when and preferably provide logs from the serial interface.
- 18 Mar 2017, 17:11
- Forum: ESP Easy: Hardware
- Topic: ESP-01 strange response
- Replies: 5
- Views: 6335
Re: ESP-01 strange response
Do other ESP's work?
Which USB/UART adapter is used?
Which USB/UART adapter is used?
- 17 Mar 2017, 21:30
- Forum: ESP Easy: General Discussion
- Topic: advice on very remote monitoring
- Replies: 6
- Views: 5692
Re: advice on very remote monitoring
I'm not aware of a 3g/4g phone that has NO 2g ability. Just a matter of configuration to make it not use the faster networks.
- 17 Mar 2017, 14:28
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
Then select "normal switch".
- 17 Mar 2017, 10:11
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
It works for me. This is my switch setup:
- 17 Mar 2017, 00:29
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
On switchA#switch do If [RelayA#state]=0 Gpio 16,1 Else Gpio 16,0 Endif Endon On switchB#switch do If [RelayB#state]=0 Gpio 12,1 Else Gpio 12,0 Endif Endon Nothing else. I don't use domoticz and therefore can't exactly advice how to reconfigure it. Make only the pseudo switches send data to the con...
- 17 Mar 2017, 00:00
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
See my edit above re inputswitchstate.
- 16 Mar 2017, 23:50
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
I know. Just try it.
The new "pseudo" switch stores the status of the relay which my suggested rule then uses to toggle it.
The new "pseudo" switch stores the status of the relay which my suggested rule then uses to toggle it.
- 16 Mar 2017, 23:36
- Forum: ESP Easy: Software
- Topic: Switch rules
- Replies: 26
- Views: 23310
Re: Switch rules
Sure. Create a new switch device (i. e. Name RelayA, valuename state) with gpio 16 as input. Rule: On switchA#switch do If [RelayA#state]=0 Gpio 16,1 Else Gpio 16,0 Endif Endon Similar for your second switch/relay of course. You may need to delete the "inputswitchstate" commands if you cal...
- 16 Mar 2017, 23:07
- Forum: ESP Easy: Hardware
- Topic: BME280 Humidity Reading
- Replies: 2
- Views: 3110
Re: BME280 Humidity Reading
This dry climate is perfect for machines but not so for humans.
- 16 Mar 2017, 22:41
- Forum: ESP Easy: Software
- Topic: Problem About Wifi Connection
- Replies: 1
- Views: 2399
Re: Problem About Wifi Connection
After flashing you need to powercycle the unit and wait a minute or two until "ESP_0" popps up.
- 16 Mar 2017, 21:46
- Forum: ESP Easy: General Discussion
- Topic: advice on very remote monitoring
- Replies: 6
- Views: 5692
Re: advice on very remote monitoring
Why not use an old smartpone for internet connection? For the small amount of data to transmit 2G is more than sufficient amd consumes less power than 3G. With a sufficient solar panel it shouldn't be a problem to run phone and esp 24/7. Chose switching regulators for best efficiency of power conver...
- 14 Mar 2017, 04:21
- Forum: ESP Easy: Software
- Topic: Odd problems when trying to write to H801 Wifi Controller
- Replies: 2
- Views: 3404
Re: Odd problems when trying to write to H801 Wifi Controller
I think it's 2) - you're missing the privilege to execute random unknown programms. Talk to your admin, but I doubt he will expose "his" environment to such a risk.
- 08 Mar 2017, 13:00
- Forum: ESP Easy: Projects / Applications
- Topic: PICmicrochip/ESP8266 - i2c communication
- Replies: 3
- Views: 3740
Re: PICmicrochip/ESP8266 - i2c communication
Using a PWM expander seems easier and is implemented in ESPEasy.
- 08 Mar 2017, 12:52
- Forum: ESP Easy: Software
- Topic: rc-switch plugin
- Replies: 62
- Views: 66656
Re: rc-switch plugin
I'm not very versed with github but generally you fork into your own repo online, submit your commit(s) to that and then file a pull request against the original repo.
- 08 Mar 2017, 12:45
- Forum: ESP Easy: Software
- Topic: Device values persistence
- Replies: 6
- Views: 5783
Re: Device values persistence
I think there is a way to use the broker to srore and retrieve values. Using ESPEasy in standalone mode I can't guide you but it may be "MQTT Retain Msg" in advanced settings. Keep in mind that writing to flash memory causes wear and - depending on how often this is done - will brick the d...
- 08 Mar 2017, 12:29
- Forum: ESP Easy: Software
- Topic: Introducing the Dummy Device on ESP Easy (Github R118!)
- Replies: 29
- Views: 48179
Re: Introducing the Dummy Device on ESP Easy (Github R118!)
Simple: set the switch type to "normal switch", then the value is 1 as long as you hold the button and returns to 0 when you release it.
- 06 Mar 2017, 16:44
- Forum: ESP Easy: Hardware
- Topic: Help with Sonoff flashing
- Replies: 47
- Views: 52973
Re: Help with Sonoff flashing
ESPlorer just for serial monitorimg seems overkill to me. I use PuTTy for that, it's just a few kB and runs without intall right from the exe.
Did you check output voltage of your FTDI? Mine happily provides 5V even when set to 3V, only the TX line changes voltage by the switch.
Did you check output voltage of your FTDI? Mine happily provides 5V even when set to 3V, only the TX line changes voltage by the switch.