You can read about it here and download the manual for details here.
Enjoy!
May 20, 2015
The new Wireless Multi sensor Mk3 is available in the store!
Labels:
12f1840,
1wire,
carbon dioxide,
co2,
dht22,
ds1820,
ds18b20,
ds2450,
fineoffset,
foogadgets,
lmst606,
max31850,
rfxcom,
rfxmeter,
rfxtrx433,
senseair,
telldus,
tellstick,
thermocouple,
wireless multi sensor
May 3, 2015
How to make the WPC work in Domoticz
Updated 2016-12-04: Updated to reflect Mattias new lua-script.
Here are some short steps to get the WPC working in Domoticz.
Here are some short steps to get the WPC working in Domoticz.
1. Enable the X10 protocol.
In Domoticz: Click Setup and then Hardware. Click Set Mode for the RFXtrx433(E). Check the X10 checkbox if not already checked.
The WPC should after this, be shown as a RFXMeter
(In Domoticz you can fully ignore the other type of protocol the WPC transmits. i.e. Temperature/Humidity sensor with ID 4600)
2. Turn on and find the WPC in Domoticz.
In this step, the WPC does not need to be mounted to your electrical meter or Gas meter or whatever you like to count. It just need to be powered on and within range of the RFXtrx433(E)
Click Setup then Devices. Click the button All Devices and locate the RFXMeter sensor in the list. The WPC transmits a signal immediately at power on, and the once every 60 seconds, so it should be found in the list.
3. Add the RFXMeter to your list of Used sensors.
Click the green circle with white arrow pointing to the right, on the right most side of the page.
If it is a blue circle, it is already added to your list of Used sensors.
4. Name your RFXMeter sensor.
Click on the tab Utility in the top. Locate the RFXMeter, and click Edit and give it a name of your choice. This name will be used further down in this list. Also choose Type Energy in the dropdown list (if that is what you like to measure).
5. Add device that show Power consumption [W].
To be able to not only see Energy [Wh] but also see the Power usage [W], please download this excellent lua-script from one of my customers (credit to Mattias Hedström), https://github.com/mrhedstrom/domoticz/blob/master/scripts/lua/script_device_ActualEnergy.lua
To make it work, you need to follow step 5.1 to 5.3 below.
5.1 Create an Electric virtual sensor.
Click Setup and then Hardware. As Type, choose Dummy... Add a name and click Add.
From the newly created Dummy-device, click Create Virtual Sensors. In the drop-down list choose Electric...
Click Setup and then Devices. Click All devices. You should be able to find your newly created Electric virtual sensor. Make note of its idx for later use.
energyCounter: This should be the same string as the name you gave to the RFXMeter in step 4 above.
dummyEnergyMeter: This should be the same string as the name you gave to the Electric Virtual Sensor created in step 5.1
dummyEnergyMeterid: Use the idx integer of the Electric Virtual Sensor created in step 5.1 above.
Now all the software is in place and you should get reports once every minute from the WPC to Domoticz.
5.3 Place the updated script in the Domoticz subfolder <path-to-domoticz>/scripts/lua/
Credit to Mattias Hedström and Patrik Nordelind for helping out making this list.
April 28, 2015
Tellstick DUO firmware with support for the WPC
Yesterday I sent a pull request to Telldus asking to include my code that adds native support for the Wireless Pulse Counter for the Tellstick DUO.
The update contains two parts, The patched firmware for the Tellstick DUO, and the patched telldus-core that runs on the computer where the Tellstick DUO is connected. The Firmware I provide compiled and it is ready for download, whereas the telldus-core software you need to compile yourself.
Of course, despite this code update, you will still need to do at least some calculations on the receiving side.
Firmware
The firmware adds support for the RFXCOM-protocol that is used by the WPC (Protocol description...kind of).
The effect of using this firmware is that the WPC will no longer show up as a thermometer but instead as a RFXmeter device which is made for presenting number of pulses, and not temperature, humidity, wind speed etc. The earlier calculations below will no longer be needed,
if ( !signbit(temperature) ) { i_counts = humidity*4096 + (int)(10.0*temperature); } else { i_counts = humidity*4096 - (int)(10.0*temperature) + 2048; }
The maximum number of counts is also increased from 413,696 to 2^24 (16,777,216).
NOTE! I have only tested this firmware on my own Tellstick DUO.
The same code have been provided to Telldus so that they can include it in the next release of the firmware.
It is also likely to be released in the Tellstick NET firmware as well since the same code can be used. Link to the Telldus ticket.
The already compiled firmware can be downloaded here,
UPDATED: 2015-04-30: I added another check to make sure it is a RFXCOM package and also fixed so that the checksum is kept through the Tellstick.
UPDATED: 2015-04-30: I added another check to make sure it is a RFXCOM package and also fixed so that the checksum is kept through the Tellstick.
Software
The telldus-core software also need to be updated. This is the software that interpret the new raw data that comes from the Tellstick DUO when it receives data from a WPC. The Pull request for this can be downloaded here, telldus-core patch.
Calculations
First get to know your energy meter recalculation factor. Find the [imp/kWh] marking on your energy meter. Then divide 1,000 with the number you find.
Example 1. If it is marked with 10,000imp/kWh the recalculation factor is 1,000/10,000 = 1/10
Example 2. If it is marked with 500imp/kWh the recalculation factor is 1,000/500 = 2
Once you have the recalculation factor you can use that to calculate the consumed Energy and present Power usage.
Energy [kWh], multiply your received number with the recalculation factor for your energy meter. You will likely want it in [kWh], thus the dividend 1,000.
Energy = count • (recalculation factor) / 1,000
Power usage [kW] you need to divide the difference in detected pulses with the elapsed time [s].
Power = ∆ count • (recalculation factor) • 60 • 60 / ∆ t / 1,000
∆ t is given in seconds [s]. Usually the WPC transmit approximately every 60 second, but if one transmission is lost, the ∆ t will be around 120 seconds etc.
The dividend 1,000 is there to get the result in [kW]
February 6, 2015
New version of the WMS Mk2 Manual
August 27, 2014
Troubleshooting the Wireless Pulse Counter
In most cases the Wireless Pulse Counter is just plug and play. But if you do have problems getting readings from your Wireless Pulse Counter, please have a look at this trouble shooting guideline.
I will update this post when needed.
The WPC show up in TelldusCenter (or similar), but the counter value is not changing:
I will update this post when needed.
First. Make sure your Tellstick DUO/NET have a firmware equal to, or higher than 12 for DUO or 17 for NET or 79 for RFXtrx433. Here is more information for the Tellsticks, http://developer.telldus.com/blog/2014/04/03/tellduscenter_2.1.2. In this firmware version there has been a correction in the Fineoffset protocol that enables the checksum feature in the protocol. This will ensure that you do not get any false readings.
The WPC does not show up in TelldusCenter (or similar):
- Make sure that the LED on the WPC is blinking once every minute. The LED blink when it transmit data. Even if it has not detected any blinks.
- Make sure that the Tellstick blinks at the same time the WPC LED blink. This indicates that the Tellstick have received and decoded the data.
The WPC show up in TelldusCenter (or similar), but the counter value is not changing:
- Make sure that the "eye" of the WPC can receive pulses. Aim a standard TV-remote to the "eye" and press a button. Make sure that you do this where there is very dim light. The next transmission you get should then be seen as an increased value.
- If the LED blinks more often than once every minute. If it blinks every 10 seconds or so. Then it is likely that you use a USB power pack that is too "smart" for the WPC. Some of the power packs automatically shut down if there is no load. The WPC draws so little power that some of the power packs thinks that nothing is connected and turns off and on. When it restarts all the time, it will always send the same value.
The WPC show up in TelldusCenter (or similar), but the counter value is unreasonably high:
- It is likely that there are false detections. This could be due to light coming in from the sides of the WPC and the Electric meter. Use for example styrofoam to make a tight mounting. Cut out a sheet and make a small hole for the WPC "eye" (the phototransistor) and place it all right on top of the LED on the Electric meter.
August 20, 2014
WMS Mk2 - Currently supported devices
Here is a list of currently supported devices (WMS Mk2 sold after August 1st, 2014).
http://foogadgets.tictail.com
EDIT (2014-09-15): I have removed the support for DS276X since the configuration of the chip and also the extra calculations needed to present a valid sensor reading, was too complex.
To read Thermocouples I recommend the MAX31850 instead.
1-wire networks could be big as long as they are well built. The WMS Mk2 has successfully been tested in a network with 33 sensors and 75m length.
http://foogadgets.tictail.com
EDIT (2014-09-15): I have removed the support for DS276X since the configuration of the chip and also the extra calculations needed to present a valid sensor reading, was too complex.
To read Thermocouples I recommend the MAX31850 instead.
- AM2302 - Temperature and Humidity sensor in one capsule.
- DHT22 - Temperature and Humidity sensor in one capsule.
- All kinds of passive switches with an ON/OFF function. Some examples,
- Tilt switch
- Vibration switch
- Doorswitch
- Float switch
- All kinds of sensors that output 0-5V digital signal. Some examples,
- CO2 sensor (S8 from SenseAir)
- 1-wire products from Maxim Integrated,
- DS18B20 - Digital thermometer
- DS18S20 - Digital thermometer
- DS1820 - Digital thermometer
- DS1822 - Digital thermometer
- DS1825 - Digital thermometer
- DS2450 - 4 channel A/D converter
DS2760 - High-precision Li+ battery monitorDS2761 - High-precision Li+ battery monitorDS2762 - High-precision Li+ battery monitor- MAX31820 - Ambient temperaure sensor
- MAX31826 - Digital temperature sensor
- MAX31850K - Cold-junction compensated thermocouple Type K
- MAX31851 - Cold-junction compensated thermocouple Type S and R
- ... or any other sensor/device based on any of the 1-wire products above
- https://www.m.nu/adomvandlare-4-kanaler-025v-dc-p-307.html
- https://www.m.nu/adomvandlare-4-kanaler-05v-dc-p-455.html
- https://www.m.nu/barometer-version-2-p-439.html
- https://www.m.nu/co2matare-version-2-p-259.html
https://www.m.nu/fuktmatare-p-340.html- https://www.m.nu/ljussensor-analog-version-12-p-186.html
- https://www.m.nu/temperatursensor-for-tuffa-miljoer-ds18b20-p-252.html
- https://www.m.nu/temperatursensor-med-metallfilm-ds18b20-p-269.html
- https://www.m.nu/temperatursensor-pa-kabel-ds18b20-p-44.html
- https://www.m.nu/temperatursensor-pa-kretskorti-plastbox-p-456.html
https://www.m.nu/termoelementinterface-mat-hoga-temperaturer-version-2-p-457.html- https://www.m.nu/thermocouple-amplifier-with-1wire-breakout-board-max31850k-p-1392.html (remember to also order the level shifting board)
1-wire networks could be big as long as they are well built. The WMS Mk2 has successfully been tested in a network with 33 sensors and 75m length.
Labels:
1wire,
433mhz,
co2,
dht22,
ds1820,
ds18b20,
ds18b22,
ds18s20,
ds2450,
thermocouple,
wireless multi-sensor
August 13, 2014
New Firmware and Manual for the WMS Mk2
Just before the summer vacations I finalized the Wireless Multi-sensor Mk2 firmware that I have been working with for quite some time.
News,
Improvements,
News,
- CO2 sensor S8 from SenseAir is now supported. It can be connected to the Event Input after changing the input mode of the Event Input (c.f. Manual). You can get the CO2-sensor here.
- MAX31850K support. This chip is a Thermocouple Type K to 1-wire chip. This makes it possible to make a Type K thermocouple wireless. It can output 409.6°C as the highest temperature. It is a limitation set by the protocol I use. Here you can find a MAX31850K-module, m.nu.
- DS2450 support. This is a 4 channel AD converter. All 1-wire sensors based on this chip will be compatible with the WMS Mk2. This, this, this, this and this is also compatible modules since they are based on the DS2450 chip.
Improvements,
- Events are now sent as a LMST-606 device. An ON or OFF signal will be sent depending on if the input pin is pulled up or pulled down.
- The Manual is out in a first revision.
All Wireless Multi-sensors Mk2 will be shipped with this new firmware from now on.
Labels:
12f675,
1wire,
433mhz,
ask,
carbon dioxide,
co2,
ds2450,
fineoffset,
foogadgets,
lmst606,
max31850,
rfxcom,
rfxtrx433,
s8,
senseair,
telldus,
tellstick,
thermocouple,
wireless multi-sensor
Subscribe to:
Posts (Atom)
