Search found 121 matches

by paxi
15 May 2017, 11:46
Forum: ESP Easy: Software
Topic: Problem: values set in rules don't match real values
Replies: 3
Views: 1627

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 ...
by paxi
15 May 2017, 03:01
Forum: ESP Easy: Software
Topic: Problem: values set in rules don't match real values
Replies: 3
Views: 1627

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...
by paxi
14 May 2017, 15:07
Forum: ESP Easy: General Discussion
Topic: timerset remaining time
Replies: 1
Views: 875

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...
by paxi
29 Apr 2017, 00:17
Forum: ESP Easy: Projects / Applications
Topic: Turning relay ON from Domoticz
Replies: 5
Views: 3841

Re: Turning relay ON from Domoticz

DeNB3rt wrote:
25 Apr 2017, 13:43
...
//edit, Think I found it:
pinstate = substr(response, 64, 1)

ty!
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. ;)
by paxi
24 Apr 2017, 09:21
Forum: ESP Easy: Software
Topic: Rules with combining logic
Replies: 6
Views: 2442

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'. :D
by paxi
13 Apr 2017, 23:19
Forum: ESP Easy: Software
Topic: Rules examples
Replies: 41
Views: 32744

Re: Rules examples

Code: Select all

On sensorname#valuename do
    If [sensorname#valuname] > 30
        Gpio 12,1
    Else
        Gpio 12,0 
    Endif
Endon
But if you really want to bring RH below 30% it may be easier to skip the esp and let the fan run permanently. :D
by paxi
09 Apr 2017, 21:47
Forum: ESP Easy: General Discussion
Topic: Response from the esp8266
Replies: 2
Views: 916

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)
by paxi
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: 6948

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 (important!)...
by paxi
06 Apr 2017, 22:41
Forum: ESP Easy: Software
Topic: Rules with combining logic
Replies: 6
Views: 2442

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:

Code: Select all

On event1 do
  If condition1 is met
   Event checkAND 
Endon

On checkAND do
   If condition2 is met
    Desired action
Endon
by paxi
04 Apr 2017, 22:41
Forum: ESP Easy: Software
Topic: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?
Replies: 5
Views: 2321

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

Hope you did consider that ESP8266 is only spec'ed down to -40°C. ;)
by paxi
01 Apr 2017, 20:40
Forum: ESP Easy: General Discussion
Topic: EspEasy Stuck at login screen
Replies: 5
Views: 2500

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.
by paxi
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: 1841

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 on pwm 13...
by paxi
26 Mar 2017, 01:33
Forum: ESP Easy: Hardware
Topic: Sonoff basic with touch switch problem
Replies: 14
Views: 9251

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. ;)
by paxi
26 Mar 2017, 01:20
Forum: ESP Easy: Hardware
Topic: Sonoff + wall manual switch
Replies: 4
Views: 2341

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.
by paxi
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: 1841

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
Not sure if a fixed eventvalue suits your need, you can make the line conditional or use [another#value].
You get the idea. ;)
by paxi
22 Mar 2017, 23:56
Forum: ESP Easy: General Discussion
Topic: ESP-12E/F LED Status.
Replies: 2
Views: 1793

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.
by paxi
22 Mar 2017, 23:23
Forum: ESP Easy: Software
Topic: Dummy device / rule not taking value
Replies: 8
Views: 2473

Re: Dummy device / rule not taking value

There seems to be a parsing error, this works:

Code: Select all

http://192.168.178.202/control?cmd=Event%2Ctest%3D5.77
%2C = ","
%3D = "="
by paxi
22 Mar 2017, 22:28
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

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...
by paxi
20 Mar 2017, 23:40
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

Re: Switch rules

It's still unclear what you mean:
- toggle switch
- momentary pushbutton
- latching pushbutton
by paxi
20 Mar 2017, 22:58
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

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 (active low from your sc...
by paxi
20 Mar 2017, 22:34
Forum: ESP Easy: Hardware
Topic: conecting to diode - check state
Replies: 11
Views: 2799

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
by paxi
20 Mar 2017, 22:15
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

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 standalone
by paxi
20 Mar 2017, 22:05
Forum: ESP Easy: Hardware
Topic: conecting to diode - check state
Replies: 11
Views: 2799

Re: conecting to diode - check state

Are you aware that ADC is designed for 1V max?
by paxi
20 Mar 2017, 21:58
Forum: ESP Easy: Hardware
Topic: Unable to configure hardware for NRF24L01 ESPEasy Upload
Replies: 1
Views: 1057

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 floppy disk...
by paxi
20 Mar 2017, 21:43
Forum: ESP Easy: Hardware
Topic: conecting to diode - check state
Replies: 11
Views: 2799

Re: conecting to diode - check state

... or use the signal at the upper end of R736 (via voltage divider if >3.3V). ;)
by paxi
20 Mar 2017, 21:29
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

