xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
3k stars 638 forks source link

Temperature Sensor AddOn for Shelly 1/1PM #2449

Open andreaconfa opened 3 years ago

andreaconfa commented 3 years ago

Is the Temperature Sensor AddOn for Shelly 1/1PM supported?

mcspr commented 3 years ago

It is for 1PM, per https://github.com/xoseperez/espurna/blob/8892122091ce1c3282ebb65f9e88be90a284ce4f/code/espurna/config/hardware.h#L3755

andreaconfa commented 3 years ago

It is for 1PM, per

https://github.com/xoseperez/espurna/blob/8892122091ce1c3282ebb65f9e88be90a284ce4f/code/espurna/config/hardware.h#L3755

is possible to implement it with the shelly 1 standard?

mcspr commented 3 years ago

Don't think so, as there no hardware support? Looking at https://templates.blakadder.com/shelly_1.html, external pins should not be used for sensors

andreaconfa commented 3 years ago

Don't think so, as there no hardware support? Looking at https://templates.blakadder.com/shelly_1.html, external pins should not be used for sensors

it's supported... external pins is used in all the shelly devices to program the flash and also for the temperature sensor

mcspr commented 3 years ago

Can you link to the description of the sensor that you want to use?

andreaconfa commented 3 years ago

Can you link to the description of the sensor that you want to use?

The sensor is this one (it's an original sensor from shelly): https://shop.shelly.cloud/temperature-sensor-addon-for-shelly-1-1pm-wifi-smart-home-automation#312 As you can see is compatible with Shelly 1, Shelly 1PM and DS18B20

mcspr commented 3 years ago

Looks like Shelly made this incompatible with DS18x20 sensor code we already have, as it uses 2 wires instead of one :/ Looking at the implementation here, it seems to be the only way to talk to it:

andreaconfa commented 3 years ago

Looks like Shelly made this incompatible with DS18x20 sensor code we already have, as it uses 2 wires instead of one :/ Looking at the implementation here, it seems to be the only way to talk to it:

is the implementation in espurna possible? i really like this project (in fact i'm using it on 40+ devices in my home) and it works really well compared to tasmota. If yes i'm available to test it :)

mcspr commented 3 years ago

It is possible, ofc. Just means we would need to merge OneWire library with Dallas sensor code and name it something like ShellyTemperature.

andreaconfa commented 3 years ago

It is possible, ofc. Just means we would need to merge OneWire library with Dallas sensor code and name it something like ShellyTemperature.

That would be great