Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[shelly] New device#supplyVoltage channel for Shelly 2.5, 1PM and 1L #10090

Closed
elektro-joe opened this issue Feb 7, 2021 · 3 comments · Fixed by #10815
Closed

[shelly] New device#supplyVoltage channel for Shelly 2.5, 1PM and 1L #10090

elektro-joe opened this issue Feb 7, 2021 · 3 comments · Fixed by #10815
Assignees
Labels
enhancement An enhancement or new feature for an existing add-on PR pending There is a pull request for resolving the issue

Comments

@elektro-joe
Copy link

Request

It would be great if you can add the item AC voltage to the Shelly Binding.

Possible Solution

On the web interface of the shelly device it's already available e.g.
http://192.168.xxx.yyy/status
(second to last key:value)

{
"wifi_sta": {
"connected": true,
"ssid": "...",
"ip": "192.168.xxx.yyy",
"rssi": -78
},
"cloud": {
"enabled": true,
"connected": true
},
"mqtt": {
"connected": false
},
"time": "14:30",
"unixtime": 1612704620,
"serial": 190,
"has_update": false,
"mac": "40F520XXXYYY",
"cfg_changed_cnt": 2,
"actions_stats": {
"skipped": 0
},
"relays": [
{
"ison": false,
"has_timer": false,
"timer_started": 0,
"timer_duration": 0,
"timer_remaining": 0,
"overpower": false,
"overtemperature": false,
"is_valid": true,
"source": "input"
},
{
"ison": false,
"has_timer": false,
"timer_started": 0,
"timer_duration": 0,
"timer_remaining": 0,
"overpower": false,
"overtemperature": false,
"is_valid": true,
"source": "timer"
}
],
"meters": [
{
"power": 0,
"overpower": 0,
"is_valid": true,
"timestamp": 1612708220,
"counters": [
0,
0,
0
],
"total": 0
},
{
"power": 0,
"overpower": 0,
"is_valid": true,
"timestamp": 1612708220,
"counters": [
0,
0,
0
],
"total": 6
}
],
"inputs": [
{
"input": 0,
"event": "",
"event_cnt": 0
},
{
"input": 0,
"event": "",
"event_cnt": 0
}
],
"temperature": 60.61,
"overtemperature": false,
"tmp": {
"tC": 60.61,
"tF": 141.1,
"is_valid": true
},
"temperature_status": "Normal",
"update": {
"status": "idle",
"has_update": false,
"new_version": "20210115-103025/v1.9.4@e2732e05",
"old_version": "20210115-103025/v1.9.4@e2732e05",
"beta_version": "20210122-154717/v1.10.0-rc1@00eeaa9b"
},
"ram_total": 49368,
"ram_free": 33724,
"fs_size": 233681,
"fs_free": 104918,
"voltage": 235.8,
"uptime": 10603
}

My Environment

OpenHab 3.0 on openhabian (Raspi4B)
Shelly binding v3.0.1
Shelly 2.5 Relay (SHSW-25) - firmware 1.9.4

@elektro-joe elektro-joe added the enhancement An enhancement or new feature for an existing add-on label Feb 7, 2021
@markus7017 markus7017 self-assigned this Jun 5, 2021
@markus7017 markus7017 added the work in progress A PR that is not yet ready to be merged label Jun 5, 2021
@markus7017
Copy link
Contributor

Why is that info relevant as a dynamic state (channel)? You know what you connected, this doesn't change dynamically.

I checked the API spec and it doesn't list this parameter for Shelly 2.5, but shelly_voltage for 1PM and 1L
Did you checked the current firmware and could confirm that the parameter is still there?

@markus7017
Copy link
Contributor

markus7017 commented Jun 6, 2021

I added new channel device#supplyVoltage

  • Shelly 2.5: Returns measured value (status.voltage)
  • Shelly 1PM/1L: Returns 110.0V/220.0V depending on settings.supply_voltage

try updated DEV build for 3.1M5
https://github.com/markus7017/myfiles/blob/master/shelly/org.openhab.binding.shelly-3.1.0-SNAPSHOT.jar?raw=true

@markus7017 markus7017 changed the title Shelly Binding 3.0.1 - missing voltage item on Shelly 2.5 (SHSW-25) [shelly] New device#supplyVoltage channel for Shelly 2.5, 1PM and 1L Jun 6, 2021
@markus7017 markus7017 added PR pending There is a pull request for resolving the issue and removed work in progress A PR that is not yet ready to be merged labels Jun 6, 2021
markus7017 added a commit to markus7017/openhab-addons that referenced this issue Jun 6, 2021
….5, 1PM