Re: Switch rules

Then change

Code: Select all

If [SpeakersA#state]=0
to

Code: Select all

If [SpeakersA#state]=1
by paxi
20 Mar 2017, 01:20
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

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. ;)
by paxi
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: 1091

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. ;)
by paxi
20 Mar 2017, 00:49
Forum: ESP Easy: Hardware
Topic: ESP-01 strange response
Replies: 5
Views: 1847

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...
by paxi
20 Mar 2017, 00:27
Forum: ESP Easy: Software
Topic: Resets the variable every day.
Replies: 27
Views: 3660

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- too much for espeas...
by paxi
18 Mar 2017, 18:04
Forum: ESP Easy: Software
Topic: Resets the variable every day.
Replies: 27
Views: 3660

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...
by paxi
18 Mar 2017, 17:21
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

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.
by paxi
18 Mar 2017, 17:11
Forum: ESP Easy: Hardware
Topic: ESP-01 strange response
Replies: 5
Views: 1847

Re: ESP-01 strange response

Do other ESP's work?
Which USB/UART adapter is used?
by paxi
17 Mar 2017, 21:30
Forum: ESP Easy: General Discussion
Topic: advice on very remote monitoring
Replies: 6
Views: 1976

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. ;)
by paxi
17 Mar 2017, 14:28
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

Re: Switch rules

Then select "normal switch". ;)
by paxi
17 Mar 2017, 10:11
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

Re: Switch rules

It works for me. This is my switch setup:
Screenshot_2017-03-17-10-09-20.png
Screenshot_2017-03-17-10-09-20.png (86.53 KiB) Viewed 4449 times
Screenshot_2017-03-17-10-09-03.png
Screenshot_2017-03-17-10-09-03.png (99.62 KiB) Viewed 4449 times
by paxi
17 Mar 2017, 00:29
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

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...
by paxi
17 Mar 2017, 00:00
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

Re: Switch rules

See my edit above re inputswitchstate.
by paxi
16 Mar 2017, 23:50
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

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.
by paxi
16 Mar 2017, 23:36
Forum: ESP Easy: Software
Topic: Switch rules
Replies: 26
Views: 6790

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 call the firs...
by paxi
16 Mar 2017, 23:07
Forum: ESP Easy: Hardware
Topic: BME280 Humidity Reading
Replies: 2
Views: 1192

Re: BME280 Humidity Reading

This dry climate is perfect for machines but not so for humans. ;)
by paxi
16 Mar 2017, 22:41
Forum: ESP Easy: Software
Topic: Problem About Wifi Connection
Replies: 1
Views: 750

Re: Problem About Wifi Connection

After flashing you need to powercycle the unit and wait a minute or two until "ESP_0" popps up.
by paxi
16 Mar 2017, 21:46
Forum: ESP Easy: General Discussion
Topic: advice on very remote monitoring
Replies: 6
Views: 1976

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...
by paxi
14 Mar 2017, 04:21
Forum: ESP Easy: Software
Topic: Odd problems when trying to write to H801 Wifi Controller
Replies: 2
Views: 1308

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. :)
by paxi
08 Mar 2017, 13:00
Forum: ESP Easy: Projects / Applications
Topic: PICmicrochip/ESP8266 - i2c communication
Replies: 3
Views: 1184

Re: PICmicrochip/ESP8266 - i2c communication

Using a PWM expander seems easier and is implemented in ESPEasy. ;)
by paxi
08 Mar 2017, 12:52
Forum: ESP Easy: Software
Topic: rc-switch plugin
Replies: 62
Views: 23903

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.
by paxi
08 Mar 2017, 12:45
Forum: ESP Easy: Software
Topic: Device values persistence
Replies: 6
Views: 2020

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 device at s...
by paxi
08 Mar 2017, 12:29
Forum: ESP Easy: Software
Topic: Introducing the Dummy Device on ESP Easy (Github R118!)
Replies: 29
Views: 24912

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.
by paxi
06 Mar 2017, 16:44
Forum: ESP Easy: Hardware
Topic: Help with Sonoff flashing
Replies: 47
Views: 26049

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.