Closed danieletorelli closed 1 year ago
Hello, according to the description of my Shelly EM there's a power factor sensor field that could be exposed in the properties.
Type: SHEM CoAP description: {"blk":[{"I":1,"D":"relay_0"},{"I":2,"D":"emeter_0"},{"I":3,"D":"emeter_1"},{"I":4,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":4},{"I":1101,"T":"S","D":"output","R":"0/1","L":1},{"I":4105,"T":"P","D":"power","U":"W","R":["0/31800","-1"],"L":2},{"I":4106,"T":"E","D":"energy","U":"Wh","R":["U32","-1"],"L":2},{"I":4107,"T":"E","D":"energyReturned","U":"Wh","R":["U32","-1"],"L":2},{"I":4108,"T":"V","D":"voltage","U":"V","R":["0/265","-1"],"L":2},{"I":4110,"T":"S","D":"powerFactor","R":["0/1","-1"],"L":2},{"I":4205,"T":"P","D":"power","U":"W","R":["0/31800","-1"],"L":3},{"I":4206,"T":"E","D":"energy","U":"Wh","R":["U32","-1"],"L":3},{"I":4207,"T":"E","D":"energyReturned","U":"Wh","R":["U32","-1"],"L":3},{"I":4208,"T":"V","D":"voltage","U":"V","R":["0/265","-1"],"L":3},{"I":4210,"T":"S","D":"powerFactor","R":["0/1","-1"],"L":3},{"I":6102,"T":"A","D":"overpower","R":["0/1","-1"],"L":1}]} CoAP status: {"G":[[0,9103,1],[0,1101,0],[0,4105,231.95],[0,4106,16229.8],[0,4107,0],[0,4108,228.23],[0,4110,-0.59],[0,4205,0],[0,4206,0],[0,4207,0],[0,4208,228.23],[0,4210,0],[0,6102,0]]} HTTP Settings:: {"device":{"type":"SHEM","mac":"C45BBE796A97","hostname":"shellyem-C45BBE796A97","num_outputs":1,"num_meters":0,"num_emeters":2,"report_period":1},"wifi_ap":{"enabled":false,"ssid":"shellyem-C45BBE796A97","key":""},"wifi_sta":{"enabled":true,"ssid":"ASUS","ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"ap_roaming":{"enabled":false,"threshold":-70},"mqtt":{"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellyem-C45BBE796A97","reconnect_timeout_max":60,"reconnect_timeout_min":2,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot":{"enabled":true,"update_period":15,"peer":""},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"s3th"},"pin_code":"cb7R}9","name":"Corrente generale","fw":"20220209-094734/v1.11.8-g8c7bb8d","discoverable":true,"build_info":{"build_id":"20220209-094734/v1.11.8-g8c7bb8d","build_timestamp":"2022-02-09T09:47:34Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"Europe/Rome","lat":45.46796,"lng":9.18178,"tzautodetect":true,"tz_utc_offset":3600,"tz_dst":false,"tz_dst_auto":true,"time":"11:29","unixtime":1646821764,"led_status_disable":true,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["over_power_url","under_power_url","over_power_url","under_power_url","out_on_url","out_off_url"]},"hwinfo":{"hw_revision":"dev-prototype","batch_id":0},"relays":[{"name":null,"ison":false,"has_timer":false,"default_state":"off","auto_on":0,"auto_off":0,"schedule":false,"schedule_rules":[]}],"emeters":[{"name":null,"appliance_type":"General","ctraf_type":50,"max_power":0},{"name":null,"appliance_type":"General","ctraf_type":50,"max_power":0}],"eco_mode_enabled":true} HTTP Status:: {"wifi_sta":{"connected":true,"ssid":"ASUS","ip":"192.168.50.78","rssi":-51},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:29","unixtime":1646821765,"serial":811,"has_update":false,"mac":"C45BBE796A97","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":false,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"overpower":false,"is_valid":true,"source":"input"}],"emeters":[{"power":231.95,"reactive":-321.5,"pf":-0.59,"voltage":228.23,"is_valid":true,"total":16229.8,"total_returned":0},{"power":0,"reactive":0,"pf":0,"voltage":228.23,"is_valid":true,"total":0,"total_returned":0}],"update":{"status":"idle","has_update":false,"new_version":"20220209-094734/v1.11.8-g8c7bb8d","old_version":"20220209-094734/v1.11.8-g8c7bb8d"},"ram_total":50256,"ram_free":34784,"fs_size":233681,"fs_free":157628,"uptime":7519}
Hello, according to the description of my Shelly EM there's a power factor sensor field that could be exposed in the properties.