and 1L
- Change  openhab#10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     openhab#10799 Missing Channel Definition for Vibration Events
- Fix     openhab#10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     openhab#10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/shelly-binding/56862/2190

markus7017 added a commit to markus7017/openhab-addons that referenced this issue Jun 6, 2021
….5, 1PM

and 1L
- Change  openhab#10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     openhab#10799 Missing Channel Definition for Vibration Events
- Fix     openhab#10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     openhab#10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>
markus7017 added a commit to markus7017/openhab-addons that referenced this issue Jun 14, 2021
….5, 1PM

and 1L
- Change  openhab#10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     openhab#10799 Missing Channel Definition for Vibration Events
- Fix     openhab#10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     openhab#10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>
fwolter pushed a commit that referenced this issue Jun 15, 2021
…l for vibration; UNI: Unit for ADC voltage; PF for EM; Bulb: fix range for color temp (#10815)

* fixes #10738, #10799

Signed-off-by: Markus Michels <markus7017@gmail.com>

* - Feature #10090 New device#supplyVoltage channel for Shelly 2.5, 1PM
and 1L
- Change  #10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     #10799 Missing Channel Definition for Vibration Events
- Fix     #10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     #10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* #10737 Shelly EM - add powerFactor channel support

Signed-off-by: Markus Michels <markus7017@gmail.com>

* README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* channel powerFactor (EM+EM3) is now of type Number:Dimensionless

Signed-off-by: Markus Michels <markus7017@gmail.com>

* Fix for #10864: Do not trigger same alarm within 5 minutes

Signed-off-by: Markus Michels <markus7017@gmail.com>

* better logic for alarm filter

Signed-off-by: Markus Michels <markus7017@gmail.com>
computergeek1507 pushed a commit to computergeek1507/openhab-addons that referenced this issue Jul 13, 2021
…l for vibration; UNI: Unit for ADC voltage; PF for EM; Bulb: fix range for color temp (openhab#10815)

* fixes openhab#10738, openhab#10799

Signed-off-by: Markus Michels <markus7017@gmail.com>

* - Feature openhab#10090 New device#supplyVoltage channel for Shelly 2.5, 1PM
and 1L
- Change  openhab#10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     openhab#10799 Missing Channel Definition for Vibration Events
- Fix     openhab#10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     openhab#10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* openhab#10737 Shelly EM - add powerFactor channel support

Signed-off-by: Markus Michels <markus7017@gmail.com>

* README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* channel powerFactor (EM+EM3) is now of type Number:Dimensionless

Signed-off-by: Markus Michels <markus7017@gmail.com>

* Fix for openhab#10864: Do not trigger same alarm within 5 minutes

Signed-off-by: Markus Michels <markus7017@gmail.com>

* better logic for alarm filter

Signed-off-by: Markus Michels <markus7017@gmail.com>
lucacalcaterra pushed a commit to lucacalcaterra/openhab-addons that referenced this issue Jul 26, 2021
…l for vibration; UNI: Unit for ADC voltage; PF for EM; Bulb: fix range for color temp (openhab#10815)

* fixes openhab#10738, openhab#10799

Signed-off-by: Markus Michels <markus7017@gmail.com>

* - Feature openhab#10090 New device#supplyVoltage channel for Shelly 2.5, 1PM
and 1L
- Change  openhab#10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     openhab#10799 Missing Channel Definition for Vibration Events
- Fix     openhab#10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     openhab#10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* openhab#10737 Shelly EM - add powerFactor channel support

Signed-off-by: Markus Michels <markus7017@gmail.com>

* README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* channel powerFactor (EM+EM3) is now of type Number:Dimensionless

Signed-off-by: Markus Michels <markus7017@gmail.com>

* Fix for openhab#10864: Do not trigger same alarm within 5 minutes

Signed-off-by: Markus Michels <markus7017@gmail.com>

* better logic for alarm filter

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Luca Calcaterra <calcaterra.luca@gmail.com>
lucacalcaterra pushed a commit to lucacalcaterra/openhab-addons that referenced this issue Jul 26, 2021
…l for vibration; UNI: Unit for ADC voltage; PF for EM; Bulb: fix range for color temp (openhab#10815)

* fixes openhab#10738, openhab#10799

Signed-off-by: Markus Michels <markus7017@gmail.com>

* - Feature openhab#10090 New device#supplyVoltage channel for Shelly 2.5, 1PM
and 1L
- Change  openhab#10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     openhab#10799 Missing Channel Definition for Vibration Events
- Fix     openhab#10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     openhab#10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* openhab#10737 Shelly EM - add powerFactor channel support

Signed-off-by: Markus Michels <markus7017@gmail.com>

* README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* channel powerFactor (EM+EM3) is now of type Number:Dimensionless

Signed-off-by: Markus Michels <markus7017@gmail.com>

* Fix for openhab#10864: Do not trigger same alarm within 5 minutes

Signed-off-by: Markus Michels <markus7017@gmail.com>

* better logic for alarm filter

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Luca Calcaterra <calcaterra.luca@gmail.com>
lucacalcaterra pushed a commit to lucacalcaterra/openhab-addons that referenced this issue Aug 3, 2021
…l for vibration; UNI: Unit for ADC voltage; PF for EM; Bulb: fix range for color temp (openhab#10815)

* fixes openhab#10738, openhab#10799

Signed-off-by: Markus Michels <markus7017@gmail.com>

* - Feature openhab#10090 New device#supplyVoltage channel for Shelly 2.5, 1PM
and 1L
- Change  openhab#10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     openhab#10799 Missing Channel Definition for Vibration Events
- Fix     openhab#10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     openhab#10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* openhab#10737 Shelly EM - add powerFactor channel support

Signed-off-by: Markus Michels <markus7017@gmail.com>

* README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* channel powerFactor (EM+EM3) is now of type Number:Dimensionless

Signed-off-by: Markus Michels <markus7017@gmail.com>

* Fix for openhab#10864: Do not trigger same alarm within 5 minutes

Signed-off-by: Markus Michels <markus7017@gmail.com>

* better logic for alarm filter

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Luca Calcaterra <calcaterra.luca@gmail.com>
frederictobiasc pushed a commit to frederictobiasc/openhab-addons that referenced this issue Oct 26, 2021
…l for vibration; UNI: Unit for ADC voltage; PF for EM; Bulb: fix range for color temp (openhab#10815)

* fixes openhab#10738, openhab#10799

Signed-off-by: Markus Michels <markus7017@gmail.com>

* - Feature openhab#10090 New device#supplyVoltage channel for Shelly 2.5, 1PM
and 1L
- Change  openhab#10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     openhab#10799 Missing Channel Definition for Vibration Events
- Fix     openhab#10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     openhab#10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* openhab#10737 Shelly EM - add powerFactor channel support

Signed-off-by: Markus Michels <markus7017@gmail.com>

* README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* channel powerFactor (EM+EM3) is now of type Number:Dimensionless

Signed-off-by: Markus Michels <markus7017@gmail.com>

* Fix for openhab#10864: Do not trigger same alarm within 5 minutes

Signed-off-by: Markus Michels <markus7017@gmail.com>

* better logic for alarm filter

Signed-off-by: Markus Michels <markus7017@gmail.com>
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this issue Nov 7, 2021
…l for vibration; UNI: Unit for ADC voltage; PF for EM; Bulb: fix range for color temp (openhab#10815)

* fixes openhab#10738, openhab#10799

Signed-off-by: Markus Michels <markus7017@gmail.com>

* - Feature openhab#10090 New device#supplyVoltage channel for Shelly 2.5, 1PM
and 1L
- Change  openhab#10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     openhab#10799 Missing Channel Definition for Vibration Events
- Fix     openhab#10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     openhab#10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* openhab#10737 Shelly EM - add powerFactor channel support

Signed-off-by: Markus Michels <markus7017@gmail.com>

* README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* channel powerFactor (EM+EM3) is now of type Number:Dimensionless

Signed-off-by: Markus Michels <markus7017@gmail.com>

* Fix for openhab#10864: Do not trigger same alarm within 5 minutes

Signed-off-by: Markus Michels <markus7017@gmail.com>

* better logic for alarm filter

Signed-off-by: Markus Michels <markus7017@gmail.com>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this issue May 5, 2022
…l for vibration; UNI: Unit for ADC voltage; PF for EM; Bulb: fix range for color temp (openhab#10815)

* fixes openhab#10738, openhab#10799

Signed-off-by: Markus Michels <markus7017@gmail.com>

* - Feature openhab#10090 New device#supplyVoltage channel for Shelly 2.5, 1PM
and 1L
- Change  openhab#10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     openhab#10799 Missing Channel Definition for Vibration Events
- Fix     openhab#10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     openhab#10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* openhab#10737 Shelly EM - add powerFactor channel support

Signed-off-by: Markus Michels <markus7017@gmail.com>

* README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* channel powerFactor (EM+EM3) is now of type Number:Dimensionless

Signed-off-by: Markus Michels <markus7017@gmail.com>

* Fix for openhab#10864: Do not trigger same alarm within 5 minutes

Signed-off-by: Markus Michels <markus7017@gmail.com>

* better logic for alarm filter

Signed-off-by: Markus Michels <markus7017@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on PR pending There is a pull request for resolving the issue
Projects
None yet
3 participants